From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756860Ab2EHTuw (ORCPT ); Tue, 8 May 2012 15:50:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3874 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756058Ab2EHTuu (ORCPT ); Tue, 8 May 2012 15:50:50 -0400 Date: Tue, 8 May 2012 22:50:30 +0300 From: "Michael S. Tsirkin" To: Eric Dumazet 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 , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Ben Hutchings , Herbert Xu Subject: Re: [PATCH] net: orphan queued skbs if device tx can stall Message-ID: <20120508195029.GA29111@redhat.com> References: <20120408171323.GA16012@redhat.com> <1334044558.3126.5.camel@edumazet-glaptop> <20120410084151.GA27193@redhat.com> <1334048100.3126.21.camel@edumazet-glaptop> <20120410093140.GA27651@redhat.com> <1334052259.3126.68.camel@edumazet-glaptop> <20120410112459.GA28825@redhat.com> <1334058300.3126.99.camel@edumazet-glaptop> <20120410124151.GA29808@redhat.com> <1334065929.5300.40.camel@edumazet-glaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1334065929.5300.40.camel@edumazet-glaptop> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2012 at 03:52:09PM +0200, Eric Dumazet wrote: > With following patch, no more qdisc on top of tun device, I'm not sure killing qdisc is a right direction. I think tun queue is currently oversized but I also think we would benefit from a smart queue management. As it is if tun user gets delayed, stale packets accumulate in the queue and there's no way to get rid of them without ploughing through the backlog. In a sense we don't really need the queue in tun at all, the only reason we have it at all, is to make code simpler. We could thinkably move skbs from qdisc directly to userspace. -- MST