]> git.droids-corp.org - dpdk.git/commitdiff
net/mlx5: fix translate vport function name
authorOri Kam <orika@mellanox.com>
Thu, 18 Apr 2019 13:15:59 +0000 (13:15 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
Modify the translate vport function to match other translate items
naming conventions.

Fixes: 0fe3f18f78d8 ("net/mlx5: add source vport match to the ingress rules")
Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c

index c6235b04b8779ddb88665a54b7f8c6802ec1641a..0e7d67bc6abd1ef54406e3d0531561b9a8d536dc 100644 (file)
@@ -3086,8 +3086,8 @@ flow_dv_matcher_register(struct rte_eth_dev *dev,
  *   Mask
  */
 static void
-flow_dv_translate_source_vport(void *matcher, void *key,
-                             int16_t port, uint16_t mask)
+flow_dv_translate_item_source_vport(void *matcher, void *key,
+                                   int16_t port, uint16_t mask)
 {
        void *misc_m = MLX5_ADDR_OF(fte_match_param, matcher, misc_parameters);
        void *misc_v = MLX5_ADDR_OF(fte_match_param, key, misc_parameters);
@@ -3495,10 +3495,10 @@ cnt_err:
                 * Add matching on source vport index only
                 * for ingress rules in E-Switch configurations.
                 */
-               flow_dv_translate_source_vport(matcher.mask.buf,
-                                              dev_flow->dv.value.buf,
-                                              priv->vport_id,
-                                              0xffff);
+               flow_dv_translate_item_source_vport(matcher.mask.buf,
+                                                   dev_flow->dv.value.buf,
+                                                   priv->vport_id,
+                                                   0xffff);
        }
        for (; items->type != RTE_FLOW_ITEM_TYPE_END; items++) {
                int tunnel = !!(item_flags & MLX5_FLOW_LAYER_TUNNEL);