summaryrefslogtreecommitdiffstats
path: root/kernel/freezer.c
diff options
context:
space:
mode:
authorRonak Doshi2018-03-16 22:47:54 +0100
committerDavid S. Miller2018-03-18 01:03:53 +0100
commit7a4c003d6921e2af215f4790aa43a292bdc78be0 (patch)
treeaea16a315528e4d9dc4e1367e63958c6e9cec0d8 /kernel/freezer.c
parentMerge branch 'tcf_foo_init-NULL-deref' (diff)
downloadkernel-qcow2-linux-7a4c003d6921e2af215f4790aa43a292bdc78be0.tar.gz
kernel-qcow2-linux-7a4c003d6921e2af215f4790aa43a292bdc78be0.tar.xz
kernel-qcow2-linux-7a4c003d6921e2af215f4790aa43a292bdc78be0.zip
vmxnet3: avoid xmit reset due to a race in vmxnet3
The field txNumDeferred is used by the driver to keep track of the number of packets it has pushed to the emulation. The driver increments it on pushing the packet to the emulation and the emulation resets it to 0 at the end of the transmit. There is a possibility of a race either when (a) ESX is under heavy load or (b) workload inside VM is of low packet rate. This race results in xmit hangs when network coalescing is disabled. This change creates a local copy of txNumDeferred and uses it to perform ring arithmetic. Reported-by: Noriho Tanaka <ntanaka@vmware.com> Signed-off-by: Ronak Doshi <doshir@vmware.com> Acked-by: Shrikrishna Khare <skhare@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions