Skip to content

Commit ab2cfbb

Browse files
Thomas Richterdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 906dc18 commit ab2cfbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/macvlan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@ static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
597597
if (!vlan->port->passthru)
598598
return -EOPNOTSUPP;
599599

600+
if (flags & NLM_F_REPLACE)
601+
return -EOPNOTSUPP;
602+
600603
if (is_unicast_ether_addr(addr))
601604
err = dev_uc_add_excl(dev, addr);
602605
else if (is_multicast_ether_addr(addr))

0 commit comments

Comments
 (0)