]> git.ipfire.org Git - people/arne_f/kernel.git/commit
xen-netback: correctly schedule rate-limited queues
authorWei Liu <wei.liu2@citrix.com>
Wed, 21 Jun 2017 09:21:22 +0000 (10:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:49:34 +0000 (08:49 -0700)
commit816843a257c77828c389cf9cce2170ef057bfc1b
tree35f6bfcfea054023845e58837dc7ac3b557e5862
parent38e71eabb8f71db17ce1aa846fb31abc936dcefa
xen-netback: correctly schedule rate-limited queues

[ Upstream commit dfa523ae9f2542bee4cddaea37b3be3e157f6e6b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c