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 B76E841BAE; Thu, 2 Feb 2023 13:45:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 414F742D32; Thu, 2 Feb 2023 13:45:20 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2040.outbound.protection.outlook.com [40.107.96.40]) by mails.dpdk.org (Postfix) with ESMTP id 3583E40689 for ; Thu, 2 Feb 2023 13:45:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JCDXmxy/0IJQ3SiH4eM4XHysd53rUvyERuE3QA3vuh4VGn7oHisLX8dwgtMQWqJrkLL79wDLC97yp12PMl4e+twKHjU+LT8oMs4nfrkEHTgCiyhwTOIvTovh3hM4k/tcIDUX4EszpZaK3nXNReappUluYxbBPhglFu3+45c/E0IotjAjvWp33SAaO8wMTLsAP8SBpe0LI0sbUPgdbSALNdwnoOraY6O5Os9kXEvaU8Nx+xhXYe4K105uBZLespCKBH0H0Q5n9YAR9ClFtkOn/Hh3JhXBx+BEEPp0LqYUr3oAebuiTiXq7HoxM8hXXvE4TL1IVGQFbxp9NRCjUdAlyg== 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=fvqkD8V4F6CwCkObI5aJfQLN96KRdGRPYxmA8b7+7wY=; b=VahrM1NP6Bwg7TfRH0rc3nDWCvnw/PGB9NFtWH2hdoeJgyn98FBFL+v6xzbQZTeTMyyqstDDIpF/mea/4yYrULPAEvoe4Qc2fl5FPW4IsAhWlnRyr3ImmBoGTkszxlKHdTKCOxojs6MmVWZhsGczeZXPo95ojctrFmopM7u/Tbp+IilcGdtx14JW7oAAlH9ecaQOKG+vNy2OehYtK0TdXlafpNOKzbHmKb5hW5Arod2Ke9+nKjq19vkkrpc4Ke9mz1u5Z9cLzDmkWSlixiIWUUR76SnB2buMGReXN78CKCsGrFYf4XfrY1VP4ZuIgUQ+OS5gvEZnhJUqfVwAOKtYXg== 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=fvqkD8V4F6CwCkObI5aJfQLN96KRdGRPYxmA8b7+7wY=; b=Tx4i03gSUa+fftWwYDu+gG/3vClYQJ3mnSLvF0V+fkKMLl3YB2pbTOgGykXw90pXu7gG/xB1BRRn25DcF4KOGlgu1eTCxLazdoczqauZPYPHHJ3BhNkpbSUzf1J5c95+4K9UMsSDOk2uqI4iLuKKaYm47HboaM9LtLJLGS8KRHU= Received: from MW4P222CA0017.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::22) by DS0PR12MB7728.namprd12.prod.outlook.com (2603:10b6:8:130::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27; Thu, 2 Feb 2023 12:45:17 +0000 Received: from CO1NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::b6) by MW4P222CA0017.outlook.office365.com (2603:10b6:303:114::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27 via Frontend Transport; Thu, 2 Feb 2023 12:45:17 +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 CO1NAM11FT052.mail.protection.outlook.com (10.13.174.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6064.27 via Frontend Transport; Thu, 2 Feb 2023 12:45:16 +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, 2 Feb 2023 06:45:16 -0600 From: Ferruh Yigit To: Thomas Monjalon CC: David Marchand , Subject: [PATCH v6 0/8] start cleanup of rte_flow_item_* Date: Thu, 2 Feb 2023 12:44:52 +0000 Message-ID: <20230202124500.2578857-1-ferruh.yigit@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025214410.715864-1-thomas@monjalon.net> References: <20221025214410.715864-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT052:EE_|DS0PR12MB7728:EE_ X-MS-Office365-Filtering-Correlation-Id: e866b29b-bd61-4791-43d6-08db051b560e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rgxdvuHa7MA6nGvD8MdtTfiZR+2Sq539v+zfupOkcYWMQYqLGl9S4qmVxeqqfF9VLhnXhBwcaOVlPqAHWNupPhK/IRm71ll/L3J7CziqsXSA5HRzYewiyVtrlexCs9DuQJba1MSEDnd1pqVDhRbuMNUS90pqld+ECyLHcC0fRRH+qd3371gvSfBL0OD9fPfObmlW9E1/l8eh6dbWXd3pW6r89/C2Oz8YihzsHb96dw8bxOFveYQa7HQWiMx36DNKLNcaE3n/CkAdwYFfxmQOFV/dXSHkPwyoOi5er/w8/Wn+NNCKqHYhJpw2p/B2WHCV/n12O7PXkcP2YEE9f0UQOXvtVbaY/POTcxBbL0i1GBuObX68vWiP6c7WMCau/BcsdeygtA5i8NrKkhkD526ac+HA4FbwB7HbvgalITP+JZek686HEemvGrJc512rHs0mYHVPfXGuvpoIW9dsicfle5zNEA6fUGCw2HoAtgz2iXaXMPtjif+SJLoThBpq2VdYhNMo2LeD/5JcBIiHMAjTDlYQsMIMK6cNK1TZT3jZ8ZGmSN46fKE2zcPOo2Nt1FpInxC2kKYssk1Pck8AWQWlOI966w9tnTfDk0I4EY75TlLmyHTieoQnIBwW3XPAAqa326onaBVWFAQ1dO2WUY5um3Q+PVPCDY7VN8xLxq9iATfod2UkrzfMbMgwTIfm04c9QjCvfaX64gYKU+Jm8tsB9+pup4dGHWddWU9K50kg9Mg= 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)(136003)(376002)(346002)(396003)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(54906003)(82310400005)(81166007)(4326008)(356005)(8676002)(41300700001)(47076005)(40480700001)(426003)(86362001)(6916009)(82740400003)(36756003)(83380400001)(316002)(70206006)(70586007)(5660300002)(36860700001)(1076003)(6666004)(478600001)(44832011)(40460700003)(8936002)(336012)(2616005)(26005)(186003)(16526019)(7696005)(2906002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2023 12:45:16.7682 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e866b29b-bd61-4791-43d6-08db051b560e 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: CO1NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7728 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. v6: * Fix "struct rte_arp_hdr" field doxygen comment v5: * Fix more RHEL7 build error 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 | 48 +++--- 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, 988 insertions(+), 953 deletions(-) -- 2.34.1