 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next 0/2] xen-netback: Changes around carrier handling
 On 06/08/14 00:07, David Miller wrote: From: Zoltan Kiss <zoltan.kiss@xxxxxxxxxx> Date: Mon, 4 Aug 2014 16:20:56 +0100This series starts using carrier off as a way to purge packets when the guest is not able (or willing) to receive them. It is a much faster way to get rid of packets waiting for an overwhelmed guest. The first patch changes current netback code where it relies currently on netif_carrier_ok. The second turns off the carrier if the guest times out on a queue, and only turn it on again if that queue (or queues) resurrects. Signed-off-by: Zoltan Kiss <zoltan.kiss@xxxxxxxxxx> Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> David Vrabel pointed out an important question in a reply to the previous version of this series: this patch deschedule NAPI if the carrier goes down. The backend doesn't receive packets from the guest. DavidVr and others said we shouldn't do this, the guest should be able to transmit even if it's not able/willing to receive. Other drivers doesn't deschedule NAPI at carrier off as well, however the "carrier off" information comes from the hardware, not from an untrusted guest who is not posting buffers on the receive ring. I don't have any good argument why I did it the current way, other than a hunch that it feels more natural. David, do you have an opinion on that? Zoli _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |