enic: fix last packet not being sent
authorJohn Daley <johndale@cisco.com>
Tue, 8 Mar 2016 18:49:07 +0000 (10:49 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 15:57:39 +0000 (16:57 +0100)
commitaba31298526865f5db99eaa54b63eb39dc95b74f
treec59a1864d939573dbdbf5b78585b6b5b937a3b0e
parent947d860c821f4248dcf2fc01e98671524973eeea
enic: fix last packet not being sent

The last packet of the tx burst function array was not being
emitted until the subsequent call.  The nic descriptor index
was being set to the current tx descriptor instead of one past
the descriptor as required by the nic.

Fixes: d739ba4c6abf ("enic: improve Tx packet rate")

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