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 5EFC0A04F1; Mon, 6 Jan 2020 15:44:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C8A791D66F; Mon, 6 Jan 2020 15:44:23 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140057.outbound.protection.outlook.com [40.107.14.57]) by dpdk.org (Postfix) with ESMTP id EEAC41D66C; Mon, 6 Jan 2020 15:44:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H4Lwm/uMCRFjWxqJxIVwdAJ/H7PVw4+w/B9G8IPWZntPbYmaEncBme7MnxthTR/ja1ob7DLGBVWXTPjvTzbTDL67N+2+FHIuEubcyH0OBdO/MDtk7Cr0NWLkAV4F4g6hxgf7iwYVFVt2Eexg9KeDQOO4qhvtkHYXMDoJ9wSzOimf3c7DUXdy0BsFRFk3WAvYTpJasaVirQf2VamFK/fmLqldfmA+FG1WbsiYuww9Xha04aJL+O2uUU6+hAwIr0Ex60Ip0sMNmg3in247yu4TiB4wl5r54/fJmDs4jTZ478Jf9OlYONfnCF9Pt0mFlKkCwSr9Pujf4UR27CzdoaDg3A== 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=jbnywsoFS+h0Ehv8Qt7ygjJY9Pxq1+NTuK5oYG82LgY=; b=gdsHMg82dBV596wm700ZwiiCu92VXbeTO6CTCv7gBw+wIfFtQ6ZTFXRxyjnVc+XNs+D8lCsnZo5f9Cy3p4B9j5wXM9B4OjDW8mqMdcY8wcXthZ6j7hJlLMOxuy8nFi55uzdV0xM4f/uMPEyraQQdOs6ITzrPI8ugXp0Glwu3Xs7mcvf60+gF0qsTCYgm2EJP/DdpaQQWxn8iT/1X4Hk7bDjyailqpHWydga4omMDGDHfvCWNaFZDk7wnyKLRNpmCi0mD02nR3+lBHaUTe4ZlHxhoDipp+hzQALmia1yFSCqXF9qqW3tpXU4E6gK7luaovdtPs9jsILm5WBWwocPqqw== 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=jbnywsoFS+h0Ehv8Qt7ygjJY9Pxq1+NTuK5oYG82LgY=; b=mSfDfcDoaPW93hXWqShKuBXKiKMr7BGL/0V8gatdYs4KwjOrfGG1gjjj7nnmGUoofcWH1DzFYEOOIiG27LsDA42mYLeR/9OOlHYKysBoYml92IINnUlRW6Gm/7PnUnjfgCuWiFBoQIdgRKkZwas4DpdTuZ3zPr4/iUenz4yejTk= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Mon, 6 Jan 2020 14:44:20 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::e495:9258:db09:1de8]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::e495:9258:db09:1de8%7]) with mapi id 15.20.2602.015; Mon, 6 Jan 2020 14:44:20 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh , Ori Kam , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix metadata item endianness conversion Thread-Index: AQHVumVgIgv4nuj+eEOOM1AyFzqvaKfdyp0Q Date: Mon, 6 Jan 2020 14:44:19 +0000 Message-ID: References: <1577197235-26433-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1577197235-26433-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: e7078df1-19ce-47c3-b1fe-08d792b6ea05 x-ms-traffictypediagnostic: AM0PR0502MB3795:|AM0PR0502MB3795: 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:8273; x-forefront-prvs: 0274272F87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(346002)(366004)(136003)(376002)(199004)(189003)(7696005)(8936002)(71200400001)(81166006)(8676002)(81156014)(186003)(6506007)(450100002)(4326008)(33656002)(478600001)(26005)(86362001)(4744005)(110136005)(9686003)(5660300002)(54906003)(52536014)(2906002)(55016002)(66446008)(64756008)(76116006)(316002)(66476007)(66556008)(66946007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3795; 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: 2DGk7Eo5a+QRZWh2sJ4aLohShhbSBrR4IO/46Kuu/5yCBFY9ySUDKR/WAP4lXCScKbLz82TE1LMnih7iOS5rm+9Ye8OdBkLZDmaL68g0yg+9+qJhVnFpQ7y0bveW7rkSvxdEIquRslp57RJCqrXYtmkJRhfyhF4xMg5KqLnAybPLCAM6mam5nzi5ewhtLpxy3ehEmOro6e/WCFz06YWHbHo7EXFkikcmuKDnVLKmUlV50RSWNOPcHKBvsTweD9Kz7hcl3z4xKwqSamYZq8rul82Gd8UlXGJxqTKuO4UHKQs5g9jnq4MaRVySIHgFdgZOKwe6wucQSPnog1byYFhEdCa7AvyWEvJU0NVy+Il5y2Tt1LniLjq33hKy5kWXlbVicb1pR1C25SPST9/tJ3nwiDDI4XGwQqYcwXzkLj9Kez08swrCCw1I/6QdT2D2+/xe 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: e7078df1-19ce-47c3-b1fe-08d792b6ea05 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2020 14:44:20.0051 (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: gHPyhyPdCM7Orl38nNpDuNEAHrU6RleoO27iHjI6ja/iytUduPIrZaOChBwGSMOzETve1C39dnWRIKt4sMboUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3795 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix metadata item endianness conversion 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 > The metadata register c0 field in the matcher might be split into two > independent fields - the source vport index and META item value. These > fields have no permanent assigned bits, the configuration is queried from= the > kernel drivers. >=20 > It means the metadata item field might be less than 32 bits. > Also, the metadata are engaged in datapath and there are no any metadata > endianness conversions in datapath to provide the better performance, all > conversions are implemented in rte_flow engine. If there are less than 32 > bits of metadata the extra right shift is needed after endianness convers= ion > for little- endian hosts. >=20 > Fixes: acfcd5c52f94 ("net/mlx5: update meta register matcher set") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad