[dpdk-dev] [PATCH] test-pmd fix default mbuf size
Konstantin Ananyev
konstantin.ananyev at intel.com
Tue Apr 28 15:02:30 CEST 2015
Latest mbuf changes (priv_size addition and related fixes)
exposed small problem with testpmd default config:
testpmd default mbuf size is exaclty 2KB, that causes
ixgbe PMD to select scattered RX even for configs with 'normal'
max packet length (max_rx_pkt_len == ETHER_MAX_LEN).
Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
---
app/test-pmd/testpmd.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
index 389fc24..037e7ec 100644
--- a/app/test-pmd/testpmd.h
+++ b/app/test-pmd/testpmd.h
@@ -48,7 +48,8 @@
* Default size of the mbuf data buffer to receive standard 1518-byte
* Ethernet frames in a mono-segment memory buffer.
*/
-#define DEFAULT_MBUF_DATA_SIZE 2048 /**< Default size of mbuf data buffer. */
+#define DEFAULT_MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM)
+/**< Default size of mbuf data buffer. */
/*
* The maximum number of segments per packet is used when creating
--
1.8.3.1
More information about the dev
mailing list