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 D8D3C4415D; Wed, 5 Jun 2024 12:22:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 902AF40E2D; Wed, 5 Jun 2024 12:22:17 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2059.outbound.protection.outlook.com [40.107.220.59]) by mails.dpdk.org (Postfix) with ESMTP id 0C45F40E25 for ; Wed, 5 Jun 2024 12:22:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Va9Z6s0G3PXUmhdxnpSFyHfdm40hwhLltAZ8fBeIhOCrbGtlyOTbOULr7fnXpmVkELa9rpHK+UY9Hj59j7hl/BN8Hs92+ohbBVkwJ3yOtcJj0QBrMhNQGom19W8Siz+OzgIo6naIsraLE9NkMPb3B6r8GgSuyfUOITBC4YGT5qM8vteGyTVaCkLoYc0L/oefUNlA/uAWuPs1O9+938EO+TAdttd+lLKCnk3m98+doXjcsINrGwSdm0EoLhvwuDjUtMfkEPyjR7gooBe0K/aU/mN27zy3jq1pFsC21Aj4wp+q4cFi8Wmw5/pdtkIHbIKD38ilPElRoc4YOlqGtxfW9Q== 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=mRv9Z2hm1Q93SSEUB0Fjo7EZn3Wu2mMGAzWBR4m+Vik=; b=jkzDDvDVgNuVzSyBN+lC8IZrKjDYp3idaMoBxs/QcEzKVocmdkfzxIoUN8ZyFTrQrvpCB5bZl10Z2/3Wpeh4/eN64LknPxCJ6W0bEcXCR/eKjsIeeBM5I0XPCJyui+Qv1YSiJz4yaKJEGZIXXqJpJWuybFNieIG6SUYEXthzCQOQY/53TxFc4fU0F/DGWjxkmyuJFMqndV0C3W0MjxA1aw3lv69ZjXwA+WHo6g4i4/fdUbrcKu4k7d17rLnWen60u8JGvQHQzhrE4jBmfquxD2/0KTOoYWrDMCEkOxZiEspV58ifMBNPzHVwkcQFnKujPllrd9maBwPLHd74olO7JQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 (0) 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=mRv9Z2hm1Q93SSEUB0Fjo7EZn3Wu2mMGAzWBR4m+Vik=; b=ALPHdtvafTkiQOaj3aVwCqxUaWQYRwJQRuweXpg8QRxJhyi+uO9zPXZT7pg3pCHZoA/xD/0OGR85nFHXTo3oF8q9ijWKrhD+0BE1pO1h3DwNs7wZE/a+FAmIOL+1bayqwRAu4k2ZUNF5T+jCqe56FwfZkXYsPnZYB6EbLe+ychG0p6aqIGhQGFUmMatn4TIR50qaP8ryVnCInA+gtQc8/IX5lWUj4DLQcWyKd69NiWlLxK/cRzNqC7B+fxePJjRmTH4NeLwCw8NxljsoWQOI0gXGi9iuJolWGeD6RtsxsDovJBuRB1WGzmiSBFsGK27JvgHuI5WX0ojquWDEJmIX9A== Received: from BN9PR03CA0796.namprd03.prod.outlook.com (2603:10b6:408:13f::21) by DM4PR12MB6350.namprd12.prod.outlook.com (2603:10b6:8:a3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Wed, 5 Jun 2024 10:22:13 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:13f:cafe::d3) by BN9PR03CA0796.outlook.office365.com (2603:10b6:408:13f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31 via Frontend Transport; Wed, 5 Jun 2024 10:22:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 10:22:12 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 5 Jun 2024 03:22:01 -0700 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.1544.4; Wed, 5 Jun 2024 03:21:57 -0700 From: Rongwei Liu To: , , , , , CC: Dariusz Sosnowski , Aman Singh , Yuying Zhang , "Ferruh Yigit" , Andrew Rybchenko Subject: [PATCH v6 3/4] ethdev: add VXLAN last reserved field Date: Wed, 5 Jun 2024 13:21:35 +0300 Message-ID: <20240605102136.117614-4-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240605102136.117614-1-rongweil@nvidia.com> References: <6203165.YiXZdWvhHV@thomas> <20240605102136.117614-1-rongweil@nvidia.com> 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-TrafficTypeDiagnostic: BL02EPF00021F68:EE_|DM4PR12MB6350:EE_ X-MS-Office365-Filtering-Correlation-Id: cd959b41-34b9-4894-d2b7-08dc85495db4 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|82310400017|36860700004|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Pen006s901NAY5x35oRDx8dvJaY+OLgszEa0C/q3lwUj6WzgNaLWA1bYa+NE?= =?us-ascii?Q?4AeobOhFccHxkbnKOfVFKQB4o7BnWymICF6b0rMcSoWfcmOcUALVJFI//0ZZ?= =?us-ascii?Q?7amM9LQcFGa19RFWcmdL/IXZxpJ+VhRWhE6w9lXHK7MRrPoCfHmhVhwoOPt9?= =?us-ascii?Q?X9ycegTAUmT0TdlsVo3LVnHxWRrlkw7cycQ6WwbaDUh0TAIkm2T6MHTsCqPs?= =?us-ascii?Q?m24nUyVfZYW0mYlh8jKJg6LR7evPuBpYwgX9QkAUIsfmRBrm/auGjXl6TurS?= =?us-ascii?Q?QydbP1XcRBwSOFt78rJBxpfDPZyMOGkR+vi1nALuBkUiSwxreIllUPz7dMcF?= =?us-ascii?Q?UkGLVv3UjN2S/qS0N8sknT8dY/bloEOZPZUTyks1h1b0VJ+CRS2UgMRI86Ed?= =?us-ascii?Q?uhS3UhntdtwJ+3k6v6U9SKhLt3rzBpXc5Z0ykEHYYwGLCsc6j3skK8TRL28Z?= =?us-ascii?Q?CrPTJj3h6nkkra67Enbe1Q1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ascii?Q?OoJTyWiRVKK9gWZ9Pfv+1scc+SAdjEduIh+8Q5hV0BjXqc301w=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(82310400017)(36860700004)(376005)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:22:12.8976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd959b41-34b9-4894-d2b7-08dc85495db4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6350 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 Add VXLAN last reserved byte in rte flow packet field. Add 'vxlan_last_rsvd' as the modification command string. Signed-off-by: Rongwei Liu Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 1 + lib/ethdev/rte_flow.h | 1 + 2 files changed, 2 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 775ce20fc4..f3d6a2cfd7 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -1006,6 +1006,7 @@ static const char *const flow_field_ids[] = { "ipv6_flow_label", "ipv6_traffic_class", "esp_spi", "esp_seq_num", "esp_proto", "random", + "vxlan_last_rsvd", NULL }; diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 6e8ab1d4c7..74cf2e0f59 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2428,6 +2428,7 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_ESP_SEQ_NUM, /**< ESP Sequence Number. */ RTE_FLOW_FIELD_ESP_PROTO, /**< ESP next protocol value. */ RTE_FLOW_FIELD_RANDOM, /**< Random value. */ + RTE_FLOW_FIELD_VXLAN_LAST_RSVD, /**< VXLAN last reserved byte. */ }; /** -- 2.27.0