netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] xen-netback: Don't deschedule NAPI when carrier off
@ 2014-08-08 10:43 Zoltan Kiss
  2014-08-08 17:29 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Zoltan Kiss @ 2014-08-08 10:43 UTC (permalink / raw)
  To: Wei Liu, Ian Campbell; +Cc: Zoltan Kiss, netdev, linux-kernel, xen-devel

In the patch called "xen-netback: Turn off the carrier if the guest is not able
to receive" NAPI was descheduled when the carrier was set off. That's
not what most of the drivers do, and we don't have any specific reason to do so
as well, so revert that change.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
---
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index 48a55cd..12656f6 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -78,12 +78,8 @@ int xenvif_poll(struct napi_struct *napi, int budget)
 	/* This vif is rogue, we pretend we've there is nothing to do
 	 * for this vif to deschedule it from NAPI. But this interface
 	 * will be turned off in thread context later.
-	 * Also, if a guest doesn't post enough slots to receive data on one of
-	 * its queues, the carrier goes down and NAPI is descheduled here so
-	 * the guest can't send more packets until it's ready to receive.
 	 */
-	if (unlikely(queue->vif->disabled ||
-		     !netif_carrier_ok(queue->vif->dev))) {
+	if (unlikely(queue->vif->disabled )) {
 		napi_complete(napi);
 		return 0;
 	}

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

* Re: [PATCH net-next] xen-netback: Don't deschedule NAPI when carrier off
  2014-08-08 10:43 [PATCH net-next] xen-netback: Don't deschedule NAPI when carrier off Zoltan Kiss
@ 2014-08-08 17:29 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-08-08 17:29 UTC (permalink / raw)
  To: zoltan.kiss; +Cc: wei.liu2, Ian.Campbell, netdev, linux-kernel, xen-devel

From: Zoltan Kiss <zoltan.kiss@citrix.com>
Date: Fri, 8 Aug 2014 11:43:00 +0100

> +	if (unlikely(queue->vif->disabled )) {
                                         ^^

Please get rid of that space and resubmit this patch, thank you.

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

end of thread, other threads:[~2014-08-08 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 10:43 [PATCH net-next] xen-netback: Don't deschedule NAPI when carrier off Zoltan Kiss
2014-08-08 17:29 ` David Miller

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).