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 6CCA7A0519 for ; Tue, 23 Jun 2020 10:10:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58D2D1D584; Tue, 23 Jun 2020 10:10:23 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2061.outbound.protection.outlook.com [40.107.21.61]) by dpdk.org (Postfix) with ESMTP id 1BF891D555; Tue, 23 Jun 2020 10:10:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YKRq5fWVjGZapSIuR4zG4bpVvMXgxDP6VrIjKKpu/75pI7DBO812uZ+S7vBPgWp6jn2ZhGyaLTsH1mgr9E85eDUMeImiEwxYEJ0N6qI1GIwwSxkyFif24I4zDp/RTC60PlGBy6t1mUZct9BKGiO+wm4b/srELitjEXf1TP4rGtIkEznXrA2+EX3hwy7MCYGlnym162v6ekvYcEVYMwQLURkDccEaje+77DVGBGd6OHihHBBog0OF8X003p3n/obW18ocuB2/8AZjrGIPNVwoBTnfh+uzU8my4yAT81Pxl9z0KU++ietUI+PF+CNGnSqEybdxZZilCzYVmkqUHPlhbQ== 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=G4hpRV299gXoOjPjky9QLe6IDj3s6hnhqMuIWJ5FxRY=; b=QJl5+F+Qx2uo63s7qWgJWNssW1WEqdGeuvsjqHrB6KzUz2mwS45c++L1702REHQeM9kqyVmvzmPrNQRSPI0SGx3RI8xe9ut7hh054JAW2Row9a19VFQIdGQQwJYe/sO97v8+L2K7+vNnMs+tXhI1TKwKImf8wcGohMSiVfcBNtfz5owJ8/hGkrRLt0/kgs7+lx1+Irm9z8OjrnEh3D61EnpdNG2t5ymwEZOtRGbHbQihV+GiRJ4YQzL8J+nr13TiPAKwJ+Ryk7Yqq+EWARSBO5UPz3c4xjGE3mLNsKLFs6O3XqIkCTFoo9/mjg1ljGUDtBf+L2pcdqnDXmn8V0Azcg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=G4hpRV299gXoOjPjky9QLe6IDj3s6hnhqMuIWJ5FxRY=; b=bw2kRpWAAE4EhYcGRVY6asWzSf1EYdu2bf8mKlq7xDMsNh/egN2Y1eyLpJrVXdQDCnUeAstG4LOi4ygyeDr4B6pxOuECDPvO6qSowVb7t6LhjtB4rOt2BSm+j1FvapP65JOkPRvhphuUjBLmDJt3OmsloleNKFWSq0pHC90E89E= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (2603:10a6:208:f::11) by AM0PR0502MB3956.eurprd05.prod.outlook.com (2603:10a6:208:11::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Tue, 23 Jun 2020 08:10:19 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b189:d782:4c74:7998]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b189:d782:4c74:7998%7]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 08:10:19 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix host physical function representor naming Thread-Index: AQHWSTK5Dfmko8LnIkKbWlViPqKn4qjl2O9w Date: Tue, 23 Jun 2020 08:10:19 +0000 Message-ID: References: <1592898514-15422-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1592898514-15422-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [77.124.38.174] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: fbfde9a7-88c6-42fd-5119-08d8174cde89 x-ms-traffictypediagnostic: AM0PR0502MB3956: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pF8aRjsgBeBR6NCuQ0u5iurfL6mSfW7bSUadEl8V6wQwFx51K/ddaAhN3B8k4w4ziUSrzBDGjTIfQO833qnp3Tm77zsS8I3CPeZ3jiqc7dcZbkW89x5g5hdezytRBmOmg7+53qc/PYXWUSdGwa0X3Il20Gh/4JkSdT2QKuBWvW56Ty7LyUgsT7c8BtQV/+SX5IK5ASQtDe+YQaR7nzRbKDvRkYJTc6uZsSyB7LlAELaUzYZoH66RKh0wKACvy273PfhIO3mX4OcY1+w3OAfhCse0ll0S/YcOGhmMPm2lhkNHvqKQIQkRqgGbY6moT6rDM2JYTL+Qm5MXIHvMPeG20g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(39860400002)(366004)(376002)(136003)(54906003)(53546011)(6506007)(8676002)(478600001)(110136005)(8936002)(7696005)(55016002)(76116006)(66946007)(450100002)(186003)(86362001)(64756008)(66556008)(66476007)(66446008)(52536014)(26005)(9686003)(5660300002)(71200400001)(4326008)(2906002)(33656002)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 4jfEcc4Fb/3GQxtMXP1Geme6JEZDCa0uO986NqqTntqmqX6ChPT868jWOzYCruis1wkLaOLFOiYYz/O71o2J7cDIbZ+2V1eAs9vyefCLV8/XVM3bnSciwHVXFdsRoMWyqdV6EuYn7dDAbvUZronUPg4EMJy2nTr17ofRYsVE7lCIwX69Dwn2y+zqGiQ4Tnz7YTS6+iK88ACWiuJmv201+HWpg551VrxuCmarT3y+9gglLUJiSMPzYQp1Jsz+Bg2nKTvwN+LpSYYEvqBWVcoG4ZIXO4RGxfgetsIaeR2ogWGv5QEEy2yLnev75Uc37qrM8Rc64CoIRR/NpKgJL8fn4CNTDqLjoHRZvqEBlYgmoUQCDxY9f37RvgLntRh6QOCTIkVpXSEgSjnIQEcRUSz/ZsoUYRLeOH96SRhYIucsIkt2RMreODQDkZV7MDDIG2P92142u53jBTy2p6tjdLXBmac8pW+tjJrUKrt9uKTKAw0= 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: fbfde9a7-88c6-42fd-5119-08d8174cde89 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 08:10:19.0560 (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-CrossTenant-userprincipalname: RoY07Wcr6GoFePfZOHUqGYWYHUyAVImwwhp3CaArrA2/KrOV5xAh7y+b73UR4Q0aioMAaLeRkL6xXH2amWu9EA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3956 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix host physical function representor naming X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Viacheslav Ovsiienko > Sent: Tuesday, June 23, 2020 10:49 AM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix host physical function representor naming >=20 > The new kernel adds the names like "pf0" for Host PCI physical function > representor on Bluefield SmartNIC hosts. This patch provides correct HPF > representor recognition over the kernel versions 5.7 and laters. >=20 > The following port 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 > - "p" followed by decimal digits, for example "p2", master > is assumed >=20 > - "pf" followed by PF index, for example "pf0", Host PF > representor is assumed on SmartNIC systems. >=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 > Fixes: 79aa430721b1 ("common/mlx5: split common file under Linux > directory") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad