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 62893A0C4A; Tue, 13 Jul 2021 12:50:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28331410DF; Tue, 13 Jul 2021 12:50:45 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2068.outbound.protection.outlook.com [40.107.223.68]) by mails.dpdk.org (Postfix) with ESMTP id 0A09E40687 for ; Tue, 13 Jul 2021 12:50:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SEN++A+BVNou5hWuFTibtwwQj8ZlaQLVc76Dfe/JgxFR4zRXM7TQK/2n81c4hP3C6GtbfkCzvcp9DSVGZSofSscmy4sB00r+qDyzTm1T4mUAf8nXyU+bhaX76bHEm171jkr0sZ2kwQPAOMgn4luKLr9VMBrzqmaAUHoQjKR/32a5nBsy7lowt337C6hcqVSOus/kF/OVs8rfjLwXzhIR1OT9yadKqx6fTDW6QQXadfG6Dr0wmK6fgo+1z5ayTW7smD51PL/gtxfPHbQNry5oBGEqt6CsdqlXpZyeTtroSCnZF4xF9SjiSQ7KnrtZBT/4/O0xaEUfz8BzplIhkRrUIA== 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=MVREg9S/v+z22ix+qXQFhJQAKVL0Nnm4GNUN1sbhOIc=; b=QYjgaKWxwa9FVYmJGZUAwagJ/RTf+C2TdY9cNYcke6P2Kd4UFVAPpJz/w9FVwU3FsJCsrlcMpsOMdHNufkFSDRbYasqsrg5LAM407zC+tKNOulHwz3hSvsf5lz6a6zxF3jg/Jot3I3y70YT5B+NNZnkAIJny8POjAMuf23Zq5ZfFQkEQR8zJvSM5DHq1EjYB2bEjZStDX92XJfN1Rp/Pz5exk8uuIso4+hdgIQ35P9DFiSYe3RCBgcXxj4ioDpMyaitnyNKoghxqzj6q5jPC71nfj61w+9mKdjij08/3EMn9iq79s0RctvWASNojsOZnlecSknIEqDRluPOTddi+UA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=MVREg9S/v+z22ix+qXQFhJQAKVL0Nnm4GNUN1sbhOIc=; b=UDdgqoJ66YOidVzksRqwtA5DgVOmzxkcydX0C2U5qGw/4qVpikGxtxUpgteTfM/izdHi2AvYtf15mjiRE6OhLhIOeq23TdBZ4Npx9toFRTezwR7bkrNPHT2gikQPkoPiYFS/Lmqr2ZOIy5CilcIoNzvx0e6Rkh7QrghmXydK552ucDCMJl1VF/DJxpPDV5/qRPIb1O41Z68DAWf1b3TD9TAlJryi7fCxyHxVMbsItsMLV/8CaLZjKFKtBWp3NrLPy688zN8utMw3qjseg7IXRQVuuoSiy1GN4R4cUWRVOJJ5HxeomcZyla/4QzTngW82WXjPHJsfhMinyz6Fv0/zBQ== Received: from DM6PR03CA0021.namprd03.prod.outlook.com (2603:10b6:5:40::34) by MN2PR12MB3423.namprd12.prod.outlook.com (2603:10b6:208:cb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Tue, 13 Jul 2021 10:50:39 +0000 Received: from DM6NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:5:40:cafe::67) by DM6PR03CA0021.outlook.office365.com (2603:10b6:5:40::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 10:50:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT012.mail.protection.outlook.com (10.13.173.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 10:50:39 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Jul 2021 10:50:37 +0000 From: Rongwei Liu To: , , , CC: , Date: Tue, 13 Jul 2021 13:50:22 +0300 Message-ID: <20210713105024.69340-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 404d2d2d-4e7e-4362-9a94-08d945ec0db9 X-MS-TrafficTypeDiagnostic: MN2PR12MB3423: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SuOGTYGqKO3nqY1QonHlBrAYyzO5xFQci52PTYR6MLWdGCzI1pKpcuAllvr6bbhBwFUa4IyiNXYCJkyGYUBfJCc6Tp9DTtLGz82Apbf7dxfe+BC1BomdagCqfmNwq1ubXMiq8H2f+HZXKHWAUKjQ61SRMS1aqHUrRC1xCxGx5wo5Y+jK3vXSVlgkNXSP+mBAOEZ/E2uW03y3CqacxoORRZs3upXIR2NcT/Gy4sYE9YBxqSY8ylPHQCrrlsFbFgVKppQbO88Q9cixxHqwpsBTkrtA0rZZamSuwDuUdQPdyA5060d8NZIzVnLYidqoBALL7ASMHZyQbaqKh1kr+F19vNP1ws+4ObQqmvdHYOGgnMU51xKOv++Qy6Ds16IxBaFNCcpJ+S7tLg8su0rZJSfPUwpfsDsaIkgR9khiaZcEBo9+2hwn4kTE4mH718plClAWUhKa4uUfl+aycttTjWLg1I5t5wSZI///RYbrQNigsrwvmsHy0K68oc+g2sqAtiGiWtNfzfkwg6GZQ1S1kAo7DuldsV0gGVUZ64wnXCjdw1uWha1mfjGjLCga48tQaaeT0gyCOOUypRuvbkr3MqlxHEOX/kg9PD49/PWjMDzzxneeIWKDroCOU555DvJiR6LsOb1A7ZflRYc9EXrtse3P+jKycMDa8EClddyC5ZFDdrsIGMUYKBNYmVYisCSw3+el0cHxFumZTZmcUDTWQtVskP1buk2FDkESUnKK6yqYLy0= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(39860400002)(396003)(136003)(346002)(36840700001)(46966006)(2906002)(107886003)(4326008)(82310400003)(8936002)(34020700004)(83380400001)(82740400003)(7636003)(6666004)(1076003)(36906005)(110136005)(356005)(316002)(54906003)(7696005)(55016002)(6286002)(8676002)(5660300002)(336012)(86362001)(70586007)(2616005)(186003)(16526019)(36756003)(426003)(478600001)(70206006)(26005)(47076005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2021 10:50:39.3362 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 404d2d2d-4e7e-4362-9a94-08d945ec0db9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3423 Subject: [dpdk-dev] [PATCH v6 0/2] support VXLAN header the last 8-bits matching 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 Sender: "dev" This update adds support for VXLAN the last 8-bits reserved field matching when creating sw steering rules. Add a new testpmd pattern field 'last_rsvd' that supports the last 8-bits matching of VXLAN header. Rongwei Liu (2): net/mlx5: support matching on the reserved field of VXLAN app/testpmd: support VXLAN header last 8-bits matching app/test-pmd/cmdline_flow.c | 9 ++ app/test-pmd/util.c | 5 +- doc/guides/nics/mlx5.rst | 11 +- doc/guides/rel_notes/release_21_08.rst | 6 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 3 + drivers/common/mlx5/mlx5_devx_cmds.h | 6 + drivers/common/mlx5/mlx5_prm.h | 41 ++++- drivers/net/mlx5/linux/mlx5_os.c | 77 ++++++++++ drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c | 26 +++- drivers/net/mlx5/mlx5_flow.h | 4 +- drivers/net/mlx5/mlx5_flow_dv.c | 160 ++++++++++++++------ drivers/net/mlx5/mlx5_flow_verbs.c | 3 +- drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 6 +- 15 files changed, 293 insertions(+), 67 deletions(-) -- 2.27.0