diff options
author | Wei Liu <wei.liu2@citrix.com> | 2017-06-21 12:21:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-22 18:15:42 +0300 |
commit | dfa523ae9f2542bee4cddaea37b3be3e157f6e6b (patch) | |
tree | 3c31b603c04bad0bb51c19305488cc12140ff7cb /drivers/net/xen-netback/common.h | |
parent | 191cdb3822e5df6b3c8b9f8cb8c4bf93f6cc90c7 (diff) | |
download | linux-dfa523ae9f2542bee4cddaea37b3be3e157f6e6b.tar.xz |
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>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r-- | drivers/net/xen-netback/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h index 530586be05b4..5b1d2e8402d9 100644 --- a/drivers/net/xen-netback/common.h +++ b/drivers/net/xen-netback/common.h @@ -199,6 +199,7 @@ struct xenvif_queue { /* Per-queue data for xenvif */ unsigned long remaining_credit; struct timer_list credit_timeout; u64 credit_window_start; + bool rate_limited; /* Statistics */ struct xenvif_stats stats; |