From: John Fastabend Date: Sun, 15 Apr 2012 06:44:02 +0000 (+0000) Subject: net: addr_list: add exclusive dev_uc_add and dev_mc_add X-Git-Tag: v3.5-rc1~109^2~438 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a94634453c61fd9a11c4702002e3db6d4feb70;p=pandora-kernel.git net: addr_list: add exclusive dev_uc_add and dev_mc_add This adds a dev_uc_add_excl() and dev_mc_add_excl() calls similar to the original dev_{uc|mc}_add() except it sets the global bit and returns -EEXIST for duplicat entires. This is useful for drivers that support SR-IOV, macvlan devices and any other devices that need to manage the unicast and multicast lists. v2: fix typo UNICAST should be MULTICAST in dev_mc_add_excl() CC: Ben Hutchings Signed-off-by: John Fastabend Signed-off-by: David S. Miller --- Reading git-diff-tree failed