aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-01-16 18:06:56 -0500
committerDavid S. Miller <davem@davemloft.net>2019-01-17 18:18:47 -0500
commit6685987c29582afc79b7fa3998dfbf36b4295791 (patch)
tree691ed7ff20bfe3d45ec4ee617cd78a486f05d6de /net/switchdev/switchdev.c
parent4c59b7d16096e5e2cfbc7f8cba972eb72f6b96c0 (diff)
switchdev: Add extack argument to call_switchdev_notifiers()
A follow-up patch will enable vetoing of FDB entries. Make it possible to communicate details of why an FDB entry is not acceptable back to the user. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r--net/switchdev/switchdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 5df9d1138ac9..cd78253de31d 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -556,10 +556,11 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
556 * Call all network notifier blocks. 556 * Call all network notifier blocks.
557 */ 557 */
558int call_switchdev_notifiers(unsigned long val, struct net_device *dev, 558int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
559 struct switchdev_notifier_info *info) 559 struct switchdev_notifier_info *info,
560 struct netlink_ext_ack *extack)
560{ 561{
561 info->dev = dev; 562 info->dev = dev;
562 info->extack = NULL; 563 info->extack = extack;
563 return atomic_notifier_call_chain(&switchdev_notif_chain, val, info); 564 return atomic_notifier_call_chain(&switchdev_notif_chain, val, info);
564} 565}
565EXPORT_SYMBOL_GPL(call_switchdev_notifiers); 566EXPORT_SYMBOL_GPL(call_switchdev_notifiers);