All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net V2] xen-netback: don't move event pointer in TX credit timeout callback
@ 2014-05-15 11:59 Wei Liu
  2014-05-15 13:04 ` Jacek Konieczny
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Wei Liu @ 2014-05-15 11:59 UTC (permalink / raw)
  To: xen-devel, netdev; +Cc: jajcus, Wei Liu, Paul Durrant

... otherwise the frontend will try to send TX event all the time, even
if no progress can be made. The pointer should only be advanced by the
routine that actually processes the ring (that is, xenvif_poll).

Reported-by: Jacek Konieczny <jajcus@jajcus.net>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Paul Durrant <paul.durrant@citrix.com>
---
 drivers/net/xen-netback/netback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 7666540..8e2cbeb 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -658,7 +658,7 @@ void xenvif_check_rx_xenvif(struct xenvif *vif)
 {
 	int more_to_do;
 
-	RING_FINAL_CHECK_FOR_REQUESTS(&vif->tx, more_to_do);
+	more_to_do = RING_HAS_UNCONSUMED_REQUESTS(&vif->tx);
 
 	if (more_to_do)
 		napi_schedule(&vif->napi);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 25+ messages in thread
* [PATCH net V2] xen-netback: don't move event pointer in TX credit timeout callback
@ 2014-05-15 11:59 Wei Liu
  0 siblings, 0 replies; 25+ messages in thread
From: Wei Liu @ 2014-05-15 11:59 UTC (permalink / raw)
  To: xen-devel, netdev; +Cc: Paul Durrant, Wei Liu, jajcus

... otherwise the frontend will try to send TX event all the time, even
if no progress can be made. The pointer should only be advanced by the
routine that actually processes the ring (that is, xenvif_poll).

Reported-by: Jacek Konieczny <jajcus@jajcus.net>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Paul Durrant <paul.durrant@citrix.com>
---
 drivers/net/xen-netback/netback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 7666540..8e2cbeb 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -658,7 +658,7 @@ void xenvif_check_rx_xenvif(struct xenvif *vif)
 {
 	int more_to_do;
 
-	RING_FINAL_CHECK_FOR_REQUESTS(&vif->tx, more_to_do);
+	more_to_do = RING_HAS_UNCONSUMED_REQUESTS(&vif->tx);
 
 	if (more_to_do)
 		napi_schedule(&vif->napi);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-05-15 18:16 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15 11:59 [PATCH net V2] xen-netback: don't move event pointer in TX credit timeout callback Wei Liu
2014-05-15 13:04 ` Jacek Konieczny
2014-05-15 13:33   ` Wei Liu
2014-05-15 13:33   ` Wei Liu
2014-05-15 13:58   ` Wei Liu
2014-05-15 13:58   ` Wei Liu
2014-05-15 14:13   ` Wei Liu
2014-05-15 14:13   ` Wei Liu
2014-05-15 14:47     ` Zoltan Kiss
2014-05-15 14:47     ` Zoltan Kiss
2014-05-15 15:30       ` Wei Liu
2014-05-15 15:30       ` Wei Liu
2014-05-15 16:34         ` Zoltan Kiss
2014-05-15 16:53           ` Wei Liu
2014-05-15 16:53           ` Wei Liu
2014-05-15 17:03             ` Zoltan Kiss
2014-05-15 17:03             ` Zoltan Kiss
2014-05-15 18:16               ` Wei Liu
2014-05-15 18:16               ` Wei Liu
2014-05-15 16:34         ` Zoltan Kiss
2014-05-15 13:40 ` [Xen-devel] " David Vrabel
2014-05-15 13:59   ` Wei Liu
2014-05-15 13:59   ` Wei Liu
2014-05-15 13:40 ` David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2014-05-15 11:59 Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.