]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Support the HA mode for SRIOV VFs too
authorMoni Shoua <monis@mellanox.com>
Sun, 6 Dec 2015 16:07:43 +0000 (18:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 03:40:46 +0000 (22:40 -0500)
commit0a9fade732383103adc053d8b47d276163e73067
tree2446b1e31c4ff50719a12557dd4fa4c26116d5ed
parent74fd9a35ff6e6d3a53588378c03d73338900de7f
net/mlx4_core: Support the HA mode for SRIOV VFs too

When the mlx4 driver runs in HA mode, and all VFs are single ported
ones, we make their single port Highly-Available.

This is done by taking advantage of the HA mode properties (following
bonding changes with programming the port V2P map, etc) and adding
the missing parts which are unique to SRIOV such as mirroring VF
steering rules on both ports.

Due to limits on the MAC and VLAN table this mode is enabled only when
number of total VFs is under 64.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c