net/enic: fix Tx crash after restart
authorNelson Escobar <neescoba@cisco.com>
Wed, 29 Jun 2016 23:03:20 +0000 (16:03 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 5 Jul 2016 13:36:23 +0000 (15:36 +0200)
commita3d5f0c92a72addbd6719d783c320ce7e2789241
treef4ba82621414b5d24ce6aeca6247269bf8cccf2a
parentb12a4c911ab0c69af88ecc3b3b1beae1b175c69b
net/enic: fix Tx crash after restart

If you stop then start a port that had already sent some packets,
there was a segfault due to not resetting the number of completed
sends to zero.

Fixes: a3b1e9551c26 ("net/enic: streamline mbuf handling in Tx path")

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