numam-dpdk/doc/guides
Olivier Matz 1d493a4949 mbuf: fix data room size calculation in pool init
Deduct the mbuf data room size from mempool->elt_size and priv_size,
instead of using an hardcoded value that is not related to the real
buffer size.

To use rte_pktmbuf_pool_init(), the user can either:
- give a NULL parameter to rte_pktmbuf_pool_init(): in this case, the
  private size is assumed to be 0, and the room size is
  mp->elt_size - sizeof(struct rte_mbuf).
- give the rte_pktmbuf_pool_private filled with appropriate
  data_room_size and priv_size values.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-04-27 22:39:20 +02:00
..
freebsd_gsg doc: remove Intel legal info from freebsd guide 2014-12-20 00:38:38 +01:00
linux_gsg doc: comment i40e firmware version 2015-04-03 15:53:54 +02:00
nics doc: fix verbatim sections for vmxnet3 2015-04-13 23:21:57 +02:00
prog_guide doc: convert prog guide glossary to definition list 2015-04-14 11:19:53 +02:00
rel_notes mbuf: fix data room size calculation in pool init 2015-04-27 22:39:20 +02:00
sample_app_ug doc: fix vhost guide 2015-04-16 14:23:32 +02:00
testpmd_app_ug doc: add note for --txqflags in testpmd 2015-04-01 21:27:08 +02:00
xen doc: move Xen guide out of programmers guide 2015-03-31 00:13:28 +02:00
conf.py doc: remove blank pages in pdf 2015-03-19 17:58:49 +01:00
index.rst doc: nics guide 2015-03-31 01:33:22 +02:00