xen-netback: correctly schedule rate-limited queues
authorWei Liu <wei.liu2@citrix.com>
Wed, 21 Jun 2017 09:21:22 +0000 (10:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:15:42 +0000 (11:15 -0400)
commitdfa523ae9f2542bee4cddaea37b3be3e157f6e6b
tree3c31b603c04bad0bb51c19305488cc12140ff7cb
parent191cdb3822e5df6b3c8b9f8cb8c4bf93f6cc90c7
xen-netback: correctly schedule rate-limited queues

Add a flag to indicate if a queue is rate-limited. Test the flag in
NAPI poll handler and avoid rescheduling the queue if true, otherwise
we risk locking up the host. The rescheduling will be done in the
timer callback function.

Reported-by: Jean-Louis Dupond <jean-louis@dupond.be>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: Jean-Louis Dupond <jean-louis@dupond.be>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c