diff options
author | 2016-01-05 20:44:07 +0200 | |
---|---|---|
committer | 2016-01-05 20:44:07 +0200 | |
commit | 6711f24152e61263dec80f44a1aee04512b508d2 (patch) | |
tree | 1cd3c173055de04a1e6d74767cfc6e6c0da1e68b /src/main_dpdk.cpp | |
parent | 85d536eb822a7663c37658180efe85411f4148e3 (diff) |
9k packet size does not work for VMXNET3
Diffstat (limited to 'src/main_dpdk.cpp')
-rwxr-xr-x | src/main_dpdk.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index acee54bf..16e36a61 100755 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -3367,6 +3367,11 @@ int CGlobalTRex::ixgbe_start(void){ /* last TX queue if for latency check */ if ( get_vm_one_queue_enable() ) { /* one tx one rx */ + + /* VMXNET3 does claim to support 16K but somehow does not work */ + /* reduce to 2000 */ + m_port_cfg.m_port_conf.rxmode.max_rx_pkt_len = 2000; + _if->configure(1, 1, &m_port_cfg.m_port_conf); @@ -3422,7 +3427,7 @@ int CGlobalTRex::ixgbe_start(void){ RTE_TEST_RX_LATENCY_DESC_DEFAULT, socket_id, &m_port_cfg.m_rx_conf, - CGlobalInfo::m_mem_pool[socket_id].m_mbuf_pool_2048); + CGlobalInfo::m_mem_pool[socket_id].m_mbuf_pool_9k); int qid; for ( qid=0; qid<(m_max_queues_per_port+1); qid++) { |