net/iavf: fix QFI field bit check for GTPU EH
authorJunfeng Guo <junfeng.guo@intel.com>
Fri, 8 Oct 2021 10:41:43 +0000 (10:41 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 8 Oct 2021 06:18:07 +0000 (08:18 +0200)
commit9381e4c04b6aea54c85fa6bc298deb5a4f4e6719
tree7f12f95a35ffff20892e0837ee46cd62b9d821a7
parent92ef4b8f1688ded571fb2085727e5e82f2afe5d6
net/iavf: fix QFI field bit check for GTPU EH

If GTPU Extension header has no pdu_type setting, the parsed value of
gtp_psc_spec->hdr.type will be 0, which is same as IAVF_GTPU_EH_DWLINK.
Thus, for this case, we should check gtp_psc_mask->hdr.type instead,
to set QFI field bit of GTPU_EH first.

Fixes: cd212c466992 ("net/iavf: fix QFI fields of GTPU UL/DL for flow director")
Cc: stable@dpdk.org
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_fdir.c