EXTERNAL] [PATCH ] Add checks for the port capabilties

Stephen Hemminger stephen at networkplumber.org
Fri May 26 05:30:49 CEST 2023


On Fri, 26 May 2023 00:19:59 +0000
Ajay Sharma <sharmaajay at microsoft.com> wrote:

>   +       dev_info->max_rx_queues = RTE_MIN(priv->max_rx_queues, USHRT_MAX);
>   +       dev_info->max_tx_queues = RTE_MIN(priv->max_tx_queues, USHRT_MAX);
>   +

Please use UINT16_MAX instead of USHRT_MAX since that is the type of max_rx_queues.
Both are the same size but best to be consistent.


More information about the stable mailing list