From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756771Ab2DIIeM (ORCPT ); Mon, 9 Apr 2012 04:34:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48625 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755304Ab2DIIeJ (ORCPT ); Mon, 9 Apr 2012 04:34:09 -0400 Date: Mon, 9 Apr 2012 11:34:02 +0300 From: "Michael S. Tsirkin" To: Herbert Xu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Jamal Hadi Salim , Stephen Hemminger , Jason Wang , Neil Horman , Jiri Pirko , Jeff Kirsher , Eric Dumazet , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Ben Hutchings Subject: Re: [PATCH] net: orphan queued skbs if device tx can stall Message-ID: <20120409083402.GA28249@redhat.com> References: <20120408171323.GA16012@redhat.com> <20120408234951.GA15993@gondor.apana.org.au> <20120409072849.GA12014@redhat.com> <20120409073354.GA3218@gondor.apana.org.au> <20120409073953.GD12014@redhat.com> <20120409082919.GA3471@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120409082919.GA3471@gondor.apana.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 09, 2012 at 04:29:20PM +0800, Herbert Xu wrote: > On Mon, Apr 09, 2012 at 10:39:54AM +0300, Michael S. Tsirkin wrote: > > On Mon, Apr 09, 2012 at 03:33:54PM +0800, Herbert Xu wrote: > > > On Mon, Apr 09, 2012 at 10:28:49AM +0300, Michael S. Tsirkin wrote: > > > > > > > > > 1) Doesn't this break local UDP push-back? > > > > > > > > What is meant by UDP pushback here? Two tap > > > > devices communicating by UDP packets locally? > > > > This was always broken, see below. > > > > > > I mean push-back from UDP transmission to the physical NIC. > > > > > > Your patch breaks that > > > > I think there's some misunderstanding. pushback is only disabled > > for destinations that set IFF_TX_CAN_STALL. I expect that > > no physical NICs set this flag - only tun and possibly > > other userspace-controlled devices in the future. > > I'm talking about an app running in the guest transmitting UDP > to the physical NIC via virtio/vhost. This will break with your > patch. > > Cheers, Puzzled. This patch orphans skbs only if the destination device sets IFF_TX_CAN_STALL. Since the physical NIC doesn't stall forever it never sets this flag. So it seems that this patch should not affect the configuration you describe at all. Could you please clarify? What did I miss? > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt