linux/drivers/net/xen-netback
David Vrabel ecf08d2dbb xen-netback: reintroduce guest Rx stall detection
If a frontend not receiving packets it is useful to detect this and
turn off the carrier so packets are dropped early instead of being
queued and drained when they expire.

A to-guest queue is stalled if it doesn't have enough free slots for a
an extended period of time (default 60 s).

If at least one queue is stalled, the carrier is turned off (in the
expectation that the other queues will soon stall as well).  The
carrier is only turned on once all queues are ready.

When the frontend connects, all the queues start in the stalled state
and only become ready once the frontend queues enough Rx requests.

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>
2014-10-25 14:15:20 -04:00
..
Makefile
common.h xen-netback: reintroduce guest Rx stall detection 2014-10-25 14:15:20 -04:00
interface.c xen-netback: reintroduce guest Rx stall detection 2014-10-25 14:15:20 -04:00
netback.c xen-netback: reintroduce guest Rx stall detection 2014-10-25 14:15:20 -04:00
xenbus.c xen-netback: reintroduce guest Rx stall detection 2014-10-25 14:15:20 -04:00