apps: fix default mbuf size
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 29 Apr 2015 23:31:51 +0000 (00:31 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 May 2015 13:51:14 +0000 (15:51 +0200)
commit824cb29c0e7b8a2b3ed285546c3a39a8e0b3cd44
tree2bb414d2d372af4784f915b413c03e5795da49e2
parent11f51a26d3e3a3cf78efa4c0a20d6aa5b29117c2
apps: fix default mbuf size

Latest mbuf changes (priv_size addition and related fixes)
exposed small problem with testpmd and few other sample apps:
when mbuf size is exaclty 2KB or less, that causes
ixgbe PMD to select scattered RX even for configs with 'normal'
max packet length (max_rx_pkt_len == ETHER_MAX_LEN).
To overcome that problem and unify the code, new macro was created
to represent recommended minimal buffer length for mbuf.
When appropriate, samples are updated to use that macro.

Fixes: dfb03bbe2b ("app/testpmd: use standard functions to initialize
mbufs and mbuf pool")

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
41 files changed:
app/test-pmd/testpmd.h
app/test/test_distributor.c
app/test/test_distributor_perf.c
app/test/test_link_bonding.c
app/test/test_link_bonding_mode4.c
app/test/test_pmd_perf.c
app/test/test_pmd_ring.c
app/test/test_reorder.c
app/test/test_table.h
examples/bond/main.c
examples/distributor/main.c
examples/dpdk_qat/main.c
examples/ip_fragmentation/main.c
examples/ip_pipeline/init.c
examples/ip_reassembly/main.c
examples/ipv4_multicast/main.c
examples/l2fwd-ivshmem/host/host.c
examples/l2fwd-jobstats/main.c
examples/l2fwd/main.c
examples/l3fwd-acl/main.c
examples/l3fwd-power/main.c
examples/l3fwd-vf/main.c
examples/l3fwd/main.c
examples/link_status_interrupt/main.c
examples/load_balancer/main.h
examples/multi_process/client_server_mp/mp_server/init.c
examples/multi_process/l2fwd_fork/main.c
examples/multi_process/symmetric_mp/main.c
examples/netmap_compat/bridge/bridge.c
examples/packet_ordering/main.c
examples/qos_meter/main.c
examples/qos_sched/init.c
examples/qos_sched/main.h
examples/quota_watermark/include/conf.h
examples/rxtx_callbacks/main.c
examples/skeleton/basicfwd.c
examples/vhost/main.c
examples/vhost_xen/main.c
examples/vmdq/main.c
examples/vmdq_dcb/main.c
lib/librte_mbuf/rte_mbuf.h