[dpdk-dev] [PATCH v1] ixgbe/vector: add rxd 2^n check to avoid mbuf leak

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Mar 5 20:00:32 CET 2015


> > 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));".
> > 
> > Reported-by: Stephen Hemminger <stephen at networkplumber.org>
> > Signed-off-by: Cunming Liang <cunming.liang at intel.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks



More information about the dev mailing list