net/ice: fix RXDID default value in DCF
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 17 Aug 2021 03:41:23 +0000 (11:41 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 29 Aug 2021 11:13:56 +0000 (13:13 +0200)
Since DPDK 20.11 the default rxdid is changed from 16 to 22, but the
DCF data path didn't change, the patch fix the gap.

Fixes: 12443386a0b0 ("net/ice: support flex Rx descriptor RxDID22")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Zhimin Huang <zhiminx.huang@intel.com>
drivers/net/ice/ice_dcf.c

index 4c2e0c7..5b23cc9 100644 (file)
@@ -847,7 +847,7 @@ ice_dcf_init_rss(struct ice_dcf_hw *hw)
 
 #define IAVF_RXDID_LEGACY_0 0
 #define IAVF_RXDID_LEGACY_1 1
-#define IAVF_RXDID_COMMS_GENERIC 16
+#define IAVF_RXDID_COMMS_OVS_1 22
 
 int
 ice_dcf_configure_queues(struct ice_dcf_hw *hw)
@@ -895,8 +895,8 @@ ice_dcf_configure_queues(struct ice_dcf_hw *hw)
                if (hw->vf_res->vf_cap_flags &
                    VIRTCHNL_VF_OFFLOAD_RX_FLEX_DESC &&
                    hw->supported_rxdid &
-                   BIT(IAVF_RXDID_COMMS_GENERIC)) {
-                       vc_qp->rxq.rxdid = IAVF_RXDID_COMMS_GENERIC;
+                   BIT(IAVF_RXDID_COMMS_OVS_1)) {
+                       vc_qp->rxq.rxdid = IAVF_RXDID_COMMS_OVS_1;
                        PMD_DRV_LOG(NOTICE, "request RXDID == %d in "
                                    "Queue[%d]", vc_qp->rxq.rxdid, i);
                } else {