RE: [EXTERNAL] Re: EXTERNAL] [PATCH ] Add checks for the port capabilties

2023-05-28 Thread Ajay Sharma
fo->rx_desc_lim.nb_mtu_seg_max = RTE_MIN(priv->max_recv_sge, UINT16_MAX); /* Speed */ dev_info->speed_capa = RTE_ETH_LINK_SPEED_100G; -- 2.25.1 > -Original Message- > From: Stephen Hemminger > Sent: Thursday, May 25, 2023 8:31 PM > To: Ajay Sharma >

Re: EXTERNAL] [PATCH ] Add checks for the port capabilties

2023-05-25 Thread Stephen Hemminger
On Fri, 26 May 2023 00:19:59 + Ajay Sharma 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_q

EXTERNAL] [PATCH ] Add checks for the port capabilties

2023-05-25 Thread Ajay Sharma
From: Ajay Sharma Date: Mon, 22 May 2023 20:24:39 -0700 Subject: [PATCH] Add checks for the port capabilties Add checks to the values retrieved from the firmware to prevent overflow. Signed-off-by: Ajay Sharma --- drivers/net/mana/mana.c | 18 ++ 1 file chan