From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BD01A09FD; Fri, 18 Dec 2020 15:56:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 28D7CCAD1; Fri, 18 Dec 2020 15:56:09 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 325BCCACF for ; Fri, 18 Dec 2020 15:56:08 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@nvidia.com) with SMTP; 18 Dec 2020 16:56:06 +0200 Received: from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BIEu65Q013340; Fri, 18 Dec 2020 16:56:06 +0200 From: Xueming Li To: Viacheslav Ovsiienko , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Olivier Matz , Matan Azrad Cc: dev@dpdk.org, xuemingl@nvidia.com, Asaf Penso Date: Fri, 18 Dec 2020 14:55:49 +0000 Message-Id: <1608303356-13089-1-git-send-email-xuemingl@nvidia.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [RFC 0/7] support SubFunction representor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SubFunction [1] is a portion of the PCI device, a SF netdev has its own dedicated queues(txq, rxq). A SF netdev supports eswitch representation offload similar to existing PF and VF representors. A SF shares PCI level resources with other SFs and/or with its parent PCI function. >From SmartNIC perspective, when PCI device is shared for multi-host, representors for host controller and host PF is required. This patch set introduces new representor types in addtion to existing VF representor. Syntax: [[c#]pf#]vf#: VF port representor/s from controller/pf [[c#]pf#]sf#: SF port representor/s from controller/pf #: VF representor - for backwards compatibility "#" is number instance, list or range, valid examples: 1, [1,3,5], [0-3], [0,2-4,6] For flexibility, this patch also introduces new netdev capability to indicate the capability to support new representor types. [1]: https://lore.kernel.org/netdev/20201112192424.2742-1-parav@nvidia.com/ Xueming Li (7): ethdev: support sub function representor ethdev: support multi-host representor devarg: change reprsentor ID to bitmap ethdev: capability for new representor syntax kvargs: update parser for new representor syntax common/mlx5: update representor name parsing net/mlx5: support representor of sub function 0000-cover-letter.patch | 44 ++++++ config/rte_config.h | 1 + drivers/common/mlx5/linux/mlx5_common_os.c | 32 ++-- drivers/common/mlx5/linux/mlx5_nl.c | 2 + drivers/common/mlx5/mlx5_common.h | 2 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 5 + drivers/net/mlx5/linux/mlx5_os.c | 69 ++++++++- drivers/net/mlx5/mlx5_ethdev.c | 2 + lib/librte_ethdev/ethdev_private.c | 164 ++++++++++++++------- lib/librte_ethdev/ethdev_private.h | 3 - lib/librte_ethdev/rte_class_eth.c | 7 +- lib/librte_ethdev/rte_ethdev.c | 5 +- lib/librte_ethdev/rte_ethdev.h | 2 + lib/librte_ethdev/rte_ethdev_driver.h | 35 +++++ lib/librte_kvargs/rte_kvargs.c | 82 +++++++---- 15 files changed, 351 insertions(+), 104 deletions(-) create mode 100644 0000-cover-letter.patch -- 2.25.1