diff options
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index b37e320def13..4b033af8e6cd 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -162,6 +162,9 @@ static struct list_head offload_base __read_mostly; | |||
| 162 | static int netif_rx_internal(struct sk_buff *skb); | 162 | static int netif_rx_internal(struct sk_buff *skb); |
| 163 | static int call_netdevice_notifiers_info(unsigned long val, | 163 | static int call_netdevice_notifiers_info(unsigned long val, |
| 164 | struct netdev_notifier_info *info); | 164 | struct netdev_notifier_info *info); |
| 165 | static int call_netdevice_notifiers_extack(unsigned long val, | ||
| 166 | struct net_device *dev, | ||
| 167 | struct netlink_ext_ack *extack); | ||
| 165 | static struct napi_struct *napi_by_id(unsigned int napi_id); | 168 | static struct napi_struct *napi_by_id(unsigned int napi_id); |
| 166 | 169 | ||
| 167 | /* | 170 | /* |
| @@ -1734,6 +1737,18 @@ static int call_netdevice_notifiers_info(unsigned long val, | |||
| 1734 | return raw_notifier_call_chain(&netdev_chain, val, info); | 1737 | return raw_notifier_call_chain(&netdev_chain, val, info); |
| 1735 | } | 1738 | } |
| 1736 | 1739 | ||
| 1740 | static int call_netdevice_notifiers_extack(unsigned long val, | ||
| 1741 | struct net_device *dev, | ||
| 1742 | struct netlink_ext_ack *extack) | ||
| 1743 | { | ||
| 1744 | struct netdev_notifier_info info = { | ||
| 1745 | .dev = dev, | ||
| 1746 | .extack = extack, | ||
| 1747 | }; | ||
| 1748 | |||
| 1749 | return call_netdevice_notifiers_info(val, &info); | ||
| 1750 | } | ||
| 1751 | |||
| 1737 | /** | 1752 | /** |
| 1738 | * call_netdevice_notifiers - call all network notifier blocks | 1753 | * call_netdevice_notifiers - call all network notifier blocks |
| 1739 | * @val: value passed unmodified to notifier function | 1754 | * @val: value passed unmodified to notifier function |
| @@ -1745,11 +1760,7 @@ static int call_netdevice_notifiers_info(unsigned long val, | |||
| 1745 | 1760 | ||
| 1746 | int call_netdevice_notifiers(unsigned long val, struct net_device *dev) | 1761 | int call_netdevice_notifiers(unsigned long val, struct net_device *dev) |
| 1747 | { | 1762 | { |
| 1748 | struct netdev_notifier_info info = { | 1763 | return call_netdevice_notifiers_extack(val, dev, NULL); |
| 1749 | .dev = dev, | ||
| 1750 | }; | ||
| 1751 | |||
| 1752 | return call_netdevice_notifiers_info(val, &info); | ||
| 1753 | } | 1764 | } |
| 1754 | EXPORT_SYMBOL(call_netdevice_notifiers); | 1765 | EXPORT_SYMBOL(call_netdevice_notifiers); |
| 1755 | 1766 | ||
