summaryrefslogtreecommitdiff
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-05-06 09:59:02 +0200
committerIngo Molnar <mingo@kernel.org>2025-05-06 10:00:58 +0200
commit24035886d735e4ce1c4605638adafe1fa2988e7a (patch)
tree8c75625bc848a16bde8ce69e902c70c28e7d3da7 /net/core/dev_api.c
parent3aba0b40cacdfba4a604dd09315fa6cdbeb0ed90 (diff)
parent92a09c47464d040866cf2b4cd052bc60555185fb (diff)
Merge tag 'v6.15-rc5' into x86/cpu, to resolve conflicts
Conflicts: tools/arch/x86/include/asm/cpufeatures.h Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/core/dev_api.c')
-rw-r--r--net/core/dev_api.c16
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);