net/enic: streamline mbuf handling in Tx path
authorJohn Daley <johndale@cisco.com>
Fri, 3 Jun 2016 00:22:50 +0000 (17:22 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 15 Jun 2016 15:13:56 +0000 (17:13 +0200)
commita3b1e9551c26085e80322d0507394fe5496ae3ba
treeeac6ac0c4524da0e97b3aca60b6564e1e4f50f26
parentd309bdc2c9518a1844948e4248bbee9fd0b0a672
net/enic: streamline mbuf handling in Tx path

The list of mbufs held by the driver on Tx was allocated in chunks
(a hold-over from the enic kernel mode driver). The structure used
next pointers across chunks which led to cache misses.

Allocate the array used to hold mbufs in flight on Tx with
rte_zmalloc_socket(). Remove unnecessary fields from the structure
and use head and tail pointers instead of next pointers.

Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/base/enic_vnic_wq.h
drivers/net/enic/base/vnic_wq.c
drivers/net/enic/base/vnic_wq.h
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c
drivers/net/enic/enic_rxtx.c