summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_flow_dv.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-10-23 16:52:10 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commit31b1999991a2da281d799eaea1e58b3b4bfaa296 (patch)
treeae0ff5751096b68042162a58b2237436c535ca33 /drivers/net/mlx5/mlx5_flow_dv.c
parent58b1312e9d193f91c20eace59555b3ae3c88272d (diff)
downloaddpdk-next-eventdev-31b1999991a2da281d799eaea1e58b3b4bfaa296.zip
dpdk-next-eventdev-31b1999991a2da281d799eaea1e58b3b4bfaa296.tar.gz
dpdk-next-eventdev-31b1999991a2da281d799eaea1e58b3b4bfaa296.tar.xz
net/mlx5: fix UDP hash field flag in Direct Verbs
Fixes: fc2c498ccb94 ("net/mlx5: add Direct Verbs translate items") Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_flow_dv.c')
-rw-r--r--drivers/net/mlx5/mlx5_flow_dv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index e8f409f..57884e9 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -1028,9 +1028,9 @@ flow_dv_create_item(void *matcher, void *key,
tmatcher->priority = MLX5_PRIORITY_MAP_L4;
dev_flow->verbs.hash_fields |=
mlx5_flow_hashfields_adjust(dev_flow, inner,
- ETH_RSS_TCP,
- (IBV_RX_HASH_SRC_PORT_TCP |
- IBV_RX_HASH_DST_PORT_TCP));
+ ETH_RSS_UDP,
+ (IBV_RX_HASH_SRC_PORT_UDP |
+ IBV_RX_HASH_DST_PORT_UDP));
break;
case RTE_FLOW_ITEM_TYPE_NVGRE:
flow_dv_translate_item_nvgre(tmatcher->mask.buf, key, item,