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 6AF7A438D2; Mon, 15 Jan 2024 16:57:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B7B1402AC; Mon, 15 Jan 2024 16:57:32 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3590F402A2 for ; Mon, 15 Jan 2024 16:57:30 +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 40F8l61G023331 for ; Mon, 15 Jan 2024 07:57:29 -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=j8dj1+g2XvsQXHMO+dkHO 5U1cf8nD+SVI2YsUsCA410=; b=ITv6H1B8zesGTWw92gLT+iVuA1a2yxt6mXcnf JQd18lEAzQ4nZas5Vm4jlDO60GtET9OVrypKCb/c45ZB4leL4+S2F7eqkqjWfPt5 jOJD+ByxCdL5o4IKc5xyBMOtNnsNZJ54WbsLELs34Wy1GZB3twh8F688icKB46O2 vqGYvAKsmKXLOexcKUxUFZg6FZKuQTsXPbU7mTapO1zdlaO1f1Ia9WKtWCu39aQh 1LmkzrSFxyfLsIiWftOtkl5DdmjFUyJUn93A+Qax0U5X+X3zEZGrldzhHAWe0BbP MRT9QWT77PJJMC8QGW0KHTzox+VnmV6CnEvbEZ/C+vnU/wH2A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3vn1gc19jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 15 Jan 2024 07:57:29 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 15 Jan 2024 07:57:26 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 15 Jan 2024 07:57:26 -0800 Received: from localhost.localdomain (unknown [10.29.52.211]) by maili.marvell.com (Postfix) with ESMTP id D2EB93F7065; Mon, 15 Jan 2024 07:57:25 -0800 (PST) From: Harman Kalra To: CC: Harman Kalra Subject: [PATCH v2 0/1] multiple representors in one device Date: Mon, 15 Jan 2024 21:27:14 +0530 Message-ID: <20240115155715.111154-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: Ve8S4PxItgne9oSjGtHYqBjz4Ik1MlKR X-Proofpoint-GUID: Ve8S4PxItgne9oSjGtHYqBjz4Ik1MlKR 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=2023-12-09_02,2023-12-07_01,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 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 | 105 +++++++++++++++--- lib/ethdev/ethdev_driver.h | 9 +- 12 files changed, 119 insertions(+), 36 deletions(-) -- 2.18.0