diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 18:38:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-23 15:24:22 -0400 |
commit | 1679200f91da6a054b06954c9bd3eeed29b6731f (patch) | |
tree | a447268debe479a257cfff4c7e5e86151eef6583 /include/linux/mlx4 | |
parent | b12d93d63c3217f0ec923ff938b12a744e242ffa (diff) |
mlx4_en: Enabling new steering
The mlx4_en module now uses the new steering mechanism.
The RX packets are now steered through the MCG table instead
of Mac table for unicast, and default entry for multicast.
The feature is enabled through INIT_HCA
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 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index ebda939b9fc3..56fa5e1cd6d4 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -525,9 +525,15 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], | |||
525 | int block_mcast_loopback, enum mlx4_protocol protocol); | 525 | int block_mcast_loopback, enum mlx4_protocol protocol); |
526 | int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], | 526 | int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], |
527 | enum mlx4_protocol protocol); | 527 | enum mlx4_protocol protocol); |
528 | 528 | int mlx4_multicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port); | |
529 | int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *index); | 529 | int mlx4_multicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port); |
530 | void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, int index); | 530 | int mlx4_unicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port); |
531 | int mlx4_unicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port); | ||
532 | int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode); | ||
533 | |||
534 | int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *qpn, u8 wrap); | ||
535 | void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, int qpn); | ||
536 | int mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac, u8 wrap); | ||
531 | 537 | ||
532 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); | 538 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); |
533 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); | 539 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); |