net/iavf: fix QFI fields of GTPU UL/DL for flow director
Fix QFI (QoS Flow Identifier) fields matching of GTPU UL/DL for FDIR.
Fixes: 78e8a87f63
("net/iavf: fix GTPU UL and DL support for flow director")
Cc: stable@dpdk.org
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Signed-off-by: Lingyu Liu <lingyu.liu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
1028e5bc36
commit
cd212c4669
@ -1171,7 +1171,17 @@ iavf_fdir_parse_pattern(__rte_unused struct iavf_adapter *ad,
|
|||||||
if (gtp_psc_spec && gtp_psc_mask) {
|
if (gtp_psc_spec && gtp_psc_mask) {
|
||||||
if (gtp_psc_mask->qfi == UINT8_MAX) {
|
if (gtp_psc_mask->qfi == UINT8_MAX) {
|
||||||
input_set |= IAVF_INSET_GTPU_QFI;
|
input_set |= IAVF_INSET_GTPU_QFI;
|
||||||
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, GTPU_EH, QFI);
|
if (gtp_psc_spec->pdu_type ==
|
||||||
|
IAVF_GTPU_EH_UPLINK)
|
||||||
|
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr,
|
||||||
|
GTPU_UP, QFI);
|
||||||
|
else if (gtp_psc_spec->pdu_type ==
|
||||||
|
IAVF_GTPU_EH_DWLINK)
|
||||||
|
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr,
|
||||||
|
GTPU_DWN, QFI);
|
||||||
|
else
|
||||||
|
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr,
|
||||||
|
GTPU_EH, QFI);
|
||||||
}
|
}
|
||||||
|
|
||||||
rte_memcpy(hdr->buffer, gtp_psc_spec,
|
rte_memcpy(hdr->buffer, gtp_psc_spec,
|
||||||
|
Loading…
Reference in New Issue
Block a user