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 15536A0534; Wed, 12 Feb 2020 14:09:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C3A401D9E; Wed, 12 Feb 2020 14:09:45 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70084.outbound.protection.outlook.com [40.107.7.84]) by dpdk.org (Postfix) with ESMTP id 5F174DE3; Wed, 12 Feb 2020 14:09:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=erVazj1WpRoE1pZjVNUqKYRJgjA2CjI134BpQnTob6unAN/JTVPwk3tEGSLuJRepFxguHb/w4HpEcjxgPzWUgcFR9Zq4Q6NES/fFpCvxQem2mjO18LZQ5E5XW6FyRGoZGdGQUWN3h0gvhgIVpqCqJ+mueg5YwqPdCW1eD859qX8F1407+5LyYJznbaLzH51ecS/+9jA+hjuLqc8/FnU3Zfrjk1PNnX9UQ7Zb09IqCNCMAXwheWj9/DBGkaAvUYuPGCAnzLwe7p7/5RgW14QftP7BGk6H8JMZSsOBb7YtHjpxh4GZUxVaN8cbZzsRzT3xvoQcXekKaWqSnzq0TlXRvA== 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=m9RmV+QIqL/MjTdCcM4MgH543sA2Aa+F6zNLZDmECT0=; b=ZlHYaCloVljEWY349xQurlGgSsoy2qCD32a6oHYlnCpFh5mo+vtaWAttyvO0QzOFp+38xQfc28z1cEtE7uqLlvmHcQVjhyKiD/WmA5fp+irzhGvu+DaRZhriiqwU0tgLHDml2L3ATfdhS26osoiAazADpOflBJN93g0tLlYWMDM12GpSQV4KS8Ojd76K+4A5wubhaWYomh0gaFZIXw9fikSlnlr9MU1pRgDIE418JtizGe9ofQiOLUGhCN3ODJeHzMiKpvWRa4FTAZY+/Y7soJXy0gsznkxKj3YVF9czlyKp5t9RGBZK83FhviT/ERuQCTHjFWfZNWbyfj/+Tlj2sw== 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=m9RmV+QIqL/MjTdCcM4MgH543sA2Aa+F6zNLZDmECT0=; b=B97Ib3ecWRUMoJ6k3WAn7mv10VkWh/25DX8qW3zeEYQ1dkr0mCzB2vg/eMTLZLKi+kouMYKMyCNmjF1Li0jAY9cU25BNkpNgB6Vhmrztk6bHVbsoIWEtmAV1+VZVNw6hLwNQPUtNPvwNKsLbe2sfRtA9VHymqyiHnl8hifaMMSw= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3844.eurprd05.prod.outlook.com (52.133.48.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.25; Wed, 12 Feb 2020 13:09:42 +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.2707.030; Wed, 12 Feb 2020 13:09:42 +0000 From: Matan Azrad To: Dekel Peled , Slava Ovsiienko , Raslan Darawsheh CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: fix VLAN item match for DV mode Thread-Index: AQHV4MstHOCSfDTUSES79mMa7dv4BqgXiaTQ Date: Wed, 12 Feb 2020 13:09:42 +0000 Message-ID: References: <5efd0f36d43342b0e450fed3642f2b2498cf0899.1581251023.git.dekelp@mellanox.com> <4db303faa3da7cb9490ab218dc6b8de34d212561.1581411317.git.dekelp@mellanox.com> In-Reply-To: <4db303faa3da7cb9490ab218dc6b8de34d212561.1581411317.git.dekelp@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: 6461ecf4-0b64-421b-0a1a-08d7afbcd2e8 x-ms-traffictypediagnostic: AM0PR0502MB3844:|AM0PR0502MB3844: 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:6430; x-forefront-prvs: 0311124FA9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(346002)(136003)(39860400002)(366004)(199004)(189003)(5660300002)(8676002)(76116006)(7696005)(52536014)(66556008)(9686003)(26005)(66946007)(81156014)(66476007)(186003)(33656002)(2906002)(55016002)(4326008)(81166006)(66446008)(64756008)(110136005)(8936002)(71200400001)(54906003)(450100002)(45080400002)(316002)(86362001)(478600001)(6636002)(6506007)(966005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3844; 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: 4eY0qMcIrljtVbpFIYNztLu6Pumc1VIVoXBIqbYe9Z6uiDreLI7PY3nA99J+IGRusOGDM4s+uIx0CI8pVe2OnD4EH+LgAJvYH8qTCCrSzIPF77n/FhHfx3hDPeaAYZLCxYRHJgS3ebZyA/Y2UtQwd+huyVN/gzwRv/Ps6K8GLrzttPtLqqum3IM0GNKNUUpQiLi+5IaCudklDWHisCRBETgsOc7xenjXNHMrR59+PWABsiFjMjoL9WhvMCUTk3RUhlyR8pSF1697VJVy0WspDRWCRodUsrM8UxqM832ilTDX93iAtZILTcS91FaxyUC6Ua01H2g8G1oQbdPjExgesazQX7miAZgc/WjVm0+SRXiHHhDox4ToJyeN0WRwR5DvpFN+SPsi84h5pfzs/QTSP4bfP4hp1Fs4dJS19Vl4Ug5lUvuNQHAC3+wZYuXf/so0XAIf9e2VinBKuOWhXOmS9lex4iBD0HI/ATnr8cDAieK7HShZ7v6nO8hVYNfSeSyworvcZvW1tEp7Kpqw6obB+w== x-ms-exchange-antispam-messagedata: 96n8/9ArNDOljnf1CKpfeC2mR3DC6zCTN2yFcffiqRa8VVOPXriUbUV7xTKf1LTYsFqLal6Xd2H465IXE0gwoPqTVWu0ELzd2ozunelTaLqOMkOvX7BSS5CxgFGadOFZxatErlfOmMZ6VxKgc+LIXw== 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: 6461ecf4-0b64-421b-0a1a-08d7afbcd2e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2020 13:09:42.1850 (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: vq9SK295geowfrkP3qNP6NIgQelIVpQHqGrwcJYhd1XcOJ+Ss4619umwJEIqWqp0R5gC+WZrQg4c44RlFafK+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3844 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix VLAN item match for DV mode 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: Dekel Peled > Currently MLX5 PMD can't match on untagged packets specifically. > Tagged traffic still hits the flows intended for untagged packets. > If the flow has ETH, it will catch all matching packets, tagged and untag= ged. > The solution is to use cvlan_tag bit. > If mask=3D1 and value=3D0 it matches on untagged traffic. > If mask=3D1 and value=3D1 it matches on tagged traffic. > This is the kernel implementation. >=20 > This patch updated MLX5 PMD to set cvlan_tag mask and value according to > flow rule contents. > This update is relevant when using DV flow engine (dv_flow_en=3D1). >=20 > See example at > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fdoc.d > pdk.org%2Fguides%2Fnics%2Fmlx5.html%23limitations&data=3D02%7C01 > %7Cmatan%40mellanox.com%7C4fdccf29506c4fd32ce708d7aee24ebe%7Ca6 > 52971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C637170159317867655& > ;sdata=3DPVklEAti0Im%2FAXWuzDlizjxkVAyjCZSwF3vcYQ1x7fw%3D&reser > ved=3D0. >=20 > Fixes: fc2c498ccb94 ("net/mlx5: add Direct Verbs translate items") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dekel Peled Acked-by: Matan Azrad