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 469A1A04C1; Wed, 20 Nov 2019 10:44:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C16225B3E; Wed, 20 Nov 2019 10:44:37 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80088.outbound.protection.outlook.com [40.107.8.88]) by dpdk.org (Postfix) with ESMTP id 32E2527D; Wed, 20 Nov 2019 10:44:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kG5p23+Nx4w67G34VJ564xSwxcYHhslUoUwN/ju+L0Y4MaRqEJytBqCc1x8MQZfr/nUkH5PwQ3HeV8wJPVRlBMVITQ1NoDMms67wxlaF2CxEUYMzXeWWObf/ejEd98ZdLP+3iusN3ZsNPGGjBx8pzvWeeSafrguOmQYqrYAgejJ8r74cvlozxnJwLG019iUonRNhasigBQ60y0sHL1d16fxMjb1hrYWgZE39IcE8hkcClTShB2a9xa+Mix7FFXgZcRzI6PPVT4QLNC2DVeNLPm0LHxe/f3Xd6G1T/WwMMk2TBVkBW2PlnnlNFUrYB+EdEFfA822X+0zzvS+tmYeW+Q== 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=YCoZrjtJ8w5INGHE2a5JregphDNDEqscBWlC6cqfbjo=; b=Rf4I+FPCsnC6wnk28KqsJBLViRKNjxRxXMlZ+rjg5XIRcKxCsBPBoA9fspV8A9qtDbLDn5RuIfl2RLnx+e2jvo/8ZFauujVnfMJC4Bh85yASrcQyyA3/hgOIOoNh9g4xf4M4IPsrO+fp+a7y3hplZ6tAs0KKRCiQTB5guMQoczUd75YAGsyvO2x/fYnrshABPWLVKq4qYpqSetUuzrRl70XfBHBqTY0tYAe/9VmZ4ATZy9xkd7cNGXwyaMp18dBSLkMV/tQQG6BWbxr+p7xDZfjBq+XCaSzFgWufBFXAs+YdHAjiByRcchCE8ZFA2hu6ggTu5pT0yXQQ5RKApQus7A== 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=YCoZrjtJ8w5INGHE2a5JregphDNDEqscBWlC6cqfbjo=; b=Lh0M1n0C8SHy76y7zV/LQnNT+GnQl81m1lwJdMQfYReCtoi3kaQSKEaiLnL9IrsO7kU7FD2t3hK2POoUNJq0glgq1eyn7oXEk/d0sw9XV4k+gEStRuUUo85sxJIYJWik7W2VJn4it+A/cWIPemFG173gfx+XgH9RpWZSQn8CaKQ= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4092.eurprd05.prod.outlook.com (52.134.73.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.30; Wed, 20 Nov 2019 09:44:35 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5%6]) with mapi id 15.20.2474.015; Wed, 20 Nov 2019 09:44:35 +0000 From: Raslan Darawsheh To: Matan Azrad , "dev@dpdk.org" CC: Slava Ovsiienko , Dekel Peled , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix L3 encapsulation flow validation Thread-Index: AQHVnu6XNmpt6GObzEe4JMkeOy1cpaeT0DuA Date: Wed, 20 Nov 2019 09:44:35 +0000 Message-ID: References: <1574177548-22741-1-git-send-email-matan@mellanox.com> In-Reply-To: <1574177548-22741-1-git-send-email-matan@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=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 241f25f2-f04c-44e6-de76-08d76d9e409b x-ms-traffictypediagnostic: DB3PR0502MB4092:|DB3PR0502MB4092: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 02272225C5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(39860400002)(366004)(346002)(396003)(376002)(13464003)(189003)(199004)(7736002)(186003)(229853002)(102836004)(86362001)(2906002)(76176011)(7696005)(53546011)(4326008)(81166006)(81156014)(33656002)(99286004)(66066001)(486006)(450100002)(14444005)(256004)(74316002)(66556008)(64756008)(8936002)(6246003)(316002)(6436002)(25786009)(11346002)(6506007)(446003)(8676002)(66446008)(66476007)(66946007)(14454004)(305945005)(476003)(76116006)(3846002)(6116002)(26005)(52536014)(2501003)(55016002)(478600001)(5660300002)(71200400001)(71190400001)(110136005)(54906003)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4092; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: 3vOnXlQRL1HnsnFSLOzzYN5BupiB55jF35URCKS7HvA6naQR0Jt4oaxY05IvlasJMP8/9gNWtqn64nr31XDP//AkHnqPPkFcgl//soQQJJxIOeQcWxex7c1ilyWZ4kvOI+tQoI6z3RXGbroqfs1PsvmqgzFjWGlfqltmruMeZo06h48iEVtawGz+XprQzwwubryS7l8L6A/iLcpTAXVCgBElXpVet3fIwMbo94+PA56ujhukAuhLGG0TVncvVvw4P6tMVISEqHXoK4ELI0Ni41HQivfiVQX+OYkbfLZjZkov4C/kMGTGDrxP2YNJyI7h21aRp9GH77VHeYpLPAraba+KosTF3az+6ZEKOEn0MzJlTA9vrOZA2oqfr2lyV0y8Qx0x0yrFoV2z9meJg98d2Ty54Cwr9bpNdjnrXtt7g81tWbxF3J5Bsjnlug7vU0cD 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: 241f25f2-f04c-44e6-de76-08d76d9e409b X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2019 09:44:35.0932 (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: Fs6zTxQ09mUbm19Fv/FVUQDsL9niDR35cFvow1UrKYoYiEl2MHqQISjH2SZ9c/cCJZSU2z6NE22NnXstp/dH1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4092 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix L3 encapsulation flow validation 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" Hi, > -----Original Message----- > From: dev On Behalf Of Matan Azrad > Sent: Tuesday, November 19, 2019 5:32 PM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; Dekel Peled > ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix L3 encapsulation flow validatio= n >=20 > In order to configure L3 encapsulation\decapsulation flow to mlx5 > devices, 2 actions should be added to the flow actions list: > RTE_FLOW_ACTION_TYPE_RAW_DECAP and > RTE_FLOW_ACTION_TYPE_RAW_ENCAP. >=20 > One of the validations for this scenario is to check that modify actions > is not done before the L3 decapsulation, because it doesn't make sense > to decapsulate a modified data. >=20 > Wrongly, this check was done for the case of L3 encapsulation what > causes a validation failure in modify + L3 encapsulation flow. >=20 > Ignore this check in case of L3 encapsulation. >=20 > Fixes: 4bb14c83df95 ("net/mlx5: support modify header using Direct Verbs"= ) > Cc: dekelp@mellanox.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Matan Azrad > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh