diff options
| author | Mike Marciniszyn (Meta) <mike.marciniszyn@gmail.com> | 2026-03-07 05:58:43 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-06-27 11:07:40 +0100 |
| commit | fabf508294f75e1e2e7cc7a53c8bade9fdc45ff1 (patch) | |
| tree | 97ccd1d66502601f3865e73f7b241f001b1b6b92 | |
| parent | 69969796115a9d03941c05aa100fac899e28f13d (diff) | |
| download | linux-fabf508294f75e1e2e7cc7a53c8bade9fdc45ff1.tar.gz linux-fabf508294f75e1e2e7cc7a53c8bade9fdc45ff1.zip | |
net: export netif_open for self_test usage
commit 3fdd33697c2be9184668c89ba4f24a5ecbc8ec51 upstream.
dev_open() already is exported, but drivers which use the netdev
instance lock need to use netif_open() instead. netif_close() is
also already exported [1] so this completes the pairing.
This export is required for the following fbnic self tests to
avoid calling ndo_stop() and ndo_open() in favor of the
more appropriate netif_open() and netif_close() that notifies
any listeners that the interface went down to test and is now
coming back up.
Link: https://patch.msgid.link/20250309215851.2003708-1-sdf@fomichev.me [1]
Signed-off-by: Mike Marciniszyn (Meta) <mike.marciniszyn@gmail.com>
Link: https://patch.msgid.link/20260307105847.1438-2-mike.marciniszyn@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index fab5a0bebd92..38e1b77bdd8c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1731,6 +1731,7 @@ int netif_open(struct net_device *dev, struct netlink_ext_ack *extack) return ret; } +EXPORT_SYMBOL(netif_open); static void __dev_close_many(struct list_head *head) { |
