From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F668A04B0; Sun, 18 Oct 2020 14:15:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E3041D025; Sun, 18 Oct 2020 14:15:49 +0200 (CEST) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by dpdk.org (Postfix) with ESMTP id 93D4ED023 for ; Sun, 18 Oct 2020 14:15:48 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 18 Oct 2020 05:15:01 -0700 Received: from nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 18 Oct 2020 12:15:40 +0000 From: Gregory Etelson To: CC: , , , , , , Ori Kam , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Date: Sun, 18 Oct 2020 15:15:23 +0300 Message-ID: <20201018121523.4408-1-getelson@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200625160348.26220-1-getelson@mellanox.com> References: <20200625160348.26220-1-getelson@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603023301; bh=U8rui/rn+WzoONTaEeB3Gb9nOKoIY1E1sPqzkQfVWsI=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:Content-Type: X-Originating-IP:X-ClientProxiedBy; b=CGI3fIasRGRalv9GhNBMGxH6Mwbe09TXur24xFscwFasSXoiT3stiUsJ2pQQeSui3 J7ePN6cP2tF1a27vU+ND0qdgQF8/yDTeGxIyXzpvKwmiiXuY6v7l5vK/sjtWpcmR/h Aj3aUJ4PfbV23+QDgMnlqiNomHR6bsZUhfqgNmXHOy9hq//pXjHpAkZYDnLZxMtnBB qjVg97KJOq6DUth06+ymh7R/LJ3yJJl9R470WfMvbey39QOGYSf3wR5E2odsx8pdW9 NfT/VQ16dWPCiEUAEmj3g8SvyeTW21vCkt8Q/p9QOIiMmB+i88BAXAHH08dze9MwLT rL3odtKtxkwzA== Subject: [dpdk-dev] [PATCH] ethdev: rename tunnel offload callbacks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" rename new rte_flow ops callbacks to emphasize relation to tunnel offload API. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- lib/librte_ethdev/rte_flow.c | 13 +++++++------ lib/librte_ethdev/rte_flow_driver.h | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c index 380c5cae2c..d3e5cbc194 100644 --- a/lib/librte_ethdev/rte_flow.c +++ b/lib/librte_ethdev/rte_flow.c @@ -1223,10 +1223,11 @@ rte_flow_tunnel_action_decap_release(uint16_t port_= id, =20 if (unlikely(!ops)) return -rte_errno; - if (likely(!!ops->action_release)) { + if (likely(!!ops->tunnel_action_decap_release)) { return flow_err(port_id, - ops->action_release(dev, actions, - num_of_actions, error), + ops->tunnel_action_decap_release(dev, actions, + num_of_actions, + error), error); } return rte_flow_error_set(error, ENOTSUP, @@ -1245,10 +1246,10 @@ rte_flow_tunnel_item_release(uint16_t port_id, =20 if (unlikely(!ops)) return -rte_errno; - if (likely(!!ops->item_release)) { + if (likely(!!ops->tunnel_item_release)) { return flow_err(port_id, - ops->item_release(dev, items, - num_of_items, error), + ops->tunnel_item_release(dev, items, + num_of_items, error), error); } return rte_flow_error_set(error, ENOTSUP, diff --git a/lib/librte_ethdev/rte_flow_driver.h b/lib/librte_ethdev/rte_fl= ow_driver.h index bd5ffc0bb1..f3d72827cc 100644 --- a/lib/librte_ethdev/rte_flow_driver.h +++ b/lib/librte_ethdev/rte_flow_driver.h @@ -152,13 +152,13 @@ struct rte_flow_ops { struct rte_flow_restore_info *info, struct rte_flow_error *err); /** See rte_flow_action_tunnel_decap_release() */ - int (*action_release) + int (*tunnel_action_decap_release) (struct rte_eth_dev *dev, struct rte_flow_action *pmd_actions, uint32_t num_of_actions, struct rte_flow_error *err); /** See rte_flow_item_release() */ - int (*item_release) + int (*tunnel_item_release) (struct rte_eth_dev *dev, struct rte_flow_item *pmd_items, uint32_t num_of_items, --=20 2.28.0