From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150089.outbound.protection.outlook.com [40.107.15.89]) by dpdk.org (Postfix) with ESMTP id 727441BC9B for ; Thu, 18 Apr 2019 20:54:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E9B74Sh2Ddx1hIUH2j2wKayVY0d4O6bvjtLUmzgrRto=; b=DEA1l2Pwvz01z4zjlKlaaVw/i3xrtluj2DbixqvOEtsLhLLNJy8epD0sB4ZxPxCUh/KMSe8n47hNgHxSJBW9iYOacbRL8ysEwY+x7fByVBG7blRF3QoF9XRX3WyIkrN/mVOVr/y15p8/plLYtgj5R+YBWBkq2BM6wda1fgXZeAc= Received: from AM6PR0502MB3797.eurprd05.prod.outlook.com (52.133.22.13) by AM6PR0502MB4055.eurprd05.prod.outlook.com (52.133.10.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 18:54:57 +0000 Received: from AM6PR0502MB3797.eurprd05.prod.outlook.com ([fe80::5db8:12bc:aff3:5048]) by AM6PR0502MB3797.eurprd05.prod.outlook.com ([fe80::5db8:12bc:aff3:5048%6]) with mapi id 15.20.1792.022; Thu, 18 Apr 2019 18:54:57 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF representor Thread-Index: AQHU9F4ylYu+k2QeO0qOOVXh+v/n6aZCP9gQ Date: Thu, 18 Apr 2019 18:54:57 +0000 Message-ID: References: <1555084107-24692-1-git-send-email-viacheslavo@mellanox.com> <1555423828-31859-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1555423828-31859-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 37949000-8bb5-4017-e2c7-08d6c42f5a39 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM6PR0502MB4055; x-ms-traffictypediagnostic: AM6PR0502MB4055: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(136003)(396003)(39860400002)(366004)(199004)(189003)(68736007)(14454004)(2501003)(11346002)(6436002)(76176011)(66066001)(53936002)(5024004)(256004)(6246003)(446003)(8936002)(102836004)(74316002)(966005)(476003)(66446008)(64756008)(229853002)(6506007)(478600001)(7736002)(305945005)(45080400002)(26005)(486006)(81156014)(81166006)(8676002)(186003)(71200400001)(71190400001)(52536014)(110136005)(316002)(5660300002)(25786009)(86362001)(2906002)(3846002)(6116002)(33656002)(7696005)(55016002)(9686003)(97736004)(6306002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0502MB4055; H:AM6PR0502MB3797.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 10jG9EpaOgzNodWaT9rXazM1vWrTIZ/lI4DjDO9HMlXx11dVkADCKgQX9bkU5LmrqTz5uSDfjG1UJomya713luY32nyT7clfu84d1/NhKH+yjL+tT8kgIPSKPNFOxzXD3G92b36RMCMEW05mcwT7wPHymmlP6Wp4YfEIol+ZgwbQ4KkcjuRcbjEL0erUBOekvJmbynnQ7e9vq69zwYencOk5NeMO/OjdVNuOJ/AzIXlA5OKEo9pJ0ovullOBk1xUZoxDwk+iao4UsyWTgWMoB4gEA5WkUHbIgklKiy0nYiVHmV0UGcwCsVPxwVP+dBZRlA0ITROXoxv0bM9ohm+w/X8hqTvnLW6rDkYyVJsUaEFB63fWH7gnSHxvTl3IfFr/DPM6IZROu97xTVaVTzgGQl/UuSNUzwJ7Iyt9aTAgnQg= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37949000-8bb5-4017-e2c7-08d6c42f5a39 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 18:54:57.4443 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0502MB4055 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF 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: , X-List-Received-Date: Thu, 18 Apr 2019 18:54:58 -0000 Tuesday, April 16, 2019 5:10 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF representor >=20 > On BlueField platform we have the new entity - PF representor. > This one represents the PCI PF attached to external host on the side of A= RM. > The traffic sent by the external host to the NIC via PF will be seem by A= RM on > this PF representor. >=20 > This patch refactors port recognizing capability on the base of physical = port > name. We have two groups of name formats. Legacy name formats are > supported by kernels before ver 5.0 (being more precise - before the patc= h > [1]) or before Mellanox OFED 4.6, and new naming formats added by the > patch [1]. >=20 > Legacy naming formats are supported: >=20 > - missing physical port name (no sysfs/netlink key) at all, > master is assumed >=20 > - decimal digits (for example "12"), representor is assumed, > the value is the index of attached VF >=20 > New naming formats are supported: >=20 > - "p" followed by decimal digits, for example "p2", master > is assumed >=20 > - "pf" followed by PF index concatenated with "vf" followed by > VF index, for example "pf0vf1", representor is assumed. > If index of VF is "-1" it is a special case of host PF > representor, this representor must be indexed in devargs > as 65535, for example representor=3D[0-3,65535] will > allow representors for VF0, VF1, VF2, VF3 and for host PF. >=20 > Note: do not specify representor=3D[0-65535], it causes devargs > processing error, because number of ports (rte_eth_dev) is > limited. >=20 > Applications should distinguish representors and master devices exclusive= ly > by device flag RTE_ETH_DEV_REPRESENTOR and do not rely on switch > port_id (mlx5 PMD deduces ones from representor_id) values returned by > dev_infos_get() API. >=20 > [1] > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fwww > .spinics.net%2Flists%2Fnetdev%2Fmsg547007.html&data=3D02%7C01%7C > shahafs%40mellanox.com%7C95dc9265aee344ca1c1108d6c27553f3%7Ca6529 > 71c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636910206515011521&sd > ata=3DxJFDvK63LaQB9B8eVNn8iKfH5YzsnLW%2FsN1wPh6iyK8%3D&reser > ved=3D0 > Linux-tree: c12ecc23 (Or Gerlitz 2018-04-25 17:32 +0300) > "net/mlx5e: Move to use common phys port names for vport > representors" >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D0A7BA00E6 for ; Thu, 18 Apr 2019 20:55:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B90AB1BCA0; Thu, 18 Apr 2019 20:55:01 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150089.outbound.protection.outlook.com [40.107.15.89]) by dpdk.org (Postfix) with ESMTP id 727441BC9B for ; Thu, 18 Apr 2019 20:54:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E9B74Sh2Ddx1hIUH2j2wKayVY0d4O6bvjtLUmzgrRto=; b=DEA1l2Pwvz01z4zjlKlaaVw/i3xrtluj2DbixqvOEtsLhLLNJy8epD0sB4ZxPxCUh/KMSe8n47hNgHxSJBW9iYOacbRL8ysEwY+x7fByVBG7blRF3QoF9XRX3WyIkrN/mVOVr/y15p8/plLYtgj5R+YBWBkq2BM6wda1fgXZeAc= Received: from AM6PR0502MB3797.eurprd05.prod.outlook.com (52.133.22.13) by AM6PR0502MB4055.eurprd05.prod.outlook.com (52.133.10.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 18:54:57 +0000 Received: from AM6PR0502MB3797.eurprd05.prod.outlook.com ([fe80::5db8:12bc:aff3:5048]) by AM6PR0502MB3797.eurprd05.prod.outlook.com ([fe80::5db8:12bc:aff3:5048%6]) with mapi id 15.20.1792.022; Thu, 18 Apr 2019 18:54:57 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF representor Thread-Index: AQHU9F4ylYu+k2QeO0qOOVXh+v/n6aZCP9gQ Date: Thu, 18 Apr 2019 18:54:57 +0000 Message-ID: References: <1555084107-24692-1-git-send-email-viacheslavo@mellanox.com> <1555423828-31859-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1555423828-31859-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 37949000-8bb5-4017-e2c7-08d6c42f5a39 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM6PR0502MB4055; x-ms-traffictypediagnostic: AM6PR0502MB4055: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(136003)(396003)(39860400002)(366004)(199004)(189003)(68736007)(14454004)(2501003)(11346002)(6436002)(76176011)(66066001)(53936002)(5024004)(256004)(6246003)(446003)(8936002)(102836004)(74316002)(966005)(476003)(66446008)(64756008)(229853002)(6506007)(478600001)(7736002)(305945005)(45080400002)(26005)(486006)(81156014)(81166006)(8676002)(186003)(71200400001)(71190400001)(52536014)(110136005)(316002)(5660300002)(25786009)(86362001)(2906002)(3846002)(6116002)(33656002)(7696005)(55016002)(9686003)(97736004)(6306002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0502MB4055; H:AM6PR0502MB3797.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 10jG9EpaOgzNodWaT9rXazM1vWrTIZ/lI4DjDO9HMlXx11dVkADCKgQX9bkU5LmrqTz5uSDfjG1UJomya713luY32nyT7clfu84d1/NhKH+yjL+tT8kgIPSKPNFOxzXD3G92b36RMCMEW05mcwT7wPHymmlP6Wp4YfEIol+ZgwbQ4KkcjuRcbjEL0erUBOekvJmbynnQ7e9vq69zwYencOk5NeMO/OjdVNuOJ/AzIXlA5OKEo9pJ0ovullOBk1xUZoxDwk+iao4UsyWTgWMoB4gEA5WkUHbIgklKiy0nYiVHmV0UGcwCsVPxwVP+dBZRlA0ITROXoxv0bM9ohm+w/X8hqTvnLW6rDkYyVJsUaEFB63fWH7gnSHxvTl3IfFr/DPM6IZROu97xTVaVTzgGQl/UuSNUzwJ7Iyt9aTAgnQg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37949000-8bb5-4017-e2c7-08d6c42f5a39 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 18:54:57.4443 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0502MB4055 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF 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" Message-ID: <20190418185457.ptzrtgjm18hCF2QpBDnSmE1aXDVIuaY12SJdbvspAsg@z> Tuesday, April 16, 2019 5:10 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v2] net/mlx5: add support for PF representor >=20 > On BlueField platform we have the new entity - PF representor. > This one represents the PCI PF attached to external host on the side of A= RM. > The traffic sent by the external host to the NIC via PF will be seem by A= RM on > this PF representor. >=20 > This patch refactors port recognizing capability on the base of physical = port > name. We have two groups of name formats. Legacy name formats are > supported by kernels before ver 5.0 (being more precise - before the patc= h > [1]) or before Mellanox OFED 4.6, and new naming formats added by the > patch [1]. >=20 > Legacy naming formats are supported: >=20 > - missing physical port name (no sysfs/netlink key) at all, > master is assumed >=20 > - decimal digits (for example "12"), representor is assumed, > the value is the index of attached VF >=20 > New naming formats are supported: >=20 > - "p" followed by decimal digits, for example "p2", master > is assumed >=20 > - "pf" followed by PF index concatenated with "vf" followed by > VF index, for example "pf0vf1", representor is assumed. > If index of VF is "-1" it is a special case of host PF > representor, this representor must be indexed in devargs > as 65535, for example representor=3D[0-3,65535] will > allow representors for VF0, VF1, VF2, VF3 and for host PF. >=20 > Note: do not specify representor=3D[0-65535], it causes devargs > processing error, because number of ports (rte_eth_dev) is > limited. >=20 > Applications should distinguish representors and master devices exclusive= ly > by device flag RTE_ETH_DEV_REPRESENTOR and do not rely on switch > port_id (mlx5 PMD deduces ones from representor_id) values returned by > dev_infos_get() API. >=20 > [1] > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fwww > .spinics.net%2Flists%2Fnetdev%2Fmsg547007.html&data=3D02%7C01%7C > shahafs%40mellanox.com%7C95dc9265aee344ca1c1108d6c27553f3%7Ca6529 > 71c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636910206515011521&sd > ata=3DxJFDvK63LaQB9B8eVNn8iKfH5YzsnLW%2FsN1wPh6iyK8%3D&reser > ved=3D0 > Linux-tree: c12ecc23 (Or Gerlitz 2018-04-25 17:32 +0300) > "net/mlx5e: Move to use common phys port names for vport > representors" >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20