{"id":2230069,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2230069/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/cover/20260429065127.423949-1-vincent.chen@sifive.com/","project":{"id":46,"url":"http://patchwork.ozlabs.org/api/1.1/projects/46/?format=json","name":"Intel Wired Ethernet development","link_name":"intel-wired-lan","list_id":"intel-wired-lan.osuosl.org","list_email":"intel-wired-lan@osuosl.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260429065127.423949-1-vincent.chen@sifive.com>","date":"2026-04-29T06:51:25","name":"[0/2] ice: fix VF creation when !CONFIG_ICE_SWITCHDEV","submitter":{"id":79516,"url":"http://patchwork.ozlabs.org/api/1.1/people/79516/?format=json","name":"Vincent Chen","email":"vincent.chen@sifive.com"},"mbox":"http://patchwork.ozlabs.org/project/intel-wired-lan/cover/20260429065127.423949-1-vincent.chen@sifive.com/mbox/","series":[{"id":502002,"url":"http://patchwork.ozlabs.org/api/1.1/series/502002/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=502002","date":"2026-04-29T06:51:25","name":"ice: fix VF creation when !CONFIG_ICE_SWITCHDEV","version":1,"mbox":"http://patchwork.ozlabs.org/series/502002/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2230069/comments/","headers":{"Return-Path":"<intel-wired-lan-bounces@osuosl.org>","X-Original-To":["incoming@patchwork.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=DoX5SDal;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g57JW03vcz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 16:51:54 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 89BE283FC7;\n\tWed, 29 Apr 2026 06:51:52 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id wx0jOSBRL86Q; Wed, 29 Apr 2026 06:51:50 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 6588283F9D;\n\tWed, 29 Apr 2026 06:51:50 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id 49BCE1B8\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 06:51:49 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 2F3AB83EFA\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 06:51:49 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id WBHyioC0PRsg for <intel-wired-lan@lists.osuosl.org>;\n Wed, 29 Apr 2026 06:51:48 +0000 (UTC)","from mail-pl1-x633.google.com (mail-pl1-x633.google.com\n [IPv6:2607:f8b0:4864:20::633])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 91FF983EE6\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 06:51:48 +0000 (UTC)","by mail-pl1-x633.google.com with SMTP id\n d9443c01a7336-2ad617d5b80so74671745ad.1\n for <intel-wired-lan@lists.osuosl.org>; Tue, 28 Apr 2026 23:51:48 -0700 (PDT)","from Vincent-X1Extreme-TW.internal.sifive.com ([136.226.240.187])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b98895afaesm15038105ad.57.2026.04.28.23.51.45\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 23:51:47 -0700 (PDT)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6588283F9D","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 91FF983EE6"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1777445510;\n\tbh=t1oIA84XW+a8Bh4ovzb4hgVcCSUxwgN9bGakuQa7qX0=;\n\th=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From:Reply-To:From;\n\tb=DoX5SDalhyFn7MGrqvUvhKqhTvv04CM5Z2BCp2UeEPffTVn6aa9tyaxbBovZUv3MC\n\t p3jPSEu2+SSRYws1vTF8ksC5hwo3xP05zveiA4CwSjtJfGFbHfpRcFD5Qce4ZGUIXO\n\t Va/hx7P1Jmua57ebG50HEBtR4+WS7TOFHPZ8hZ88NpfZ0cIuAPeUBmozRCtiBNjYqy\n\t iH+n5p2r/AFYrEQMzAKBO0SvfXQlSQqawHAwyFr2/f7KykYxtLh664203xrIH/IJ/U\n\t X9gwI/5n0yuVAiKRwepNaPJku7QIUhIgeS+MGb2w1o8dmdV5bMny5w7RtHHd91/Aw1\n\t murXAlcYrHWMA==","Received-SPF":"Pass (mailfrom) identity=mailfrom;\n client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com;\n envelope-from=vincent.chen@sifive.com; receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp1.osuosl.org 91FF983EE6","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777445508; x=1778050308;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=t1oIA84XW+a8Bh4ovzb4hgVcCSUxwgN9bGakuQa7qX0=;\n b=hyPlC7CTZWGHEA+XP53PTCib2xZCiPkAUAdpvD2r09rn8ejjkBP4jTo5rTTvfuYpuY\n KHOJ7vYswWBcdDfZWA26xA374BMiXEhfuTKgdH5/LxPwGGTxotNZ/3chAU6LQOZ8OEWO\n z48qWJXRLHhBBL7g3PYaYSWGBDCD2K44F4c5lmHsBxEYL1RFHD+fKCnWB8C+2PF6KAkx\n EG5m3uEyQ4mGbwkGusgdOdIjYKCRTTZTsG0V6iA2ERenxugQJBdtDdS5nF5cIDNVyiUa\n clW3rV+jbDLk8rkGEIXm/sAkrLJaWVPB91rZI3j2c3E9D2Gt7pX7y145n9Aw1pN4j4sg\n jnsw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ+4neqbJ8NmzAvmE+6U0cAknkdbvl+4I0JhXQ3v08UUrFh42zcUEh3t6j+b54fjHPo+PgfXzBtAmnBEsj7+jpU=@lists.osuosl.org","X-Gm-Message-State":"AOJu0YyG1t9fhoYZe7E5FBefbFGTKtcrZbvfgsD72ZZibC7cyZiByKrn\n eD9OhID7PH0ujQJ8fQ8tHxitzwCeGHiBZ8ogPlHI8n9bR1OD87BLVoSAUc4ZIpeBzaw=","X-Gm-Gg":"AeBDiesKacAUouRTSO0XjgTim65ThafbUhl2ITrv0EuIg9m7p/48f7v/asB5N18BYqp\n oCN6F6wDu4+TjAzFzJkFy7EAY5hDpcDjynAyASWrqN5I/79iOj1AvBSeB5bnb6uS90Hd04iWC87\n WmeX1/Y0Il8wSsx838cZyta4NT+vter6ga9XOgbx8ewIEop3z2uBF+/EtDwsQ/pLQmpMe5FL9kN\n RUbsWxNwWwo8GpKtnjey1OfOpFc7f81VjWgAxGLQ1kQlmFKpWhP3f8vjx6VWBbsAFbLNFMl3JYs\n X/9eQ8uEoC0lOUu4yb0bPj8EkCB89W4kkQuWEL2yUEVtLVP+Y1hiWIaXx05JlFLnMNBILZ6Z27z\n 2tOlCcIpmgW2I88oLVv/B8OYI8Gu8p05srQQP1a8imK6QvqctfYhmKdjcnK+7ks24cESAxCks7o\n 1arZlaMMd+uXJyHv8AO3EJ1EqiOQclQxRdaUpTe4Hd548YLmVUvdCRf7D8LfZc6FUfCYVWAKsnd\n A0FMw==","X-Received":"by 2002:a17:903:11d0:b0:2b4:6367:7b86 with SMTP id\n d9443c01a7336-2b97c4a9217mr63297495ad.37.1777445507739;\n Tue, 28 Apr 2026 23:51:47 -0700 (PDT)","To":"anthony.l.nguyen@intel.com,\n\tprzemyslaw.kitszel@intel.com","Cc":"andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,\n kuba@kernel.org, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,\n 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;\n d=sifive.com; s=google; t=1777445508; x=1778050308; darn=lists.osuosl.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=t1oIA84XW+a8Bh4ovzb4hgVcCSUxwgN9bGakuQa7qX0=;\n b=PyA7Jfc8zSFmoabj1Yr33Wg10tPzJHYQM8Te0GSNd29kkVBSfipdCAN5MtCL1s4T1v\n jIhmP80UoVXzi0WqOqtr0HuxokKcsVX8p0gAy36eDUwwrAHlc1E/U64o+PwagcrXV722\n x6IdqGcHlMRAJdAjTx2iqmy5CA5D7GCaZ7wFI+ltcd/uifvzlL1trQE0EHEonGIsnJqt\n IoXchurIAXMlQBNT71exHoygKFSO/zqD28CUFcEeJab9lqm8KxQq5/bjrOAkHWlnySbC\n 6Zb6fH5FkGnLozHY9iV/WTap97kx01s3wfkQplbjnq4jK5D/ChFa/gtOJpKT17r+hh08\n 6QMQ==","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=pass (p=reject dis=none)\n header.from=sifive.com","smtp1.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256\n header.s=google header.b=PyA7Jfc8"],"Subject":"[Intel-wired-lan] [PATCH 0/2] ice: fix VF creation when\n !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\n <intel-wired-lan.osuosl.org>","List-Unsubscribe":"<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>","List-Archive":"<http://lists.osuosl.org/pipermail/intel-wired-lan/>","List-Post":"<mailto:intel-wired-lan@osuosl.org>","List-Help":"<mailto:intel-wired-lan-request@osuosl.org?subject=help>","List-Subscribe":"<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>","From":"Vincent Chen via Intel-wired-lan <intel-wired-lan@osuosl.org>","Reply-To":"Vincent Chen <vincent.chen@sifive.com>","Errors-To":"intel-wired-lan-bounces@osuosl.org","Sender":"\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"},"content":"This patch series fixes an issue where VF creation fails when\nCONFIG_ICE_SWITCHDEV is disabled.\n\nWhen CONFIG_ICE_SWITCHDEV is disabled, the stub function\nice_eswitch_attach_vf() returns -EOPNOTSUPP, causing VF initialization to\nfail even though basic VF functionality should work without switchdev\nsupport.\n\nThe fix is split into two patches:\n1. Add switchdev mode checks at caller sites to fix the immediate\n   issue while maintaining backward compatibility. This ensures\n   ice_eswitch_attach_vf() is only called when switchdev mode is\n   enabled, consistent with how ice_eswitch_attach_sf() is handled.\n2. Remove the now-redundant internal switchdev check from\n   ice_eswitch_attach_vf().\n\nVincent Chen (2):\n  ice: allow creating VFs when !CONFIG_ICE_SWITCHDEV\n  ice: remove redundant switchdev check in ice_eswitch_attach_vf()\n\n drivers/net/ethernet/intel/ice/ice_eswitch.c |  3 ---\n drivers/net/ethernet/intel/ice/ice_sriov.c   | 14 ++++++++------\n drivers/net/ethernet/intel/ice/ice_vf_lib.c  |  3 ++-\n 3 files changed, 10 insertions(+), 10 deletions(-)"}