]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: fix guest Rx stall detection (after guest Rx refactor)
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 11 Oct 2016 15:48:27 +0000 (16:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 14:20:58 +0000 (10:20 -0400)
commit48931bb0a04d8b94d6313941b3c30dac4eb27c73
tree8192b6e1799044721cf99d86739b6353b90da178
parentfb909f165547eb42263b5c0dbf8fd66bcb80ed39
xen-netback: fix guest Rx stall detection (after guest Rx refactor)

If a VIF has been ready for rx_stall_timeout (60s by default) and an
Rx ring is drained of all requests an Rx stall will be incorrectly
detected.  When this occurs and the guest Rx queue is empty, the Rx
ring's event index will not be set and the frontend will not raise an
event when new requests are placed on the ring, permanently stalling
the VIF.

This is a regression introduced by f2a687b8669a6 (xen-netback:
refactor guest rx).

Fix this by reinstating the setting of queue->last_rx_time when
placing a packet onto the guest Rx ring.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/rx.c