From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D3094390D; Sun, 21 Jan 2024 20:19:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF418402AB; Sun, 21 Jan 2024 20:19:17 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 8B78E40150 for ; Sun, 21 Jan 2024 20:19:16 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40LJFMjD020031 for ; Sun, 21 Jan 2024 11:19:15 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=pfpt0220; bh=3nuP2ozLw1YQPSsLOc+fB jSF7+AwbDInWSYphPJ2fow=; b=WGf8nbnZ+ylxUTQrDOcF/ZzZu0xJC1rVHjgJV XeNjIZtFn2MWdj5tCPu6g51Yf1s3nOtQyu+W6dUGrGIcM1pWzV4jJKEv3+DyAmY4 VJmJEnHMENRWP9F4nCHvpDT1rcr1ETPal6Mub/oeWv3y4V1JxHsBsQXryzZ5qSJt A1oYXdQ+EHPgCoeDFX/JhGnIxloWfLsmwDqJMmcZbogTbgsYvgRsgf++pUIHJQFv wdvUOY2eyeJPFDJkzakeCQN76a/QMFTm1YONKGcVRgO8vuly8f5Rlau1Pndgz6I8 tl+rhXJeGcJEDu6GfQdlRf1tUKGLv9uw1hdGj4to2oC17w48A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3vrejnans6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 21 Jan 2024 11:19:15 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 21 Jan 2024 11:19:13 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sun, 21 Jan 2024 11:19:13 -0800 Received: from localhost.localdomain (unknown [10.29.52.211]) by maili.marvell.com (Postfix) with ESMTP id 782D85B692E; Sun, 21 Jan 2024 11:19:12 -0800 (PST) From: Harman Kalra To: CC: Harman Kalra Subject: [PATCH v4 0/1] multiple representors in one device Date: Mon, 22 Jan 2024 00:49:07 +0530 Message-ID: <20240121191908.156149-1-hkalra@marvell.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240111064432.193119-1-hkalra@marvell.com> References: <20240111064432.193119-1-hkalra@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: Jorig0EaTK2CGT2nIkMrnTWPrmD5lCsY X-Proofpoint-GUID: Jorig0EaTK2CGT2nIkMrnTWPrmD5lCsY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-21_02,2024-01-19_02,2023-05-22_02 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 Following series adds support to enable creation of multiple representors under one base device. There may be scenarios where port representors for multiple PFs or VFs under PF are required and all these representor ports created under a single pci device. Marvell CNXK port representor solution is designed around this scenario where all representors are backed by a single switch device. Earlier this change was implemented as part of the Marvell CNXK port representor series but after suggestions from Thomas we would like to propose these changes in common code. https://patches.dpdk.org/project/dpdk/patch/20231219174003.72901-25-hkalra@marvell.com/#166785 V4: - Used MT safe strtok_r in place of strtok - Reworded some comments V3: - Fix duplicate representor devarg key handling logic V2: - Updated the multiple representor devarg pattern to list i.e. representor=[pf[0-1],pf2vf[1,2-3],[4-5]] - Introduced size of array as third argument to rte_eth_devargs_parse() to avoid array corruption - Squashed separate document patch Harman Kalra (1): ethdev: parsing multiple representor devargs string doc/guides/prog_guide/poll_mode_drv.rst | 4 +- .../prog_guide/switch_representation.rst | 1 + drivers/net/bnxt/bnxt_ethdev.c | 4 +- drivers/net/enic/enic_ethdev.c | 4 +- drivers/net/i40e/i40e_ethdev.c | 4 +- drivers/net/ice/ice_dcf_ethdev.c | 4 +- drivers/net/ixgbe/ixgbe_ethdev.c | 4 +- drivers/net/mlx5/linux/mlx5_os.c | 8 +- .../net/nfp/flower/nfp_flower_representor.c | 4 +- drivers/net/sfc/sfc_ethdev.c | 4 +- lib/ethdev/ethdev_driver.c | 108 +++++++++++++++--- lib/ethdev/ethdev_driver.h | 9 +- 12 files changed, 122 insertions(+), 36 deletions(-) -- 2.18.0