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 319A442492; Thu, 26 Jan 2023 14:18:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC98F40223; Thu, 26 Jan 2023 14:18:16 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 4C757400D7 for ; Thu, 26 Jan 2023 14:18:15 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CV9APd5kXtoxQ3xt2HnCjpFaPHImKdHmztOPAjxhuigv0bFFU665pyxsrChQCdko4NrjpJdu8eCRLJL5MBGuYbXiKWy7oSMcOduYfYuANI2Tid5pTAyyj973OJZab1KRUkDigJ1Z1mBFYvV9doFeGhI6fGqhx8PeIxDYMwDhRXZ6fFS20ST7aHcxXI8ay7bw8qA7DJA8H+DHKg/SZMGy0Jbq1E+tKqdHto3Iff/4mJ2372RCoQe0YcfH1e1suUYKWtyH1wvrBwRAMs/Oh0M/YsSz191PsFBe/dTyJ+IubLFckfJ4oxsK8PYH8FTIlKlGBR+jTdyicM8rvue1s7p9kw== 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=dVZazMo2e+uw03ge1zrOuHNq2Yb1X+buLj2ltm0If4k=; b=hdJG2toSU6p31H+AOTjs8nhZKOYVY2nKYNh9Tzi/8YzVk+RKlp7YCuVmI3olgoQz2tPQrhjDv3lbEMkUR9s22GCd4GYQsBSgW63RDJai8cWSWzcfdjspx3ZRKw+3w5dUTmZ0RyO2LqUlNojgQZzxEKPeN82szALvA1YEIJ5hwHcyJNc+dC9r0Y3e7XieHbeEiOCw3KEluUIKcjJX/qim5R4ps7lexfsG/6n2+cEd2YLxqQS4EnZVVnQ6tNidgyauMCvUpfaiXzAP1OE2T7x3XoXngV/9rnH+QxQGUhP97oYCLRrboJJw9KDW7BWOT7sMAI2P6H33pysQOALoGGEHyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=monjalon.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dVZazMo2e+uw03ge1zrOuHNq2Yb1X+buLj2ltm0If4k=; b=BJ7MJ0vpKe5M5XaydBt+Nukng0V+P0BRLBhUmmw+S7MhuSVsPsQvZkc3vNVaruxmoZBFxvqeg30Yuoc6iExHIfpyZQvtgO5zsLygDh+2me1zrtSuhgg5M7xt4YBoGle5JSZXvZZ98+2O2tL2EhYgLavPl488EXq8fojpwLG2AJk= Received: from BN0PR04CA0046.namprd04.prod.outlook.com (2603:10b6:408:e8::21) by PH7PR12MB7966.namprd12.prod.outlook.com (2603:10b6:510:274::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Thu, 26 Jan 2023 13:18:13 +0000 Received: from BN8NAM11FT095.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e8:cafe::5f) by BN0PR04CA0046.outlook.office365.com (2603:10b6:408:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Thu, 26 Jan 2023 13:18:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT095.mail.protection.outlook.com (10.13.176.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6023.16 via Frontend Transport; Thu, 26 Jan 2023 13:18:12 +0000 Received: from telcodpdk.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 26 Jan 2023 07:18:11 -0600 From: Ferruh Yigit To: Thomas Monjalon CC: David Marchand , Subject: [PATCH v4 0/8] start cleanup of rte_flow_item_* Date: Thu, 26 Jan 2023 13:17:51 +0000 Message-ID: <20230126131759.3887632-1-ferruh.yigit@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221025214410.715864-1-thomas@monjalon.net> References: <20221025214410.715864-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT095:EE_|PH7PR12MB7966:EE_ X-MS-Office365-Filtering-Correlation-Id: d928cf7a-58fa-4d2d-710a-08daff9fc6c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6xXvDoarEqMqzS3cuO7SbpgMVTqbNnv/dflHxE9XR84wuNYwp8E2G7gAz3m8ymwjpbqXSboRnh/qVP75K2SH/JxgFfLxi/w6CRKfWJ8D5Q6A8CO1aUkuxhPI1JsgJRvA4mKLYm/njQ86AKnMb9OETqptfjWOK/xAM5S7wNxrkhDceDSp8B0oSRDGHnZRKhNBuBBMMLInZfjPZGneMnJc9LPC9C4LwtWC2OUeb9VnV+dLmpsiu6ibg1ejfSpPQrNRuj6EOaWrSrjppv0YFikW3gR/1ra2LJD78i8l2X7a8qcpYCrCZHInYYufsGl7jhT2fMWQBDZHWP7lJYRZ/Z+4X6NUtB+tXUzKGa2wfWBg9cxw57fbhcv+VTlhVaIHLduqPBp6Cg99XbN1yZMBcPlFVjs1yF8bDqyQhpvykXi2OsueQASQuQDXOTHrREXkCELiPVrhsmV5Ba82FGmh7Sm9sqDwcIZVuBbKXghrPYXEGhpPzHtsJhaobsllxzmiBJkZHoA2r3igsVkeTnv6VewxO1E5ELsjcLwrAk0HnqLZbXJBTuoCBWEPXVY41q16mZVXeav2hPBzdsAmARwEwSuKKvkEvDTV/k+MPmTZqJ2jtX3JC9QeFGZslPnoS7YR162SoQxthl00MqPhkcAFll7z8cUXpC+Py/nhAzudEWbGrM6A3orBBhgTTjIDWrluxQVEZ3ekEtZaAbCWr6QdyPFWZrffRRdxOxc83NA/LgFw+K0= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(396003)(39860400002)(136003)(346002)(376002)(451199018)(36840700001)(40470700004)(46966006)(81166007)(356005)(82740400003)(40460700003)(40480700001)(36756003)(8676002)(478600001)(336012)(54906003)(70586007)(70206006)(316002)(6916009)(426003)(2616005)(47076005)(41300700001)(4326008)(7696005)(82310400005)(86362001)(2906002)(1076003)(186003)(6666004)(83380400001)(36860700001)(44832011)(5660300002)(26005)(8936002)(16526019)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2023 13:18:12.5523 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d928cf7a-58fa-4d2d-710a-08daff9fc6c4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT095.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7966 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 There was a plan to have structures from lib/net/ at the beginning of corresponding flow item structures. Unfortunately this plan has not been followed up so far. This series is a step to make the most used items, compliant with the inheritance design explained above. The old API is kept in anonymous union for compatibility, but the code in drivers and apps is updated to use the new API. v4: * Fix build error for RHEL7 (gcc 4.8.5) caused by nested struct initialization. v3: * Updated Higig2 protocol flow item assignment taking into account endianness annotations. v2: (by Ferruh) * Rebased on latest next-net for v23.03 * 'struct rte_gre_hdr' endianness annotation added to protocol field * more driver code updated for rte_flow_item_eth & rte_flow_item_vlan * 'struct rte_gre_hdr' updated to have a combined "rte_be16_t c_rsvd0_ver" field and updated drivers accordingly * more driver code updated for rte_flow_item_gre * more driver code updated for rte_flow_item_gtp Cc: David Marchand Thomas Monjalon (8): ethdev: use Ethernet protocol struct for flow matching net: add smaller fields for VXLAN ethdev: use VXLAN protocol struct for flow matching ethdev: use GRE protocol struct for flow matching ethdev: use GTP protocol struct for flow matching ethdev: use ARP protocol struct for flow matching doc: fix description of L2TPV2 flow item net: mark all big endian types app/test-flow-perf/actions_gen.c | 2 +- app/test-flow-perf/items_gen.c | 24 +-- app/test-pmd/cmdline_flow.c | 180 +++++++++++----------- doc/guides/prog_guide/rte_flow.rst | 57 ++----- doc/guides/rel_notes/deprecation.rst | 6 +- drivers/net/bnxt/bnxt_flow.c | 54 +++---- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 112 +++++++------- drivers/net/bonding/rte_eth_bond_pmd.c | 12 +- drivers/net/cxgbe/cxgbe_flow.c | 44 +++--- drivers/net/dpaa2/dpaa2_flow.c | 60 ++++---- drivers/net/dpaa2/dpaa2_mux.c | 2 +- drivers/net/e1000/igb_flow.c | 14 +- drivers/net/enic/enic_flow.c | 24 +-- drivers/net/enic/enic_fm_flow.c | 16 +- drivers/net/hinic/hinic_pmd_flow.c | 14 +- drivers/net/hns3/hns3_flow.c | 40 ++--- drivers/net/i40e/i40e_fdir.c | 14 +- drivers/net/i40e/i40e_flow.c | 124 +++++++-------- drivers/net/i40e/i40e_hash.c | 4 +- drivers/net/iavf/iavf_fdir.c | 18 +-- drivers/net/iavf/iavf_fsub.c | 10 +- drivers/net/iavf/iavf_ipsec_crypto.c | 4 +- drivers/net/ice/ice_acl_filter.c | 20 +-- drivers/net/ice/ice_fdir_filter.c | 24 +-- drivers/net/ice/ice_switch_filter.c | 64 ++++---- drivers/net/igc/igc_flow.c | 8 +- drivers/net/ipn3ke/ipn3ke_flow.c | 12 +- drivers/net/ixgbe/ixgbe_flow.c | 58 +++---- drivers/net/mlx4/mlx4_flow.c | 38 ++--- drivers/net/mlx5/hws/mlx5dr_definer.c | 48 +++--- drivers/net/mlx5/mlx5_flow.c | 62 ++++---- drivers/net/mlx5/mlx5_flow_dv.c | 184 ++++++++++++----------- drivers/net/mlx5/mlx5_flow_hw.c | 80 +++++----- drivers/net/mlx5/mlx5_flow_verbs.c | 46 +++--- drivers/net/mlx5/mlx5_trigger.c | 28 ++-- drivers/net/mvpp2/mrvl_flow.c | 28 ++-- drivers/net/nfp/nfp_flow.c | 21 +-- drivers/net/sfc/sfc_flow.c | 52 +++---- drivers/net/sfc/sfc_mae.c | 46 +++--- drivers/net/tap/tap_flow.c | 58 +++---- drivers/net/txgbe/txgbe_flow.c | 28 ++-- lib/ethdev/rte_flow.h | 121 ++++++++++----- lib/net/rte_arp.h | 28 ++-- lib/net/rte_gre.h | 7 +- lib/net/rte_higig.h | 6 +- lib/net/rte_mpls.h | 2 +- lib/net/rte_vxlan.h | 35 ++++- 47 files changed, 987 insertions(+), 952 deletions(-) -- 2.25.1