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 2B24FA09FF; Wed, 30 Dec 2020 09:54:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C27D2E8B; Wed, 30 Dec 2020 09:54:18 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by dpdk.org (Postfix) with ESMTP id 098002D41 for ; Wed, 30 Dec 2020 09:54:15 +0100 (CET) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 30 Dec 2020 00:54:15 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 30 Dec 2020 08:54:13 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 30 Dec 2020 08:54:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CdUaVRko/hCJkyrAecnPX0AW4GOQHl89fquTUP2L2MpAyvLK0xrIA2QoP7y04uMSFAxByut+Dj0bfQ9xD7XkmrJ2a8EJdVTIZNvbD9a20mab+tTTFbXLL5Ec1fBlEjHSdlJmqaicsty4qxXEQB3ZVMbOKdfpiShlMbK2NgXfth8YpkK8YNm0eDxnjInPLX9EwRsauSsRr9TClnBYNSAsXEMkJYVIbiGOMC+8AFjha1i8hdz/GujpKFdEGNNJ6Zi4Dgf2E65Q3X/kmD4WXlecBjkV/XDUIRUYhEdk4z77zFO5sX/3ctwaPSgp/CyOUXcwpseVMBm03v3uDEoe0f6fBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HkJIB3mekEY7JnPoAvbssQmdfv027UYCvK6Xftqh/Yc=; b=bnPI9wbThKLY+n5hGUarcAnBUwWkJxAfvuTVVb4+gBAsh6Sqen3zL6ibVAh9tfm/zgN7l/KRbIS4cdHrSRVjmSv0z4kTSKGwGbZn6vj2oByIERjaRawa+WImrermiohx+9u0DkMg0+P9A+MVJGpbLtZMWhCBJswpN1siW/H+CoTUpFUjx5Z/nSJ7aOUqpg5tIeMBnKL+S4XUFD1+eLD/0Ybcb9g7v55UCHJ8SbYFbryAaDVwxRzmHFfwU0ygN0YVilRgWQBO9WJCVmigMRxHQX5AykpPCO8ZdfpkgWsfq5IE2liYDShhDjMm8CgdUr6QvycOS3u/3p/G3l9FogzanA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BYAPR12MB2776.namprd12.prod.outlook.com (2603:10b6:a03:67::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Wed, 30 Dec 2020 08:54:11 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::31b3:df5f:7d2a:c610]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::31b3:df5f:7d2a:c610%3]) with mapi id 15.20.3700.031; Wed, 30 Dec 2020 08:54:10 +0000 From: "Xueming(Steven) Li" To: Andrew Rybchenko , Slava Ovsiienko , NBU-Contact-Thomas Monjalon , Ferruh Yigit , Olivier Matz , Matan Azrad CC: "dev@dpdk.org" , Asaf Penso Thread-Topic: [RFC 0/7] support SubFunction representor Thread-Index: AQHW1U37ateeyY6RWEeK3j7lT6sIjqoMlI0AgALTBHA= Date: Wed, 30 Dec 2020 08:54:10 +0000 Message-ID: References: <1608303356-13089-1-git-send-email-xuemingl@nvidia.com> <4748b2dc-bc77-b769-a865-00e19f2ffc45@oktetlabs.ru> In-Reply-To: <4748b2dc-bc77-b769-a865-00e19f2ffc45@oktetlabs.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [240e:46c:b540:1966:751b:b773:8b3e:df69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e8c5176-0a56-4b6b-21a8-08d8aca079aa x-ms-traffictypediagnostic: BYAPR12MB2776: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:962; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hg82RFl/TLT7eV7IzIVXrNoXDu4EfHDzRaC2mZePGsBDalwVeEQmdri85ayBGl7jQEQC6unIr2Top3YZjLAaSYt19/GQSQqh343QGR00wb/Nxh0QailvUcy+OIwE45wGYh+Y1T5vn9W2Lph7fI3HPwTujO96NEk8B7NROuwR/CoZE33KURf+/uK0fEYSi+kE3TkmorJd+mprH62dF/2YwdRFo4GE1qnoQUZRsD4pLuZrwzw7+WoEVxdpTpFMe0bcoiSU/Q4sK6XGXLXAIfeCIL2sdpBoJYS/cdet56A/+1fQ++3kRuCYzfLjkllh/3OljFyPPBJsI4WofqbqfbrTBw28HH0eY6LK/egPlXTAiNenj2V/aPwvISV9GrXVvJzkU1b1x56WdVy72qEmdRty0jIZ4X4SPjBQQAF+1dhmU/gMKaWmGKTt0GBjh3vJyB/8AalxTFny6YjiHF3XZwElEg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(39860400002)(396003)(366004)(136003)(478600001)(107886003)(966005)(5660300002)(9686003)(52536014)(55016002)(2906002)(66476007)(66446008)(86362001)(66556008)(8936002)(6636002)(64756008)(33656002)(6506007)(66946007)(76116006)(4326008)(186003)(110136005)(8676002)(316002)(54906003)(83380400001)(71200400001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?sJMs7ehobHyYO5hzwSrzxXD3SrupRoodUzcCRdw451+RP7ycQguVvMgZX6Vv?= =?us-ascii?Q?5qwum4le7RMxH4uKmagy4GX6x4mKwNZjZTDfE+wuQQv1nzfnJcB2Nh2T7Tgh?= =?us-ascii?Q?oG3n5QZKdoJUzhHWG7skv0VGc7McFdJajq251+qCAQFjM8BjCNIjGtVVNWOy?= =?us-ascii?Q?X9329b9n+8MXLgc4sevgPhKf4//IgntB3YA9pC8hMfZyet848PRM7/4MpXLz?= =?us-ascii?Q?IfnzzqA8mHs4n9oJvyJ2KGY7LjaZM/tkyr61DtSFG1nT/iPbzxewzAM1NsI/?= =?us-ascii?Q?P/W9bPXKAzco3l42eG2MvTaWKPYCZsZ5cQ5eFb0A0PvDjBcMZ3obmNYp/KkH?= =?us-ascii?Q?47R18CD3HkGb4IX4GlQZDsvKASGE2moQ3FkNenPyAhHGJiDS7NIuufp/FxpX?= =?us-ascii?Q?fABq0eK7wfuvXCuEET3hwCUZGXASD+AjorBCdd4UDTCX70CuxjG8FEjc2Cdx?= =?us-ascii?Q?jGvz2u/c2a164CLD544xPIbFBi1g3f9poKb6nzYRy91dXrDmhb2VcOgk+7mT?= =?us-ascii?Q?rGG/mxNBash5cIYkEZhNyhqDb8Pa1EfFCwYbYWMT1E2Pc6EiiLhzt9ZCtG6/?= =?us-ascii?Q?WnrLcV5HaR7P0/wzuwgWkMJ18nfkm/WChmCGX/lmIjD1f3SbpvpD5MCgJcAh?= =?us-ascii?Q?Tm1xlrjqBSnPvE9K/NGRVPj+EJdb8NrAavWa5+5rN9u5CXSEWM9TyAt4wU6z?= =?us-ascii?Q?Nzn6IZxfq80vRVZ1b8+V5tGtCR4OoPAnSBrrImf0XOgLzABnKPFK8BZubURk?= =?us-ascii?Q?AyzuW+wJWV/SDZL7ovXK71XniJeF0BpujNFzMRph8BslbyZhrRD68jL7LRW8?= =?us-ascii?Q?y0AIQom1Q6F317O42h/8ugkZQB/ZLX+b04iEi+lO+jmMnKs+T9lU2R1UT6L1?= =?us-ascii?Q?BSHjV2KRwA79waPtYWc/yPhosiyevgs69pkSGoPY5QX5FcpZZEO/DhpZjWT8?= =?us-ascii?Q?AMiasjmowLcTFWEzYzvGlWv/782Q4GbYaetGvW9qusbI7KrpE96YOgdd/il1?= =?us-ascii?Q?mV7IUbkbV5c1FwqdD8ei0/S1ksgyMi8L2YVRKAEZ2Wgd6kk=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e8c5176-0a56-4b6b-21a8-08d8aca079aa X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 08:54:10.6931 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: o3m95uSHYH1Et2ng+YF2uidCkSh9TsEt4Hyo375IjcZzsYmRrchflDRK86OGhh3SC8eXSC6F0r6apvEfswNo3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2776 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1609318455; bh=HkJIB3mekEY7JnPoAvbssQmdfv027UYCvK6Xftqh/Yc=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=bwtCK2YRbRLqkAI3ox1lczIx8JJCuMMmecr05LAt5fKHOzp4dkmQErK1HmJqLxZEA 79PO9HaukWIsRRYLdNfLioo7uDTkTxChPwCfR7dsMwkthnHchJRDclzaLB7UKLlOGe QLwRzBZURJ/Mi8p7GtxATJBEbMVvq9RDe9ChC817uQK3BuCG0CzLQIcf7skLT65vKY eRAxMwmqM0rnIZ4y8F0Rj8pswRNUEOyeISL2R8wF5JMetrhglKObzP297cCQYWTvCn iDdc0pQ11wS7U5IHj8btJZ+8QC4U5czUdHHn7F+DLzyquq7GyOm/g3GYwwbQJampqq +FiXf3pD2s5lw== Subject: Re: [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" Hi Andrew, >-----Original Message----- >From: Andrew Rybchenko >Sent: Monday, December 28, 2020 9:45 PM >To: Xueming(Steven) Li ; Slava Ovsiienko >; NBU-Contact-Thomas Monjalon >; Ferruh Yigit ; Olivier Matz >; Matan Azrad >Cc: dev@dpdk.org; Asaf Penso >Subject: Re: [RFC 0/7] support SubFunction representor > >On 12/18/20 5:55 PM, Xueming Li wrote: >> 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. > >Many thanks for sharing the patchset. Looks very interesting. >I've already sent my comments and questions for individual patches. Appreciate for the wonderful review, will address them next week. > >> [1]: >> https://lore.kernel.org/netdev/20201112192424.2742-1-parav@nvidia.com/ > >[snip]