summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-01-16 18:06:50 -0500
committerDavid S. Miller <davem@davemloft.net>2019-01-17 18:18:47 -0500
commit87b0984ebfabafcfe959e52ca5cdab5eeb2d60c0 (patch)
tree154b5fde142fd02c6988e312a51db549a5b9bb45 /drivers/net/macvlan.c
parent1cdc98c2711e42d956c4a5ce525d3f8e90c58f9e (diff)
net: Add extack argument to ndo_fdb_add()
Drivers may not be able to support certain FDB entries, and an error code is insufficient to give clear hints as to the reasons of rejection. In order to make it possible to communicate the rejection reason, extend ndo_fdb_add() with an extack argument. Adapt the existing implementations of ndo_fdb_add() to take the parameter (and ignore it). Pass the extack parameter when invoking ndo_fdb_add() from rtnl_fdb_add(). Signed-off-by: Petr Machata <petrm@mellanox.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, 2 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index fc726ce4c164..084a1b3fbc80 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -963,7 +963,8 @@ static int macvlan_vlan_rx_kill_vid(struct net_device *dev,
963static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], 963static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
964 struct net_device *dev, 964 struct net_device *dev,
965 const unsigned char *addr, u16 vid, 965 const unsigned char *addr, u16 vid,
966 u16 flags) 966 u16 flags,
967 struct netlink_ext_ack *extack)
967{ 968{
968 struct macvlan_dev *vlan = netdev_priv(dev); 969 struct macvlan_dev *vlan = netdev_priv(dev);
969 int err = -EINVAL; 970 int err = -EINVAL;