xen-netback: fix guest Rx stall detection (after guest Rx refactor)
Subsystems (3)
PATCH 1/1 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 eb1723a29b9a7 (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.
--- drivers/net/xen-netback/rx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/xen-netback/rx.c +2 -0
@@ -425,6 +425,8 @@ void xenvif_rx_skb(struct xenvif_queue *queue)xenvif_rx_next_skb (queue, &pkt); + queue->last_rx_time = jiffies; + do { struct xen_netif_rx_request *req; struct xen_netif_rx_response *rsp;
Signature · 1 line
2.1.4
Quoted 16 lines
-----Original Message-----
From: David Vrabel [mailto:[email protected]]
Sent: 11 October 2016 16:48
To: [email protected]
Cc: David Vrabel <[email protected]>; [email protected]; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCHv1 net] 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.
Quoted 7 lines
This is a regression introduced by
eb1723a29b9a7(xen-netback:
refactor guest rx).Fix this by reinstating the setting of
queue->last_rx_timewhen placing a packet onto the guest Rx ring.Signed-off-by David Vrabel <[email protected]>
Quoted 18 lines
--- drivers/net/xen-netback/rx.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/xen-netback/rx.c +2
-1@@ -425,6 +425,8 @@ void xenvif_rx_skb(struct xenvif_queue *queue)xenvif_rx_next_skb (queue, &pkt); + queue->last_rx_time = jiffies; + do { struct xen_netif_rx_request *req; struct xen_netif_rx_response *rsp; --
Quoted 1 line
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 16 lines
-----Original Message-----
From: David Vrabel [mailto:[email protected]]
Sent: 11 October 2016 16:48
To: [email protected]
Cc: David Vrabel <[email protected]>; [email protected]; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCHv1 net] 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.
Quoted 7 lines
This is a regression introduced by
eb1723a29b9a7(xen-netback:
refactor guest rx).Fix this by reinstating the setting of
queue->last_rx_timewhen placing a packet onto the guest Rx ring.Signed-off-by David Vrabel <[email protected]>
Quoted 19 lines
--- drivers/net/xen-netback/rx.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/xen-netback/rx.c +2
-1@@ -425,6 +425,8 @@ void xenvif_rx_skb(struct xenvif_queue *queue)xenvif_rx_next_skb (queue, &pkt); + queue->last_rx_time = jiffies; + do { struct xen_netif_rx_request *req; struct xen_netif_rx_response *rsp; --2.1.4
From: David Vrabel <[email protected]>
Date: Tue, 11 Oct 2016 16:48:27 +0100
Quoted 7 lines
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.
Quoted 7 lines
This is a regression introduced by
eb1723a29b9a7(xen-netback:
refactor guest rx).Fix this by reinstating the setting of
queue->last_rx_timewhen placing a packet onto the guest Rx ring.Signed-off-by David Vrabel <[email protected]>
Applied.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
From: David Vrabel <[email protected]>
Date: Tue, 11 Oct 2016 16:48:27 +0100
Quoted 7 lines
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.
Quoted 7 lines
This is a regression introduced by
eb1723a29b9a7(xen-netback:
refactor guest rx).Fix this by reinstating the setting of
queue->last_rx_timewhen placing a packet onto the guest Rx ring.Signed-off-by David Vrabel <[email protected]>
Applied.