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 533E4A04C3; Thu, 14 Nov 2019 13:06:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 592662B87; Thu, 14 Nov 2019 13:06:01 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130047.outbound.protection.outlook.com [40.107.13.47]) by dpdk.org (Postfix) with ESMTP id 2C3A02B86 for ; Thu, 14 Nov 2019 13:06:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WFibspL3VdN0XxJPdkyW1fK5wXiAMZ4D7A5KdRQD9ADLu1IB4Z2N0+9U395Q88TKtk6nuqMcYu5SRzQV7V56rZOsS/XRKhevNaRRI7mTceiAvAZQ5RaOhqno4K9PEhQvNSM+JP0Hur+fQQMkMq8tjID7fG0FxUPyP5DbsHl+j6adfbd4wGYWU03M0gKiaUIAr81cPpU9/V461hdXF3MP2O4OGNb1kctzPAD/kSdooTXF2LkddbXJgJqMQU3BNZBMGWDNZh/gcnC5vK+hxq9J3p0XTtWEchomP3mDHPqizqKX7E8VYM5zpFfjf1I5IpCmdk8mznCTMUdOm2nUHrWnhw== 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=3xfvGCEaDYQ7/07636/QmTIjZS7J9OHJJZX5gFh9qns=; b=NVEParvo33DnJUznsgmwxO0CRYaVnD0TXdbbWfODzOe0EWRWnB/zDeDBpqRGw86xoW5Z9WTbck/W6BM5ARiVpp7M0fkU6Q2kiNPwPd/aVfTYaLHkbKj6loUHgfQ+9LwdGQkvIxhMtkOeS2ho8DZdD3kitPxESGd2Pg6otc71DUsaH5L1zl4hN71q5wyIWKgip7evyzX+0kAVd4abXTp6inEGCjyh9kv66ImQSp2PYLOEGSFmtkBl64KuvP6bVM/lI13BhPoRd36a1IrMMRQ6lvlNft17ND5QxCp62S1teIs0SmialMDZtWNPahxA0sdoPiAY2PAQHhi/2s1w5jHv9g== 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=3xfvGCEaDYQ7/07636/QmTIjZS7J9OHJJZX5gFh9qns=; b=dFWjw2Zhv19Wg5y4Bj8Xv3E7YMMhEuqRzFPHFVpRFlWMZ+WNmiOplFyroibxB/efwqCNJCcdEQTmx0A78phOcKbe1E+tBJ+DzJkpVyaXwEnuL0Gv3j9ROIrhZCnyK3kS/SOrKzylDKDBD0XyUF048SN+GjFOz93gOOJz5RBt5qs= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3842.eurprd05.prod.outlook.com (52.133.49.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Thu, 14 Nov 2019 12:05:58 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::fd7a:e5a8:deec:c1b0]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::fd7a:e5a8:deec:c1b0%7]) with mapi id 15.20.2451.027; Thu, 14 Nov 2019 12:05:58 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh , Ori Kam Thread-Topic: [PATCH] net/mlx5: fix vport id value in port id action Thread-Index: AQHVmsl4Ig1EsliZBEOInEBZCm8FKqeKkgKQ Date: Thu, 14 Nov 2019 12:05:58 +0000 Message-ID: References: <1573721796-22614-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1573721796-22614-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: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dc9d3000-ad82-463d-cf9e-08d768fb0272 x-ms-traffictypediagnostic: AM0PR0502MB3842:|AM0PR0502MB3842: 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:5797; x-forefront-prvs: 02213C82F8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(376002)(39860400002)(366004)(346002)(199004)(189003)(25786009)(52536014)(5660300002)(2501003)(478600001)(4744005)(316002)(86362001)(81156014)(8936002)(81166006)(110136005)(2906002)(54906003)(6116002)(3846002)(66446008)(66946007)(66556008)(64756008)(8676002)(446003)(66476007)(11346002)(55016002)(9686003)(76116006)(4326008)(66066001)(6506007)(476003)(6246003)(486006)(76176011)(102836004)(107886003)(186003)(26005)(256004)(14454004)(6436002)(7696005)(71190400001)(7736002)(33656002)(305945005)(99286004)(71200400001)(229853002)(14444005)(74316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3842; H:AM0PR0502MB4019.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: BCL:0; x-microsoft-antispam-message-info: PHi8GgJfp6ZhZh6VjeA2YpzYqp3tTdaNHCw4T6rGnaZb8LoPHXwCL/ajw0tHQ3W0sK9KMljBwdGr3nxT7rwKFeINaYLdpoaJ7qvXrHCdz0vayFLVJoNMNUP8kMoDeKeD/KhN+ntC1FCSpOzRtUFTjyQ1Wm6Suck3znEyXcQfwWT64URmKedo6f3eM7v90KNz3Qo7Ws1ebnft5b17hf0qVg5p00STFZZcOvKITR9IrBGH/AA20zG294+j7OX/K7xUHLlsKiClv74IPLG2lMW2Y4siDI+BwAhVrN3k7J59b8nOxevaePgeth/QZ2YW5eNbMTbIuiKGJGddlnkbvqizcYv7xzMeyTTAqWPqQ5ZSEinty/Fw36F+UkB/GjX2AUtF58fJYPtFh/5BQrSZfOCR9tYftWeU++376iR99jKRWZuCPYhqhFN7XnGCpBu/Dval 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: dc9d3000-ad82-463d-cf9e-08d768fb0272 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2019 12:05:58.2073 (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: x+aPSJBWaIeMFCKS6JB5TJrt+EMTvWuu8eoFW8FkWUfdiJUkWuF/iymJBgPIv+ITgnNE8Qqfd4i/WOgwjwRvVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3842 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix vport id value in port id action 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" From: Viacheslav Ovsiienko=20 > The kernel driver (starting from OFED 4.7.3.1.3) uses the upper half of > metadata register C0 to provide VHCA and vport id's. The mlx5 PMD should > check the actual mask of register C0 and shift the vport id value for por= t > actions appropriately. >=20 > Fixes: f07341e7aed3 ("net/mlx5: update source and destination vport > translations") >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad