ethdev: rename tunnel flow offload callbacks
authorGregory Etelson <getelson@nvidia.com>
Sun, 18 Oct 2020 12:15:23 +0000 (15:15 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Oct 2020 21:28:22 +0000 (23:28 +0200)
Rename new rte_flow ops callbacks to emphasize relation to tunnel
offload API.

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
lib/librte_ethdev/rte_flow.c
lib/librte_ethdev/rte_flow_driver.h

index 380c5ca..d3e5cbc 100644 (file)
@@ -1223,10 +1223,11 @@ rte_flow_tunnel_action_decap_release(uint16_t port_id,
 
        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,
 
        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,
index bd5ffc0..f3d7282 100644 (file)
@@ -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,