[dpdk-stable] [PATCH] net/nfp: fix packet/data length conversion

Yuanhan Liu yuanhan.liu at linux.intel.com
Wed May 17 08:26:29 CEST 2017


On Tue, May 16, 2017 at 02:53:02PM +0100, Alejandro Lucero wrote:
> [ backported from upstream commit 19ac8c75df90ef90ef8100b13ee3fed2da5a5ac7 ]
> 
> Chained mbufs hold data_len as the length of that particular mbuf
> and pkt_len as the full packet length including all the chained
> mbufs. It is not clear from the mbuf definition if pkt_len should
> be set for all the mbufs in a chain, but code there for handling
> mbufs suggests just the first mbuf requires to have pkt_len set.
> 
> NFP PMD was assuming pkt_len is set in all the chained mbufs and
> unit tests for gather dma were building mbufs with pkt_len always
> set. This patch gets rid of that assumption.
> 
> Fixes: b812daadad0d ("nfp: add Rx and Tx")
> 
> Signed-off-by: Alejandro Lucero <alejandro.lucero at netronome.com>

Applied to dpdk-stable/16.11.

Thanks!

	--yliu


More information about the stable mailing list