diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 18:38:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-23 15:24:21 -0400 |
commit | 0345584e0b8be3735a950d17c7e463db20c6ce27 (patch) | |
tree | f49fd3824c1f3b620d456c40539f9b1b88832b69 /include/linux/mlx4 | |
parent | 725c89997e03d71b09ea3c17c997da0712b9d835 (diff) |
mlx4: generalization of multicast steering.
The same packet steering mechanism would be used both for IB and Ethernet,
Both multicasts and unicasts.
This commit prepares the general infrastructure for this.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index fe2a3a3f046c..ebda939b9fc3 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -150,8 +150,10 @@ enum { | |||
150 | }; | 150 | }; |
151 | 151 | ||
152 | enum mlx4_protocol { | 152 | enum mlx4_protocol { |
153 | MLX4_PROTOCOL_IB, | 153 | MLX4_PROT_IB_IPV6 = 0, |
154 | MLX4_PROTOCOL_EN, | 154 | MLX4_PROT_ETH, |
155 | MLX4_PROT_IB_IPV4, | ||
156 | MLX4_PROT_FCOE | ||
155 | }; | 157 | }; |
156 | 158 | ||
157 | enum { | 159 | enum { |
@@ -178,6 +180,12 @@ enum mlx4_special_vlan_idx { | |||
178 | MLX4_VLAN_REGULAR | 180 | MLX4_VLAN_REGULAR |
179 | }; | 181 | }; |
180 | 182 | ||
183 | enum mlx4_steer_type { | ||
184 | MLX4_MC_STEER = 0, | ||
185 | MLX4_UC_STEER, | ||
186 | MLX4_NUM_STEERS | ||
187 | }; | ||
188 | |||
181 | enum { | 189 | enum { |
182 | MLX4_NUM_FEXCH = 64 * 1024, | 190 | MLX4_NUM_FEXCH = 64 * 1024, |
183 | }; | 191 | }; |
@@ -251,6 +259,8 @@ struct mlx4_caps { | |||
251 | u16 stat_rate_support; | 259 | u16 stat_rate_support; |
252 | int udp_rss; | 260 | int udp_rss; |
253 | int loopback_support; | 261 | int loopback_support; |
262 | int vep_uc_steering; | ||
263 | int vep_mc_steering; | ||
254 | int wol; | 264 | int wol; |
255 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; | 265 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; |
256 | int max_gso_sz; | 266 | int max_gso_sz; |