diff options
author | 2019-01-16 23:06:50 +0000 | |
---|---|---|
committer | 2019-01-17 15:18:47 -0800 | |
commit | 87b0984ebfabafcfe959e52ca5cdab5eeb2d60c0 (patch) | |
tree | 154b5fde142fd02c6988e312a51db549a5b9bb45 /net/bridge/br_fdb.c | |
parent | vxlan: changelink: Delete remote after update (diff) | |
download | linux-87b0984ebfabafcfe959e52ca5cdab5eeb2d60c0.tar.gz linux-87b0984ebfabafcfe959e52ca5cdab5eeb2d60c0.tar.bz2 linux-87b0984ebfabafcfe959e52ca5cdab5eeb2d60c0.zip |
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 'net/bridge/br_fdb.c')
-rw-r--r-- | net/bridge/br_fdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index fe3c758791ca..6664cb8590f8 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -915,7 +915,8 @@ static int __br_fdb_add(struct ndmsg *ndm, struct net_bridge *br, /* Add new permanent fdb entry with RTM_NEWNEIGH */ int br_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, - const unsigned char *addr, u16 vid, u16 nlh_flags) + const unsigned char *addr, u16 vid, u16 nlh_flags, + struct netlink_ext_ack *extack) { struct net_bridge_vlan_group *vg; struct net_bridge_port *p = NULL; |