> > The mbuf leak happens when the assigned number of rx descriptor is not
> > power of 2.
> > As it's presumed on vpmd rx(for rx_tail wrap), adding condition check to
> > prevent it.
> > The root cause reference code in *_recv_raw_pkts_vec* as below.
> > "rxq->rx_tail = (uint16_t)(rxq->rx_tail &
On Mon, Mar 02, 2015 at 09:28:24PM +0800, Cunming Liang wrote:
> The mbuf leak happens when the assigned number of rx descriptor is not power
> of 2.
> As it's presumed on vpmd rx(for rx_tail wrap), adding condition check to
> prevent it.
> The root cause reference code in *_recv_raw_pkts_vec* as
The mbuf leak happens when the assigned number of rx descriptor is not power of
2.
As it's presumed on vpmd rx(for rx_tail wrap), adding condition check to
prevent it.
The root cause reference code in *_recv_raw_pkts_vec* as below.
"rxq->rx_tail = (uint16_t)(rxq->rx_tail & (rxq->nb_rx_desc - 1));
3 matches
Mail list logo