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 mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49F33C5B572 for ; Sun, 16 Aug 2026 06:21:01 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD7BF40655; Sun, 16 Aug 2026 08:20:53 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id E6BA540431 for ; Sun, 16 Aug 2026 08:20:51 +0200 (CEST) Received: from localhost.localdomain (unknown [78.109.77.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 0E49DE0BCB; Sun, 16 Aug 2026 10:20:49 +0400 (+04) DKIM-Filter: OpenDKIM Filter v2.11.0 agw.arknetworks.am 0E49DE0BCB DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arknetworks.am; s=default; t=1786861250; bh=shpB+sYdwP959siTtsTf8tU0YrnugcyAhRv9zfFbW/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vefMCSdVhTl/OzcFDdUWYoK3n0/WDgvJNR+qazJLnPChI3i9p/0c7S1BIBc4GtNg2 KQS0HNHk4ad2KO+ssqgF6Fm/u7W1/gM0JnBHh10I+BusGeyqi6hARlSWNHn/ITXdTo i0R7s/hnYeJED1/W+rjSWf6bGwB+q5zvbhj/uOg7+e4C5gPSnS8UmvoPFJIDPQMA3/ enMX96dx6wTL18vslH9wd5vtBJNDogUVyno7IzhpwJrerGczd0Za4X7uGTr3Q5W2oS MnYr0QTjr9QsMAM+rPKqHOY/42KT/tGhILPdEqU6TFOBXgUfuEKgQtQNOHgKQCGS+Z lNievsH0n0Lpw== From: Ivan Malov To: dev@dpdk.org Cc: Andy Moreton , Viacheslav Galaktionov , Roman Zhukov , Pieter Jansen van Vuuren , Stephen Hemminger , Andrew Rybchenko Subject: [PATCH v4 1/6] common/sfc_efx/base: let Medford4 PF manage VFs Date: Sun, 16 Aug 2026 10:20:35 +0400 Message-ID: <20260816062040.15562-2-ivan.malov@arknetworks.am> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260816062040.15562-1-ivan.malov@arknetworks.am> References: <20260811175025.9019-1-ivan.malov@arknetworks.am> <20260816062040.15562-1-ivan.malov@arknetworks.am> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When the user binds the PF to 'vfio-pci', enables SR-IOV and instantiates a VF, looking to attach both the PF and the VF to DPDK, the DPDK driver has to instantiate the EVB switch on the PF. Wire the necessary methods into the Medford4 EVB implementation in libefx. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_evb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_evb.c b/drivers/common/sfc_efx/base/efx_evb.c index 5933c5d883..79db77c635 100644 --- a/drivers/common/sfc_efx/base/efx_evb.c +++ b/drivers/common/sfc_efx/base/efx_evb.c @@ -107,6 +107,12 @@ efx_evb_init( break; #endif /* EFSYS_OPT_RIVERHEAD */ +#if EFSYS_OPT_MEDFORD4 + case EFX_FAMILY_MEDFORD4: + eeop = &__efx_evb_ef10_ops; + break; +#endif /* EFSYS_OPT_MEDFORD4 */ + default: EFSYS_ASSERT(0); rc = ENOTSUP; -- 2.47.3