aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.vnet.ibm.com>2013-07-19 17:20:08 +0200
committerDavid S. Miller <davem@davemloft.net>2013-07-23 16:36:03 -0700
commitab2cfbb2bddb7c7bc4394e52e91044d5ff645cb4 (patch)
treeed77fa8f36491875a01f45269d961bd04f1bb19a /drivers/net/macvlan.c
parentvxlan fdb replace an existing entry (diff)
downloadlinux-dev-ab2cfbb2bddb7c7bc4394e52e91044d5ff645cb4.tar.xz
linux-dev-ab2cfbb2bddb7c7bc4394e52e91044d5ff645cb4.zip
macvlan fdb replace support
Add support for iproute2 command 'bridge fdb replace ...'. The rtnletlink call back function ndo_fdb_add will be called with the NLM_F_REPLACE flag set. Simply return -EOPNOTSUP. Resubmitted because net-next was closed last week. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 18373b6ae37d..74907f53fdb4 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -597,6 +597,9 @@ static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
if (!vlan->port->passthru)
return -EOPNOTSUPP;
+ if (flags & NLM_F_REPLACE)
+ return -EOPNOTSUPP;
+
if (is_unicast_ether_addr(addr))
err = dev_uc_add_excl(dev, addr);
else if (is_multicast_ether_addr(addr))