diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 3 |
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[], | |||
597 | if (!vlan->port->passthru) | 597 | if (!vlan->port->passthru) |
598 | return -EOPNOTSUPP; | 598 | return -EOPNOTSUPP; |
599 | 599 | ||
600 | if (flags & NLM_F_REPLACE) | ||
601 | return -EOPNOTSUPP; | ||
602 | |||
600 | if (is_unicast_ether_addr(addr)) | 603 | if (is_unicast_ether_addr(addr)) |
601 | err = dev_uc_add_excl(dev, addr); | 604 | err = dev_uc_add_excl(dev, addr); |
602 | else if (is_multicast_ether_addr(addr)) | 605 | else if (is_multicast_ether_addr(addr)) |