]> git.droids-corp.org - dpdk.git/commitdiff
net/ice: fix IPv6 UDP port matching
authorYahui Cao <yahui.cao@intel.com>
Thu, 24 Oct 2019 12:56:37 +0000 (20:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:24 +0000 (19:20 +0200)
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 <yahui.cao@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_fdir_filter.c

index a85a02cd0ec68c16b197fc3c5a4bad43e9eb0a92..736ccd54e7af1b0fdbb041d2c440cc611b605c15 100644 (file)
@@ -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;
                                }