From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4931F2D1F40 for ; Fri, 6 Feb 2026 15:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770392570; cv=none; b=E4wvE6ENHfcM2d23HHcEWFHq1ExqQ6HNVesHrrPZb63RGQvMKSb4Zxf961OGmT4KcPcbv4eLMX7z/QlHms/NSLuEBfNCy3VY0JvQ04d6ui3jneHKIeAglGQjCKF3I3MyNh+/Gtx/DZSGDD8bDH0JjaBndDuxpmyf6d279U5n5n4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770392570; c=relaxed/simple; bh=RgNHkO1t0LY/JdKK9DJjaXVvcw9gEDHDg22uEBqQJJs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WUdH0jUq+Rb+AhrtN7UiMykzNDgctYsiAF76UmHpC460eQ2xSxoG9NgUy1KpvmOBxWVSpVhNYP0X/+r7/osJW80lVK7uYYl9uhK95VkcGj8bzfVeFtbnSshh4X80+r4mah0+TlIp1aIyvL+atP/Ovk/L/qsGny0QGm1G5xfLZYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QqUHIvzP; arc=none smtp.client-ip=209.85.222.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QqUHIvzP" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-8c6d76b9145so236605885a.2 for ; Fri, 06 Feb 2026 07:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770392569; x=1770997369; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ctrVGJ4rkCHHyx+/hoFia9xDzknoZ2CE0M4UFFU9GRI=; b=QqUHIvzP/z+N7ZhXInxPdJXipxXjOAdX/FeimemPwkQ9BdHlnILytIazSerEmGQR9E ErQ572BpjyHwOcOs6KGqTG9HiuNhhYMdlkht+Itz6MSmPXcrNPeJQnl3w/NL8ZqoIJiX yDCoEtvZ1K2T+UVejrJmrkRin6JajJua+MYD2JpKmlWQ/9WNMvuAjW4JMb7eda7WMwky u0Ukv469cQA7yOPICQFuv/WV0le2Z5PE1LrbhSvPdLF0uOJ5vXJXulxKYmOz8s4Rw0UP vQDbgve8ANfj5QfaBa9WI7xTeWETFM4YaAk5wOpWWBRF2By3UaMIH/XJ5S0h6lXyHAE+ VWBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770392569; x=1770997369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ctrVGJ4rkCHHyx+/hoFia9xDzknoZ2CE0M4UFFU9GRI=; b=HW35x2/+h/aZxw4l2T+PscrwMEaiifihp5klATglTfDilBVw/MuwnpeFuw+8dR2cU9 JEqPc0TNCZgPOF9Gd9pmy2sl6D5s7H64MXKplBRFKVLQ2VRLfDKm6+Xkx98e7glpt/c3 TBgIH6uciZkYqx/ThUHJtE0LcLhkEfihTKYbIZ7yO4XjBfR9bIgpgsB/nCt+jq8QK7gl Vrk5SVnUiaR6M8wDnY7U12HkCMIvA20d64s9VDTq4gIsd1SXVsieVx9QwMsHyUHouRK4 7ZF7JhqHz90ifqi+vpg/D0cqRIy4gaRgg6AxUaRkxo0+QCRN1I9d4c/4vEtjp6jmSgDR nS+g== X-Gm-Message-State: AOJu0YyTFiXlaQqs108SRzvOyu6p77YaFkttB8IYLAbdAsaB6yv4/VaY J5VLOwfhdY4/ju6QQ6DnnPpLfNXer5mJRJS2goUL9F3m+ErlRePP4zjM X-Gm-Gg: AZuq6aJ3XSYr19AHQ4qig8ddKeqKdntQ042zPHTVAERnesKen1QbpraYRDKcpnfzEKO mivFmdv2Zx8zxyEFW7LHKn0/7mvfVrH8Sz821aNzoa322+GFujirb0fCE+lvNnzV1wx0oOdEfSt cSETfP7US+cAVtVo21B3gGl2K4TmXqPoDM9ZGzoK0gCCv55WpINT6AjTwr2poXiwoqahqiqxaZN U6sQvnL1Wf/YB8NeuVvlmOm2LSfx+adiw9DjOoPUy3zGCycxiaP/euQR5uRUQsLPJTGVlNQ/79M 1tAi/O4Hi6bB+54RwJ1vpP8oLfK6syKE7xT+qVGCfAWUvs+/rkvQ2QXHrhiO0iA9Id/trOd/P4J vVGQt/Zck8mIXERGZQ7Q/BK8ASf3/WqZObbqX/MdAWXgg8mrygSghpYiy/Qtd7xdOH62mjFnN9h F28E1CVGOkW845e71AqUopmPTmHuw0kxFe3xKE2IcrQSSC X-Received: by 2002:a05:620a:1a8c:b0:8ca:4288:b163 with SMTP id af79cd13be357-8caeef2f874mr390689285a.17.1770392569116; Fri, 06 Feb 2026 07:42:49 -0800 (PST) Received: from PF5YBGDS.localdomain ([163.114.130.1]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8caf9eea0c0sm181499185a.42.2026.02.06.07.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Feb 2026 07:42:48 -0800 (PST) From: mike.marciniszyn@gmail.com To: Alexander Duyck , Jakub Kicinski , kernel-team@meta.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Russell King , Jacob Keller , Mohsin Bashir , Lee Trager , "Mike Marciniszyn (Meta)" , Dan Carpenter , Pei Xiao , Stanislav Fomichev , Kuniyuki Iwashima , Samiullah Khawaja , Ahmed Zaki , Alexander Lobakin Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v12 1/5] net: export netif_open for self_test usage Date: Fri, 6 Feb 2026 10:42:41 -0500 Message-ID: <20260206154246.814-2-mike.marciniszyn@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260206154246.814-1-mike.marciniszyn@gmail.com> References: <20260206154246.814-1-mike.marciniszyn@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Mike Marciniszyn (Meta)" 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. 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. Link: https://patch.msgid.link/20250309215851.2003708-1-sdf@fomichev.me [1] Signed-off-by: Mike Marciniszyn (Meta) --- net/core/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/dev.c b/net/core/dev.c index 43de5af0d6ec..d1d5694d1ff0 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1724,6 +1724,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) { -- 2.43.0