diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-04-24 09:58:44 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-24 20:51:28 -0400 |
commit | 3cd0e1789ad39c3b7ed006ce53a83328bdadbee8 (patch) | |
tree | 33ec91ea2c011974aca81e4c21b7c728aa9ccf60 /drivers/net/ethernet/mellanox | |
parent | 3528f69637723183f997573c7ec50ca869f219ba (diff) |
mlx4_core: Move DMFS HW structs to common header file
Move flow steering HW structures to be on the public mlx4 include
directory, as a pre-step for the mlx4 IB driver to use them too.
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index d738454116a0..d5fdb19771e2 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h | |||
@@ -701,85 +701,6 @@ struct mlx4_steer { | |||
701 | struct list_head steer_entries[MLX4_NUM_STEERS]; | 701 | struct list_head steer_entries[MLX4_NUM_STEERS]; |
702 | }; | 702 | }; |
703 | 703 | ||
704 | struct mlx4_net_trans_rule_hw_ctrl { | ||
705 | __be32 ctrl; | ||
706 | u8 rsvd1; | ||
707 | u8 funcid; | ||
708 | u8 vep; | ||
709 | u8 port; | ||
710 | __be32 qpn; | ||
711 | __be32 rsvd2; | ||
712 | }; | ||
713 | |||
714 | struct mlx4_net_trans_rule_hw_ib { | ||
715 | u8 size; | ||
716 | u8 rsvd1; | ||
717 | __be16 id; | ||
718 | u32 rsvd2; | ||
719 | __be32 qpn; | ||
720 | __be32 qpn_mask; | ||
721 | u8 dst_gid[16]; | ||
722 | u8 dst_gid_msk[16]; | ||
723 | } __packed; | ||
724 | |||
725 | struct mlx4_net_trans_rule_hw_eth { | ||
726 | u8 size; | ||
727 | u8 rsvd; | ||
728 | __be16 id; | ||
729 | u8 rsvd1[6]; | ||
730 | u8 dst_mac[6]; | ||
731 | u16 rsvd2; | ||
732 | u8 dst_mac_msk[6]; | ||
733 | u16 rsvd3; | ||
734 | u8 src_mac[6]; | ||
735 | u16 rsvd4; | ||
736 | u8 src_mac_msk[6]; | ||
737 | u8 rsvd5; | ||
738 | u8 ether_type_enable; | ||
739 | __be16 ether_type; | ||
740 | __be16 vlan_id_msk; | ||
741 | __be16 vlan_id; | ||
742 | } __packed; | ||
743 | |||
744 | struct mlx4_net_trans_rule_hw_tcp_udp { | ||
745 | u8 size; | ||
746 | u8 rsvd; | ||
747 | __be16 id; | ||
748 | __be16 rsvd1[3]; | ||
749 | __be16 dst_port; | ||
750 | __be16 rsvd2; | ||
751 | __be16 dst_port_msk; | ||
752 | __be16 rsvd3; | ||
753 | __be16 src_port; | ||
754 | __be16 rsvd4; | ||
755 | __be16 src_port_msk; | ||
756 | } __packed; | ||
757 | |||
758 | struct mlx4_net_trans_rule_hw_ipv4 { | ||
759 | u8 size; | ||
760 | u8 rsvd; | ||
761 | __be16 id; | ||
762 | __be32 rsvd1; | ||
763 | __be32 dst_ip; | ||
764 | __be32 dst_ip_msk; | ||
765 | __be32 src_ip; | ||
766 | __be32 src_ip_msk; | ||
767 | } __packed; | ||
768 | |||
769 | struct _rule_hw { | ||
770 | union { | ||
771 | struct { | ||
772 | u8 size; | ||
773 | u8 rsvd; | ||
774 | __be16 id; | ||
775 | }; | ||
776 | struct mlx4_net_trans_rule_hw_eth eth; | ||
777 | struct mlx4_net_trans_rule_hw_ib ib; | ||
778 | struct mlx4_net_trans_rule_hw_ipv4 ipv4; | ||
779 | struct mlx4_net_trans_rule_hw_tcp_udp tcp_udp; | ||
780 | }; | ||
781 | }; | ||
782 | |||
783 | enum { | 704 | enum { |
784 | MLX4_PCI_DEV_IS_VF = 1 << 0, | 705 | MLX4_PCI_DEV_IS_VF = 1 << 0, |
785 | MLX4_PCI_DEV_FORCE_SENSE_PORT = 1 << 1, | 706 | MLX4_PCI_DEV_FORCE_SENSE_PORT = 1 << 1, |