]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Convert hw addr handling to sync/unsync, support ucast addresses
authorJay Vosburgh <fubar@us.ibm.com>
Fri, 31 May 2013 11:57:30 +0000 (11:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jun 2013 22:05:51 +0000 (15:05 -0700)
commitd828b90fe83b3e6a2c5329851cd4434fa07ac156
tree5b7d13ea626dd0eda7122efa93afb7a4013a257a
parent388aeab528a1f0f2288624219a900ada9f64618a
bonding: Convert hw addr handling to sync/unsync, support ucast addresses

This patch converts bonding to use the dev_uc/mc_sync and
dev_uc/mc_sync_multiple functions for updating the hardware addresses
of bonding slaves.

The existing functions to add or remove addresses are removed,
and their functionality is replaced with calls to dev_mc_sync or
dev_mc_sync_multiple, depending upon the bonding mode.

Calls to dev_uc_sync and dev_uc_sync_multiple are also added,
so that unicast addresses added to a bond will be properly synced with
its slaves.

Various functions are renamed to better reflect the new
situation, and relevant comments are updated.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Cc: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h