Skip to content

Commit c5b3871

Browse files
mmarcinigregkh
authored andcommitted
net: export netif_open for self_test usage
commit 3fdd336 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>
1 parent cc1494f commit c5b3871

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/core/dev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ int netif_open(struct net_device *dev, struct netlink_ext_ack *extack)
17241724

17251725
return ret;
17261726
}
1727+
EXPORT_SYMBOL(netif_open);
17271728

17281729
static void __dev_close_many(struct list_head *head)
17291730
{

0 commit comments

Comments
 (0)