WSL2-Linux-Kernel/drivers/net/xen-netback
David Vrabel 7fbb9d8415 xen-netback: release pending index before pushing Tx responses
If the pending indexes are released /after/ pushing the Tx response
then a stale pending index may be used if a new Tx request is
immediately pushed by the frontend.  The may cause various WARNINGs or
BUGs if the stale pending index is actually still in use.

Fix this by releasing the pending index before pushing the Tx
response.

The full barrier for the pending ring update is not required since the
the Tx response push already has a suitable write barrier.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-24 16:24:22 -05:00
..
Makefile
common.h xen-netback: always fully coalesce guest Rx packets 2015-01-23 18:01:58 -08:00
interface.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-02-10 20:01:30 -08:00
netback.c xen-netback: release pending index before pushing Tx responses 2015-02-24 16:24:22 -05:00
xenbus.c xen-netback: fixing the propagation of the transmit shaper timeout 2015-01-06 14:17:37 -05:00