xen-devel.lists.xenproject.org archive mirror
 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
  0 siblings, 0 replies; 13+ 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] 13+ messages in thread

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1400155158-13527-1-git-send-email-wei.liu2@citrix.com>
2014-05-15 13:04 ` [PATCH net V2] xen-netback: don't move event pointer in TX credit timeout callback Jacek Konieczny
2014-05-15 13:33   ` Wei Liu
2014-05-15 13:58   ` Wei Liu
2014-05-15 14:13   ` Wei Liu
     [not found]   ` <20140515141322.GI1117@zion.uk.xensource.com>
2014-05-15 14:47     ` Zoltan Kiss
     [not found]     ` <5374D38A.2070709@citrix.com>
2014-05-15 15:30       ` Wei Liu
     [not found]       ` <20140515153051.GJ1117@zion.uk.xensource.com>
2014-05-15 16:34         ` Zoltan Kiss
     [not found]         ` <5374EC81.1070808@citrix.com>
2014-05-15 16:53           ` Wei Liu
     [not found]           ` <20140515165358.GA10525@zion.uk.xensource.com>
2014-05-15 17:03             ` Zoltan Kiss
     [not found]             ` <5374F352.9050302@citrix.com>
2014-05-15 18:16               ` Wei Liu
2014-05-15 13:40 ` David Vrabel
     [not found] ` <5374C3EA.1080807@citrix.com>
2014-05-15 13:59   ` Wei Liu
2014-05-15 11:59 Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).