net: Add support for device specific address syncing
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 29 May 2014 01:44:46 +0000 (18:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 17:40:54 +0000 (10:40 -0700)
commit670e5b8eaf85704742bc3cb1df51fdd3ce08fc15
treeb11726054cc9e4741d00666998c9010b59608f7b
parent3e820811583e7c7f8d7793775d82898e5136a855
net: Add support for device specific address syncing

This change provides a function to be used in order to break the
ndo_set_rx_mode call into a set of address add and remove calls.  The code
is based on the implementation of dev_uc_sync/dev_mc_sync.  Since they
essentially do the same thing but with only one dev I simply named my
functions __dev_uc_sync/__dev_mc_sync.

I also implemented an unsync version of the functions as well to allow for
cleanup on close.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev_addr_lists.c