numam-dpdk/drivers/net/nfp
Alejandro Lucero 19ac8c75df net/nfp: fix packet/data length conversion
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: b812daadad ("nfp: add Rx and Tx")
Cc: stable@dpdk.org

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
2017-04-04 18:59:45 +02:00
..
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
nfp_net_ctrl.h net/nfp: add Rx interrupts 2017-01-17 19:40:52 +01:00
nfp_net_logs.h nfp: introduce driver initialization 2015-12-08 03:00:42 +01:00
nfp_net_pmd.h net/nfp: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
nfp_net.c net/nfp: fix packet/data length conversion 2017-04-04 18:59:45 +02:00
rte_pmd_nfp_version.map nfp: introduce driver initialization 2015-12-08 03:00:42 +01:00