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 D73B7A0555; Wed, 19 Feb 2020 16:31:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F8641BF8C; Wed, 19 Feb 2020 16:31:42 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130088.outbound.protection.outlook.com [40.107.13.88]) by dpdk.org (Postfix) with ESMTP id A6979B62; Wed, 19 Feb 2020 16:31:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KORXWXvyek8TViPzPOVW+1XF6+mlia8Zb/Ia4hCzpRyaCmBRsVbj/9tF6AkFx5tF6OPDTMajbIRbNTgcJ1Zid4ZIWd7+Gt6VAw0IOkgnB5ibBiK6ZkuTip8ksHkH1xLbnuHFGuEyCNrtAYzjqUHp/9K9FmnUcQcKbltAhJjgvxp4N4ueCD644XWbYd2l8cV4jvjYuhT8iFSEzw0qE+p8rjipyDk6mepMbc31fJYxgGEOVwjCfAOB9tjBBom13bpUVhe08GuJUEqPoUUKWHe+MKlnJARx/jzmSyLmRVLm1k5xWUTStmwnguNM834qVdYggDa5o3duA84KQbCImmD7Mw== 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=Y0SsfX6H4C6kVJcFGCLydIe3M1hE8IIurNqmV+8qW8k=; b=iH1j27orZ+Y6JdZXNfPxDJFJW3fNF05z+wVr9E0Z/rZJVdFFejlet2wFxmwXJz8z8gZwoLnJLhyVVsVuUm/BeB/1Bm0KorICEhTx7gPWhoiK4nBMooqvRBYu2locdyaDccel3TAKwOWsK0PU62Zq+qv2GYuBjNs6iZduF11G7sH/ULnpTVD7tSL0igqEjWNh3cCbNrtF1IUPngCm1oMFqjoWR+JwN6jb3U6Yq8x6xczoUObb3zK0SO5NfhkrmKAAYmX9z14ATgkQHf0I++moIeKEMK/oA1JrH8yKOotO09mjz3coyhOkZ6fYg0eYNpEtVwg7XAbSPn1rQ7fdLhMASg== 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=Y0SsfX6H4C6kVJcFGCLydIe3M1hE8IIurNqmV+8qW8k=; b=D8JaPHcHgzCJRbJ73jvdIFoWfycRSB2R+kzpF6l8O78W8wdnAvh0Abh2HqDQAHwXWFuxiKw7VMfC5scNGpMtMYiGgcg1rhVZJ1+Xi0FFBaxeX6qby1jS7Sq0RTFiiYFIsi96PRzZcLCI5e5tkUf1M7c4XDbKksdqTz48GLrlJMU= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3716.eurprd05.prod.outlook.com (52.133.46.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.29; Wed, 19 Feb 2020 15:31:39 +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.2729.032; Wed, 19 Feb 2020 15:31:39 +0000 From: Matan Azrad To: Suanming Mou , Slava Ovsiienko CC: "dev@dpdk.org" , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH 1/2] net/mlx5: fix wrong layer validation with decapsulation Thread-Index: AQHV5zCSOg/CryqBBUqSWZBQCDx+0KgipL2A Date: Wed, 19 Feb 2020 15:31:39 +0000 Message-ID: References: <1582122380-54467-1-git-send-email-suanmingm@mellanox.com> <1582122380-54467-2-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1582122380-54467-2-git-send-email-suanmingm@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: 10fb8a6f-c159-48b1-6d30-08d7b550d09c x-ms-traffictypediagnostic: AM0PR0502MB3716:|AM0PR0502MB3716: 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:3968; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(396003)(366004)(376002)(136003)(189003)(199004)(110136005)(54906003)(86362001)(2906002)(478600001)(55016002)(4744005)(7696005)(316002)(186003)(52536014)(66946007)(66446008)(66556008)(64756008)(66476007)(6506007)(26005)(5660300002)(450100002)(8936002)(8676002)(81166006)(81156014)(4326008)(76116006)(9686003)(33656002)(6636002)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3716; H:AM0PR0502MB4019.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: SvlLfN9shfC6xvninqYfbw1u2v9rp/vXn6MlLBDrPVSaOMTCDtzKHckeR6ZuMICSSP/LSZRXwYmO19TL1pnK504s/H6YMej9se8ZCTYEnTQkiGYJBSChNIX6odLoMqSYireihSdojLYKx4NmySD3z/3Zm2zfCE8GPDazg9JiX02WSpGslo+T16ydfRkJcPVbsyUIEU8FN4obqOWf+BHz+xt3E2TjUXktPla09MfHD7jMPAvd0r5SPd7qlnOQGjepL+5geXCfJktbUJ4W4Ym6EyHwyiWTJKguZyXG9OCY7zefo8DhaM1lzxhd66uztMgYWpPLy5I2VEVDJq7o46SkoS74gQ9EcO8Lj9V78E8/WwGGr9pY8bs9DdthfKCx/SreNXM4wC60OphvC+UcNhcv4qr+bQUhlpbQjIpS6sCMEL5/c48L2xbqnnKiE4wpBxoo x-ms-exchange-antispam-messagedata: vN2+GH0rdC6r9HimIiIBNnGil3Y3mpG2kIhheL9clJafpbL4XJ9fkc4S/EAVjfNzUm0ge9q47OmAfmngIYlaRkWXYtySN2qJf7zxKMysWkYDA/PUPfLa8GU/Q5m9jexyjh5D77iKb7+MO590OQBeiQ== 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: 10fb8a6f-c159-48b1-6d30-08d7b550d09c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 15:31:39.6439 (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: ldfiqKhsi2w1b3l6VH2wDizA1f5EVhkM1NMjZxNrj8O7w4cuPxwHjA8292TgWMtzI8OBtc85eAGEeTT5Dan+Vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3716 Subject: Re: [dpdk-dev] [PATCH 1/2] net/mlx5: fix wrong layer validation with decapsulation 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: Suanming Mou > Currently, the flow validate function only validate the outermost layer w= ith > the header modify actions. If there is decapsulation action before the he= ader > modify action, the validation should choose the inner layer for validatio= n. >=20 > Add decapsulation check when validate with the header modify actions. > Choose the inner layer once there is decapsulation action. >=20 > Fixes: 4bb14c83df95 ("net/mlx5: support modify header using Direct Verbs"= ) > Cc: stable@dpdk.org >=20 > Signed-off-by: Suanming Mou Acked-by: Matan Azrad