Go to file
Maxime Coquelin febf2bb46d mbuf: add function to reset headroom
Some application use rte_mbuf_raw_alloc() function to improve
performance by not resetting mbuf's fields to their default state.

This can be however problematic for mbuf consumers that need some
headroom, meaning that data_off field gets decremented after
allocation. When the mbuf is re-used afterwards, there might not
be enough room for the consumer to prepend anything, if the data_off
field is not reset to its default value.

This patch adds a new rte_pktmbuf_reset_headroom() function that
applications can call to reset the data_off field.
This patch also replaces current data_off affectations in the mbuf
lib with a call to this function.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-10-05 15:13:37 +02:00
app pci: create device list and fallback on its members 2016-10-03 16:34:03 +02:00
buildtools pmdinfogen: fix clang build 2016-10-04 11:50:56 +02:00
config vhost: remove vhost-cuse 2016-09-13 05:25:08 +02:00
doc net/vhost: add extended statistics 2016-09-29 15:08:08 +02:00
drivers net/vhost: add extended statistics 2016-09-29 15:08:08 +02:00
examples examples/vhost: remove VLAN strip option 2016-09-13 05:25:08 +02:00
lib mbuf: add function to reset headroom 2016-10-05 15:13:37 +02:00
mk vhost: remove vhost-cuse 2016-09-13 05:25:08 +02:00
pkg version: 16.07.0 2016-07-28 20:48:41 +02:00
scripts scripts: disable optimization for ABI validation 2016-09-15 14:51:48 +02:00
tools tools: fix virtio interface name when binding 2016-09-27 08:08:31 +02:00
.gitignore doc: generate NIC overview table from ini files 2016-08-03 18:42:17 +02:00
GNUmakefile pmdinfogen: add buildtools and pmdinfogen utility 2016-07-06 22:34:39 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS net/virtio: add NEON based Rx handler 2016-09-28 02:18:39 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
README doc: add readme file 2015-12-13 22:06:58 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD license for the core libraries and
drivers. The kernel components are GPLv2 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org