summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
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 /include/linux/netdevice.h
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 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 1377d085ef99..a57b9a853aab 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1152,7 +1152,8 @@ struct dev_ifalias {
1152 * 1152 *
1153 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[], 1153 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[],
1154 * struct net_device *dev, 1154 * struct net_device *dev,
1155 * const unsigned char *addr, u16 vid, u16 flags) 1155 * const unsigned char *addr, u16 vid, u16 flags,
1156 * struct netlink_ext_ack *extack);
1156 * Adds an FDB entry to dev for addr. 1157 * Adds an FDB entry to dev for addr.
1157 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[], 1158 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[],
1158 * struct net_device *dev, 1159 * struct net_device *dev,
@@ -1376,7 +1377,8 @@ struct net_device_ops {
1376 struct net_device *dev, 1377 struct net_device *dev,
1377 const unsigned char *addr, 1378 const unsigned char *addr,
1378 u16 vid, 1379 u16 vid,
1379 u16 flags); 1380 u16 flags,
1381 struct netlink_ext_ack *extack);
1380 int (*ndo_fdb_del)(struct ndmsg *ndm, 1382 int (*ndo_fdb_del)(struct ndmsg *ndm,
1381 struct nlattr *tb[], 1383 struct nlattr *tb[],
1382 struct net_device *dev, 1384 struct net_device *dev,