From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D831EFF8867 for ; Wed, 29 Apr 2026 06:51:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 89BE283FC7; Wed, 29 Apr 2026 06:51:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wx0jOSBRL86Q; Wed, 29 Apr 2026 06:51:50 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6588283F9D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1777445510; bh=t1oIA84XW+a8Bh4ovzb4hgVcCSUxwgN9bGakuQa7qX0=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=DoX5SDalhyFn7MGrqvUvhKqhTvv04CM5Z2BCp2UeEPffTVn6aa9tyaxbBovZUv3MC p3jPSEu2+SSRYws1vTF8ksC5hwo3xP05zveiA4CwSjtJfGFbHfpRcFD5Qce4ZGUIXO Va/hx7P1Jmua57ebG50HEBtR4+WS7TOFHPZ8hZ88NpfZ0cIuAPeUBmozRCtiBNjYqy iH+n5p2r/AFYrEQMzAKBO0SvfXQlSQqawHAwyFr2/f7KykYxtLh664203xrIH/IJ/U X9gwI/5n0yuVAiKRwepNaPJku7QIUhIgeS+MGb2w1o8dmdV5bMny5w7RtHHd91/Aw1 murXAlcYrHWMA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 6588283F9D; Wed, 29 Apr 2026 06:51:50 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 49BCE1B8 for ; Wed, 29 Apr 2026 06:51:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2F3AB83EFA for ; Wed, 29 Apr 2026 06:51:49 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id WBHyioC0PRsg for ; Wed, 29 Apr 2026 06:51:48 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com; envelope-from=vincent.chen@sifive.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 91FF983EE6 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 91FF983EE6 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by smtp1.osuosl.org (Postfix) with ESMTPS id 91FF983EE6 for ; Wed, 29 Apr 2026 06:51:48 +0000 (UTC) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-2ad617d5b80so74671745ad.1 for ; Tue, 28 Apr 2026 23:51:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777445508; x=1778050308; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t1oIA84XW+a8Bh4ovzb4hg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24cESAxCks7o 1arZlaMMd+uXJyHv8AO3EJ1EqiOQclQxRdaUpTe4Hd548YLmVUvdCRf7D8LfZc6FUfCYVWAKsnd A0FMw== X-Received: by 2002:a17:903:11d0:b0:2b4:6367:7b86 with SMTP id d9443c01a7336-2b97c4a9217mr63297495ad.37.1777445507739; Tue, 28 Apr 2026 23:51:47 -0700 (PDT) Received: from Vincent-X1Extreme-TW.internal.sifive.com ([136.226.240.187]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b98895afaesm15038105ad.57.2026.04.28.23.51.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 23:51:47 -0700 (PDT) To: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, vincent.chen@sifive.com Date: Wed, 29 Apr 2026 14:51:25 +0800 Message-Id: <20260429065127.423949-1-vincent.chen@sifive.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1777445508; x=1778050308; darn=lists.osuosl.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=t1oIA84XW+a8Bh4ovzb4hgVcCSUxwgN9bGakuQa7qX0=; b=PyA7Jfc8zSFmoabj1Yr33Wg10tPzJHYQM8Te0GSNd29kkVBSfipdCAN5MtCL1s4T1v jIhmP80UoVXzi0WqOqtr0HuxokKcsVX8p0gAy36eDUwwrAHlc1E/U64o+PwagcrXV722 x6IdqGcHlMRAJdAjTx2iqmy5CA5D7GCaZ7wFI+ltcd/uifvzlL1trQE0EHEonGIsnJqt IoXchurIAXMlQBNT71exHoygKFSO/zqD28CUFcEeJab9lqm8KxQq5/bjrOAkHWlnySbC 6Zb6fH5FkGnLozHY9iV/WTap97kx01s3wfkQplbjnq4jK5D/ChFa/gtOJpKT17r+hh08 6QMQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=reject dis=none) header.from=sifive.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=google header.b=PyA7Jfc8 Subject: [Intel-wired-lan] [PATCH 0/2] ice: fix VF creation when !CONFIG_ICE_SWITCHDEV X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vincent Chen via Intel-wired-lan Reply-To: Vincent Chen Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This patch series fixes an issue where VF creation fails when CONFIG_ICE_SWITCHDEV is disabled. When CONFIG_ICE_SWITCHDEV is disabled, the stub function ice_eswitch_attach_vf() returns -EOPNOTSUPP, causing VF initialization to fail even though basic VF functionality should work without switchdev support. The fix is split into two patches: 1. Add switchdev mode checks at caller sites to fix the immediate issue while maintaining backward compatibility. This ensures ice_eswitch_attach_vf() is only called when switchdev mode is enabled, consistent with how ice_eswitch_attach_sf() is handled. 2. Remove the now-redundant internal switchdev check from ice_eswitch_attach_vf(). Vincent Chen (2): ice: allow creating VFs when !CONFIG_ICE_SWITCHDEV ice: remove redundant switchdev check in ice_eswitch_attach_vf() drivers/net/ethernet/intel/ice/ice_eswitch.c | 3 --- drivers/net/ethernet/intel/ice/ice_sriov.c | 14 ++++++++------ drivers/net/ethernet/intel/ice/ice_vf_lib.c | 3 ++- 3 files changed, 10 insertions(+), 10 deletions(-) -- 2.34.1