Skip to content

Commit

Permalink
net/ice: fix build with 16-byte Rx descriptor
Browse files Browse the repository at this point in the history
[ upstream commit 94005e4 ]

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: 7a340b0 ("net/ice: refactor Rx FlexiMD handling")

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>
  • Loading branch information
yiding-zhou authored and bluca committed Feb 17, 2022
1 parent dc92390 commit 64d94d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ice/ice_rxtx.c
Expand Up @@ -129,6 +129,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
}

Expand Down Expand Up @@ -167,6 +169,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
}

Expand Down

0 comments on commit 64d94d1

Please sign in to comment.