]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Support macvlans on top of tlb/rlb mode bonds
authorVlad Yasevich <vyasevic@redhat.com>
Wed, 4 Jun 2014 20:23:38 +0000 (16:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 22:13:54 +0000 (15:13 -0700)
commit9033355c5a04e0e480e82677edfa6069ff48754e
tree55e2be9506708df787f2158e11454b8ac2b7c36a
parent0c0632696f5f4c9ef231199580b7a6fb1bd2996f
bonding: Support macvlans on top of tlb/rlb mode bonds

To make TLB mode work, the patch allows learning packets
to be sent using mac addresses assigned to macvlan devices,
also taking into an account vlans that may be between the
bond and macvlan device.

To make RLB work, all we have to do is accept ARP packets
for addresses added to the bond dev->uc list.  Since RLB
mode will take care to update the peers directly with
correct mac addresses, learning packets for these addresses
do not have be send to switch.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h