diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-04-16 16:17:04 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-04-16 16:17:04 +0300 |
commit | 3a320eada570c44cffb15d971479a29b2e9ee270 (patch) | |
tree | 42a02676191e08d9419eb63f51d3b6c3050fb7a1 /net/core/dev_api.c | |
parent | 1741189d843a1d5ef38538bc52a3760e2e46cb2e (diff) | |
parent | 1a1d569a75f3ab2923cb62daf356d102e4df2b86 (diff) | |
download | linux-3a320eada570c44cffb15d971479a29b2e9ee270.tar.xz |
Merge remote-tracking branch 'torvalds/master' into perf-tools-next
Sync with upstream to pick up the perf-tools patches that updates the
header files copies to address the check_header.sh warnings. There are
also some libbpf updates, better pick those to be on the same page with
libbpf since perf uses it in various places.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/core/dev_api.c')
-rw-r--r-- | net/core/dev_api.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/core/dev_api.c b/net/core/dev_api.c index 90bafb0b1b8c..90898cd540ce 100644 --- a/net/core/dev_api.c +++ b/net/core/dev_api.c @@ -327,3 +327,19 @@ int dev_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf) return ret; } EXPORT_SYMBOL_GPL(dev_xdp_propagate); + +/** + * netdev_state_change() - device changes state + * @dev: device to cause notification + * + * Called to indicate a device has changed state. This function calls + * the notifier chains for netdev_chain and sends a NEWLINK message + * to the routing socket. + */ +void netdev_state_change(struct net_device *dev) +{ + netdev_lock_ops(dev); + netif_state_change(dev); + netdev_unlock_ops(dev); +} +EXPORT_SYMBOL(netdev_state_change); |