net/enic: optimize the Tx function
authorJohn Daley <johndale@cisco.com>
Fri, 3 Jun 2016 00:22:53 +0000 (17:22 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 15 Jun 2016 15:13:56 +0000 (17:13 +0200)
commit78f90329dd66e8c821d8c82548344571313fb4da
treef4e7dfb55af6a1b8b192a6436907d72215040b98
parent36935afbc53cc66d13720c9b145a45f51daadf5d
net/enic: optimize the Tx function

Reduce host CPU overhead of Tx packet processing:
* Use local variables inside per-packet loop instead of fields in structs.
* Factor book keeping and conditionals out of the per-packet loop where
  possible.
* Post buffers to the nic at a maximum of every 64 packets

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/base/vnic_wq.h
drivers/net/enic/enic_res.h
drivers/net/enic/enic_rxtx.c