From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CF91C34047 for ; Wed, 19 Feb 2020 14:26:26 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 5FE7C2176D for ; Wed, 19 Feb 2020 14:26:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FE7C2176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B3581BF78; Wed, 19 Feb 2020 15:26:25 +0100 (CET) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id F41663B5 for ; Wed, 19 Feb 2020 15:26:23 +0100 (CET) From: Suanming Mou To: viacheslavo@mellanox.com, matan@mellanox.com Cc: dev@dpdk.org, rasland@mellanox.com Date: Wed, 19 Feb 2020 16:26:18 +0200 Message-Id: <1582122380-54467-1-git-send-email-suanmingm@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH 0/2] net/mlx5: fix incorrect layer choose with decap 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" For header modify actions after decapsulation action, the header modify actions should be applied to the inner layers. Currently, it always treats the outermost layers as the corresponding layer even though with decapsulation action. Add the layer validation with decapsulation for the header modify action and fix the incorrect layers chosen in header modify action with decapsulation action. Suanming Mou (2): net/mlx5: fix wrong layer validation with decapsulation net/mlx5: fix header modifiy choose wrong layer type drivers/net/mlx5/mlx5_flow_dv.c | 104 +++++++++++++++++++++++++++++++++------- 1 file changed, 87 insertions(+), 17 deletions(-) -- 1.8.3.1