> -----Original Message----- > From: Tudor Cornea <tudor.cor...@gmail.com> > Sent: Thursday, August 5, 2021 7:35 PM > To: Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei <beilei.x...@intel.com> > Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; dev@dpdk.org; Tudor Cornea > <tudor.cor...@gmail.com> > Subject: [PATCH] net/iavf: fix overflow in maximum packet length config > > The len variable, used in the computation of max_pkt_len could overflow, if > used to store the result of the following computation: > > rxq->rx_buf_len * IAVF_MAX_CHAINED_RX_BUFFERS > > Since, we could define the mbuf size to have a large value (i.e 13312), and > IAVF_MAX_CHAINED_RX_BUFFERS is defined as 5, the computation mentioned > above could potentially result in a value which might be bigger than > MAX_USHORT. > > The result will be that Jumbo Frames will not work properly > > A similar fix was submitted for the ice driver Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org > > Signed-off-by: Tudor Cornea <tudor.cor...@gmail.com> Acked-by: Qi Zhang <qi.z.zh...@intel.com> Applied to dpdk-next-net-intel. Thanks Qi