From patchwork Tue Oct 25 21:44:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 119117 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C8FEA0544; Tue, 25 Oct 2022 23:44:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D43A641133; Tue, 25 Oct 2022 23:44:33 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id BC20B410D2 for ; Tue, 25 Oct 2022 23:44:32 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0D8B15C010E; Tue, 25 Oct 2022 17:44:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 25 Oct 2022 17:44:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1666734272; x=1666820672; bh=qVz8tSmS1UnJPBPn5TDYtQS4E qAPLcMJLm34doYKZps=; b=sKp7UYirwJb3UaR6WgbMzc2R9ecL77gxVgzzBV3kb AhcoHv6RWA3GBSZG57VIiDLDjh/w8kridp74dawQVpoxck4uhDjKMVmyHePbNEnH IT2O5MRYrcYXzIOr9l236rIrvXyySMM78S5IWLhvnoW59IeohfHO4Vb2LAoMREII vNmUgLzrER+4nfySWhJQwCUR6y4m2GnMwe2pGD1Sal6Q9t0bQhyWBBwAMrwgktno +r2BGHo5D51WlAXqIObsgtGm5CvtaPaV3AGK38Q62gcP0M5mcN7o1x+Nut5OFYra XiucNaos2uuOlmIBbSarmxVUkvY3JvhjH/faSQxEM+w6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1666734272; x=1666820672; bh=qVz8tSmS1UnJPBPn5TDYtQS4EqAPLcMJLm3 4doYKZps=; b=qydOFW4pu5diiDF2xP66hUQr+IYjiF7NkoE4zCNp4etvrMg6s2A ZtYJWcQ8kj7GnSBMwGc8VB56deB43l90M6kKa+FAu/7s6tX0LF6q+h+UT8Rz3gde omfDQ4YD1rIf0OFr1RKi+XwyKJyk+N78P79lIMRijJMx+6LK6NLOsl+KHYc7SNxw XeJvcEgS7W6wYW5JrigT3BPbg5uFRoFVgIL/OC64q4REudnSCFGwvW7Q7zbkAB8+ cYkJq8NFdMZJKBlNVxs99FfarqlkJh61q0E+rIZeyqkPx0c4vAuyxmu/CgHshv8c 2fKcTKoYh0V5s+q+5Cc7K+YukdQ1bzWD7CQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtddugddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekredtre dttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhho nhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpeevveefveeiiefhtedukeegke elieegffeukeevudetueffieduveetiedukeefleenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvg ht X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Oct 2022 17:44:30 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru Subject: [PATCH 0/8] start cleanup of rte_flow_item_* Date: Tue, 25 Oct 2022 23:44:02 +0200 Message-Id: <20221025214410.715864-1-thomas@monjalon.net> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 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. 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 | 172 ++++++++++---------- doc/guides/prog_guide/rte_flow.rst | 57 ++----- doc/guides/rel_notes/deprecation.rst | 34 +++- 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/mlx5_flow.c | 62 ++++---- drivers/net/mlx5/mlx5_flow_dv.c | 194 ++++++++++++----------- drivers/net/mlx5/mlx5_flow_verbs.c | 46 +++--- drivers/net/mlx5/mlx5_trigger.c | 28 ++-- drivers/net/mvpp2/mrvl_flow.c | 28 ++-- 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 | 117 +++++++++----- lib/net/rte_arp.h | 28 ++-- lib/net/rte_higig.h | 6 +- lib/net/rte_mpls.h | 2 +- lib/net/rte_vxlan.h | 35 +++- 43 files changed, 926 insertions(+), 883 deletions(-)