diff options
Diffstat (limited to 'drivers/net/mlx4/en_port.h')
-rw-r--r-- | drivers/net/mlx4/en_port.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/drivers/net/mlx4/en_port.h b/drivers/net/mlx4/en_port.h index e6477f12beb5..e3d73e41c567 100644 --- a/drivers/net/mlx4/en_port.h +++ b/drivers/net/mlx4/en_port.h | |||
@@ -37,6 +37,7 @@ | |||
37 | 37 | ||
38 | #define SET_PORT_GEN_ALL_VALID 0x7 | 38 | #define SET_PORT_GEN_ALL_VALID 0x7 |
39 | #define SET_PORT_PROMISC_SHIFT 31 | 39 | #define SET_PORT_PROMISC_SHIFT 31 |
40 | #define SET_PORT_MC_PROMISC_SHIFT 30 | ||
40 | 41 | ||
41 | enum { | 42 | enum { |
42 | MLX4_CMD_SET_VLAN_FLTR = 0x47, | 43 | MLX4_CMD_SET_VLAN_FLTR = 0x47, |
@@ -44,6 +45,12 @@ enum { | |||
44 | MLX4_CMD_DUMP_ETH_STATS = 0x49, | 45 | MLX4_CMD_DUMP_ETH_STATS = 0x49, |
45 | }; | 46 | }; |
46 | 47 | ||
48 | enum { | ||
49 | MCAST_DIRECT_ONLY = 0, | ||
50 | MCAST_DIRECT = 1, | ||
51 | MCAST_DEFAULT = 2 | ||
52 | }; | ||
53 | |||
47 | struct mlx4_set_port_general_context { | 54 | struct mlx4_set_port_general_context { |
48 | u8 reserved[3]; | 55 | u8 reserved[3]; |
49 | u8 flags; | 56 | u8 flags; |
@@ -59,14 +66,17 @@ struct mlx4_set_port_general_context { | |||
59 | 66 | ||
60 | struct mlx4_set_port_rqp_calc_context { | 67 | struct mlx4_set_port_rqp_calc_context { |
61 | __be32 base_qpn; | 68 | __be32 base_qpn; |
62 | __be32 flags; | 69 | u8 rererved; |
63 | u8 reserved[3]; | 70 | u8 n_mac; |
71 | u8 n_vlan; | ||
72 | u8 n_prio; | ||
73 | u8 reserved2[3]; | ||
64 | u8 mac_miss; | 74 | u8 mac_miss; |
65 | u8 intra_no_vlan; | 75 | u8 intra_no_vlan; |
66 | u8 no_vlan; | 76 | u8 no_vlan; |
67 | u8 intra_vlan_miss; | 77 | u8 intra_vlan_miss; |
68 | u8 vlan_miss; | 78 | u8 vlan_miss; |
69 | u8 reserved2[3]; | 79 | u8 reserved3[3]; |
70 | u8 no_vlan_prio; | 80 | u8 no_vlan_prio; |
71 | __be32 promisc; | 81 | __be32 promisc; |
72 | __be32 mcast; | 82 | __be32 mcast; |
@@ -84,6 +94,20 @@ enum { | |||
84 | MLX4_MCAST_ENABLE = 2, | 94 | MLX4_MCAST_ENABLE = 2, |
85 | }; | 95 | }; |
86 | 96 | ||
97 | struct mlx4_en_query_port_context { | ||
98 | u8 link_up; | ||
99 | #define MLX4_EN_LINK_UP_MASK 0x80 | ||
100 | u8 reserved; | ||
101 | __be16 mtu; | ||
102 | u8 reserved2; | ||
103 | u8 link_speed; | ||
104 | #define MLX4_EN_SPEED_MASK 0x3 | ||
105 | #define MLX4_EN_1G_SPEED 0x2 | ||
106 | u16 reserved3[5]; | ||
107 | __be64 mac; | ||
108 | u8 transceiver; | ||
109 | }; | ||
110 | |||
87 | 111 | ||
88 | struct mlx4_en_stat_out_mbox { | 112 | struct mlx4_en_stat_out_mbox { |
89 | /* Received frames with a length of 64 octets */ | 113 | /* Received frames with a length of 64 octets */ |