mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
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>
This commit is contained in:
parent
4c59b7d160
commit
6685987c29
10 changed files with 24 additions and 19 deletions
|
@ -195,7 +195,8 @@ int switchdev_port_obj_del(struct net_device *dev,
|
|||
int register_switchdev_notifier(struct notifier_block *nb);
|
||||
int unregister_switchdev_notifier(struct notifier_block *nb);
|
||||
int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
|
||||
struct switchdev_notifier_info *info);
|
||||
struct switchdev_notifier_info *info,
|
||||
struct netlink_ext_ack *extack);
|
||||
|
||||
int register_switchdev_blocking_notifier(struct notifier_block *nb);
|
||||
int unregister_switchdev_blocking_notifier(struct notifier_block *nb);
|
||||
|
@ -267,7 +268,8 @@ static inline int unregister_switchdev_notifier(struct notifier_block *nb)
|
|||
|
||||
static inline int call_switchdev_notifiers(unsigned long val,
|
||||
struct net_device *dev,
|
||||
struct switchdev_notifier_info *info)
|
||||
struct switchdev_notifier_info *info,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
return NOTIFY_DONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue