]> git.droids-corp.org - dpdk.git/commitdiff
net/ice: fix build with 16-byte Rx descriptor
authorYiding Zhou <yidingx.zhou@intel.com>
Tue, 8 Feb 2022 15:42:19 +0000 (15:42 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 10 Feb 2022 09:32:03 +0000 (10:32 +0100)
gcc will report error "unused parameter 'rxq'" when the macro
RTE_LIBRTE_ICE_16BYTE_RX_DESC is defined. use RTE_SET_USED to avoid it

Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling")
Cc: stable@dpdk.org
Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_rxtx.c

index 58700f1b92b3a41f22f92041fbca541287f3e13d..4f218bcd0d0ac74bbc98ea6d97c5b32c6175ba59 100644 (file)
@@ -163,6 +163,8 @@ ice_rxd_to_pkt_fields_by_comms_aux_v1(struct ice_rx_queue *rxq,
                        *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) = metadata;
                }
        }
+#else
+       RTE_SET_USED(rxq);
 #endif
 }
 
@@ -201,6 +203,8 @@ ice_rxd_to_pkt_fields_by_comms_aux_v2(struct ice_rx_queue *rxq,
                        *RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(mb) = metadata;
                }
        }
+#else
+       RTE_SET_USED(rxq);
 #endif
 }