From 16cbe5f469491cd7be324eb5d41b095b6774e93d Mon Sep 17 00:00:00 2001 From: Yahui Cao Date: Thu, 24 Oct 2019 20:56:37 +0800 Subject: [PATCH] net/ice: fix IPv6 UDP port matching Reverse the src and dest notion, since the HW expects them to be from Tx perspective where as the input from user is from Rx filter view. Fixes: f5cafa961fae ("net/ice: add flow director create and destroy") Signed-off-by: Yahui Cao Reviewed-by: Xiaolong Ye --- drivers/net/ice/ice_fdir_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index a85a02cd0e..736ccd54e7 100644 --- a/drivers/net/ice/ice_fdir_filter.c +++ b/drivers/net/ice/ice_fdir_filter.c @@ -1609,9 +1609,9 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad, ICE_FLTR_PTYPE_NONF_IPV4_UDP; } else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) { filter->input.ip.v6.src_port = - udp_spec->hdr.src_port; - filter->input.ip.v6.dst_port = udp_spec->hdr.dst_port; + filter->input.ip.v6.dst_port = + udp_spec->hdr.src_port; flow_type = ICE_FLTR_PTYPE_NONF_IPV6_UDP; } -- 2.20.1