numam-dpdk/app/test-pmd
Maxime Coquelin a1b87645d3 app/testpmd: reset headroom after txonly packet allocation
This patch fixes txonly raw packets allocations by resetting the
available headroom.

Indeed, some PMDs such as Virtio might prepend some data to the
packet, resulting in mbuf's data_off field to be decremented each
time the mbuf gets re-allocated.

For Virtio PMD, it means that we use only single descriptors for the
first times mbufs get allocated, as at some point there is not
enough headroom to store the header.

Other alternative would be use standard API to allocate the packets,
which does reset the headroom, but the impact on performance is too
big to consider this an option.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-10-05 15:17:12 +02:00
..
cmdline.c app/testpmd: fix help of MTU set commmand 2016-09-23 20:29:46 +02:00
config.c remove unused ring includes 2016-09-16 10:16:02 +02:00
csumonly.c remove unused ring includes 2016-09-16 10:16:02 +02:00
flowgen.c remove unused ring includes 2016-09-16 10:16:02 +02:00
icmpecho.c remove unused ring includes 2016-09-16 10:16:02 +02:00
ieee1588fwd.c app/testpmd: swap MAC in IEEE1588 forwarding 2015-12-10 22:20:08 +01:00
iofwd.c remove unused ring includes 2016-09-16 10:16:02 +02:00
macfwd.c remove unused ring includes 2016-09-16 10:16:02 +02:00
macswap.c remove unused ring includes 2016-09-16 10:16:02 +02:00
Makefile app/testpmd: add retry option 2016-06-16 16:23:24 +02:00
parameters.c remove unused ring includes 2016-09-16 10:16:02 +02:00
rxonly.c remove unused ring includes 2016-09-16 10:16:02 +02:00
testpmd.c app/testpmd: fix timeout in Rx queue flushing 2016-09-23 20:20:07 +02:00
testpmd.h app/testpmd: add retry option 2016-06-16 16:23:24 +02:00
txonly.c app/testpmd: reset headroom after txonly packet allocation 2016-10-05 15:17:12 +02:00