linux_dsm_epyc7002/drivers/net/vmxnet3
Neil Horman 0769636cb5 vmxnet3: prevent receive getting out of sequence on napi poll
vmxnet3's current napi path is built to count every rx descriptor we recieve,
and use that as a count of the napi budget.  That means its possible to return
from a napi poll halfway through recieving a fragmented packet accross multiple
dma descriptors.  If that happens, the next napi poll will start with the
descriptor ring in an improper state (e.g. the first descriptor we look at may
have the end-of-packet bit set), which will cause a BUG halt in the driver.

Fix the issue by only counting whole received packets in the napi poll and
returning that value, rather than the descriptor count.

Tested by the reporter and myself, successfully

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Shreyas Bhatewara <sbhatewara@vmware.com>
CC: "David S. Miller" <davem@davemloft.net>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-08 23:36:11 -07:00
..
Makefile
upt1_defs.h
vmxnet3_defs.h vmxnet3: Changes for vmxnet3 adapter version 2 (fwd) 2015-06-23 06:26:01 -07:00
vmxnet3_drv.c vmxnet3: prevent receive getting out of sequence on napi poll 2015-07-08 23:36:11 -07:00
vmxnet3_ethtool.c vmxnet3: spelling fixes 2015-04-01 22:52:29 -04:00
vmxnet3_int.h vmxnet3: Bump up driver version number 2015-06-29 09:27:45 -07:00