netdev-dpdk: Disable NIC offloading and multiseg mbufs
authorDaniele Di Proietto <ddiproietto@vmware.com>
Tue, 24 Jun 2014 23:05:02 +0000 (16:05 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 25 Jun 2014 17:54:04 +0000 (10:54 -0700)
We do not use any offloading (now) or multiple segments per packet, so
we might as well disable those features while configuring the NIC.

This could give performance improvements. For ixgbe, for example, this change
allows the driver to use a simpler tx routine, resulting in throuput
improvements (~7.5%)

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-dpdk.c

index 5aa9d0c..72add87 100644 (file)
@@ -117,6 +117,7 @@ static const struct rte_eth_txconf tx_conf = {
     },
     .tx_free_thresh = 0,
     .tx_rs_thresh = 0,
+    .txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS|ETH_TXQ_FLAGS_NOOFFLOADS,
 };
 
 enum { MAX_RX_QUEUE_LEN = 64 };