From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 209A4A050A; Wed, 13 Apr 2022 13:19:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B660340694; Wed, 13 Apr 2022 13:19:40 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2048.outbound.protection.outlook.com [40.107.101.48]) by mails.dpdk.org (Postfix) with ESMTP id B01EF4068B; Wed, 13 Apr 2022 13:19:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdC/CrPcLi2tNO53aK1+GaRX/tBdgEh886LQtZJf10FwEO4ByL927+ivDp0sS2RRGvfJn6cP5VsDl+Kz+FWMf9+Dq0F/eCg+2/b1xxy3zA8XXN9nxLIaK6wHcn/YFPI4VeIbNQBjSRThz7UUNRH36UQvM7GotvbNyTJYcV7fxfhKTtp/9dYlOp/EAt0KhbmyYOL4l/5/qAtiZh/CP+yCI5JXcnbKyQnaapqTU3JyYj/PJ63VDl1VJfaQIcfh+vdPGkijGG7m83wm+DF71/kq1H+1Zsajzwm5gAiMBAaRw0pwOk36J49IaoPqyIUx5/FxGXZGANPtEX8VWiPIYm8SLg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aq6ErXcmN8E2AbgTGzzi8KpLKKaWQ7p/2oGpk4SG2Hg=; b=H4qxC5oo3Wwvw5pu+pUp8CR4Um03JJOLKmsz7Y90AUSRiO+gRmRlL0YdlCugms6Rl2sQyvPlpM/vEGIqcGJWPfyxgWXHRJcZzXpFSWNGF5rs5a6MKqa0yAEMASLE4/qcH1KPSwbVSQhzytD3YkrZ9MgeczGA2TCn9ILMJjupAXTU/6mmN+qE2hO5xvkjkofzOHCrA6p220qRguX5XLVCkkWwQNWjWG9TmNtKvYa8qHX4gJyctC5WSCgXg7DaXQ0kfSFiondXLnlezJdDvI2RcrIyYh+FDJlVvTNmdidozVxouvrwr9RkZ31JeckD6p7GM4Twf190rdWI/CjTVQvKmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aq6ErXcmN8E2AbgTGzzi8KpLKKaWQ7p/2oGpk4SG2Hg=; b=Tgez9qb+jgzQfn3RLokB3ZXRC7yMxiSG+GKmtPL3wGasM7TM/G+k/Oy4DK/TyxPzV3IGfaaPwXBps4ODM4rj3NoGb+TSb1EOh/n0gwCgp5Cea98vvc+Jb/lkc2Zd4UI0q5SQx5b0Fj+5kdIMEBKzmCCMOhtZDor5NXPq7bh5wn0yxgRWPdL2Ch2cJGe/i2csLZjQoSgZIqvwjwHhHrSMOZkSamyCTrYAkuk90orENxB+Yd2pLRuaouEts+ACsjNpyY1AknKF5avYp5YBMFsBuyHNl6PsSnK9CMVRIEmLUpHjuKuERDG/UbsDnKpauQvs2u9+i3nm0PBpW4RdU1m1Cg== Received: from DM6PR18CA0006.namprd18.prod.outlook.com (2603:10b6:5:15b::19) by MN2PR12MB4405.namprd12.prod.outlook.com (2603:10b6:208:26d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 11:19:38 +0000 Received: from DM6NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:5:15b:cafe::5a) by DM6PR18CA0006.outlook.office365.com (2603:10b6:5:15b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.27 via Frontend Transport; Wed, 13 Apr 2022 11:19:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.238) by DM6NAM11FT016.mail.protection.outlook.com (10.13.173.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 11:19:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 13 Apr 2022 11:19:37 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 13 Apr 2022 04:19:35 -0700 From: Dariusz Sosnowski To: Matan Azrad , Viacheslav Ovsiienko , Suanming Mou CC: , , Subject: [PATCH] net/mlx5: fix gtp handling in header modify action Date: Wed, 13 Apr 2022 11:18:31 +0000 Message-ID: <20220413111831.2357737-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ac09407-a902-4f00-9f8b-08da1d3f7f2b X-MS-TrafficTypeDiagnostic: MN2PR12MB4405:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UogOF1cOShc0DWWjV36QrhuUtq3xfJLwFDjO7sznEx4CxQOb47p7/Q2MhTctvwGPVA3k4wuJE6+tVWhRm/0nczQIqKc+n7YiId8AErGumM/U4c9b7QMyyvb/Lpk7C/B36szgn5rKl/snw9be39J+EGhYppMVmSebt+p+2Ts+IiT9cvJxiD8tGyNcg+qq96xKGqA+k9QABfINIgvgGHaoRB68eodzU9qLmcMRUtgMgHeh99rLRqTyrdR/z2jbJycj9JaEKqhqCvQdQOSkSqs6J5L/az+qgwRFh6Kb4PPii0EK3xHTFht3VVKihT+hi85GebvQjmHr8t0q9U0F3s5la3O2Qj5k/YCz07m6nZoryAXUpx0cPBtWXeQ3S1tNqDhK0qFKemvlyyk68RfSNYPVUx6cNfp143qr3nQDw3sd/SV/AI362gAvksusAkCj6nHs6tpi3SAgEiIZgoZTZ1wiSC4xjoxH8mRknYYGpZhiSPx/CbhQskTJoz09PfrPb8sTWNz2UEN74eahMcnpXr0k4UdI/nQEKLMkYF6b6YrEtn8HaWsqBiuirk9HwgJHJauphkJjx5sWfq31W8UwKl9zZT142idjJTVWsjMp3Ottnon+X51CXL4Rq939HgtsLX/Afv9S53wVgd/m+yZmPnpRXbWX5VLxoxvIaEtkFdZdXiWam1HCcesDmh3SSN+FSIQjE7Lp5ifAJAIag/6qBQaJNA== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(336012)(47076005)(86362001)(26005)(16526019)(2906002)(356005)(55016003)(5660300002)(8936002)(36756003)(2616005)(6286002)(6666004)(7696005)(316002)(186003)(40460700003)(36860700001)(1076003)(450100002)(4326008)(70586007)(426003)(70206006)(54906003)(110136005)(508600001)(8676002)(81166007)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 11:19:37.8807 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ac09407-a902-4f00-9f8b-08da1d3f7f2b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4405 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org GTP items were ignored during conversion of modify header actions. This caused modify TTL action to generate a wrong modify header command when tunnel and inner headers used different IP versions. This patch adds GTP item handling to modify header action conversion. Fixes: 04233f36c712 ("net/mlx5: fix layer type in header modify action") Cc: suanmingm@nvidia.com Cc: stable@dpdk.org Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 1e9bd63635..da2ddd58cd 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -162,6 +162,7 @@ flow_dv_attr_init(const struct rte_flow_item *item, union flow_dv_attr *attr, case RTE_FLOW_ITEM_TYPE_VXLAN_GPE: case RTE_FLOW_ITEM_TYPE_GENEVE: case RTE_FLOW_ITEM_TYPE_MPLS: + case RTE_FLOW_ITEM_TYPE_GTP: if (tunnel_decap) attr->attr = 0; break; -- 2.25.1