From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 24001A00E6
	for <public@inbox.dpdk.org>; Thu, 18 Apr 2019 15:16:31 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 875541BA5A;
	Thu, 18 Apr 2019 15:16:24 +0200 (CEST)
Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])
 by dpdk.org (Postfix) with ESMTP id 6DB6E1B9E7
 for <dev@dpdk.org>; Thu, 18 Apr 2019 15:16:20 +0200 (CEST)
Received: from Internal Mail-Server by MTLPINE1 (envelope-from
 orika@mellanox.com)
 with ESMTPS (AES256-SHA encrypted); 18 Apr 2019 16:16:13 +0300
Received: from pegasus03.mtr.labs.mlnx (pegasus03.mtr.labs.mlnx
 [10.210.16.124])
 by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x3IDGDS7003631;
 Thu, 18 Apr 2019 16:16:13 +0300
From: Ori Kam <orika@mellanox.com>
To: yskoh@mellanox.com, shahafs@mellanox.com, matan@mellanox.com,
 viacheslavo@mellanox.com, motih@mellanox.com
Cc: dev@dpdk.org, orika@mellanox.com
Date: Thu, 18 Apr 2019 13:15:59 +0000
Message-Id: <1555593367-144772-2-git-send-email-orika@mellanox.com>
X-Mailer: git-send-email 1.8.3.1
In-Reply-To: <1555593367-144772-1-git-send-email-orika@mellanox.com>
References: <1555276357-4892-1-git-send-email-orika@mellanox.com>
 <1555593367-144772-1-git-send-email-orika@mellanox.com>
Subject: [dpdk-dev] [PATCH v3 1/9] net/mlx5: fix translate vport function
	name
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <20190418131559.UjAlKw_6tRYYJ0CiZsPZJlS6EvRkOmTpjSgpZXWXrpM@z>

Modify the translate vport function to match other translate items
naming convestions.

Fixes: 0fe3f18f78d8 ("net/mlx5: add source vport match to the ingress rules")
Cc: viacheslavo@mellanox.com

Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
---
 drivers/net/mlx5/mlx5_flow_dv.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 04ab3d6..1e25e0b 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -3087,8 +3087,8 @@ struct field_modify_info modify_tcp[] = {
  *   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);
@@ -3492,10 +3492,10 @@ struct field_modify_info modify_tcp[] = {
 		 * 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);
-- 
1.8.3.1