From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E00ADC10F12 for ; Wed, 17 Apr 2019 09:26:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4CB320835 for ; Wed, 17 Apr 2019 09:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731141AbfDQJ0G convert rfc822-to-8bit (ORCPT ); Wed, 17 Apr 2019 05:26:06 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37413 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfDQJ0F (ORCPT ); Wed, 17 Apr 2019 05:26:05 -0400 Received: by mail-ed1-f65.google.com with SMTP id f53so18789249ede.4 for ; Wed, 17 Apr 2019 02:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=kAlJ1TRnp64iVXKnwiKKBDLZ/BKMMFs5olzaVVrDTbs=; b=JDM7YVp/IbIFkcIp/U+Rw6UpDzzvU10+wUWV3hOvmwZNZ7UOpUhq0yAK8OQbhYTSD9 DP+9t9AyVRLYiZjOPwweM+265nqd8mPIt5dfrEP1jiXJQNI8fNL93CyUD3zutx8vxBcY /nPLjGOxMCDTYnTP8aH1plBAgyR7kLW17W0Nlqfzlkgk3H7WGhcMKUGK1h+TKVnEI7Q+ p/h8Wi3/cw2hYksw+/a1LMxRV8sPAuO2yL6hKLpRLXJZW6hj+yCyajumODpx1rmoRu4a LTZKEUDP0TsMUD9sTBukroc/xRlZAgbQCLbnruyBCS/dKOZeJi/6lDaiXz93TAY3itF+ ARAw== X-Gm-Message-State: APjAAAVewL9E8fQXCEoN86MAt3eCXvEi77GsI5G/Q15Him+Gd0GGYVef ctYkmbkUWeCYckwmmKlsNS4/Kg== X-Google-Smtp-Source: APXvYqyWNhfDt5BzBztOX+H1/vrM2+tt6TcIUfHquVr3CpZUo8AENV/RelnxECZJjizJ/sMuO7ot8g== X-Received: by 2002:a17:906:f91:: with SMTP id q17mr46082730ejj.63.1555493164142; Wed, 17 Apr 2019 02:26:04 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk (alrua-x1.vpn.toke.dk. [2a00:7660:6da:10::2]) by smtp.gmail.com with ESMTPSA id d6sm4270973edq.65.2019.04.17.02.26.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 02:26:03 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 029C21800E8; Wed, 17 Apr 2019 10:17:09 +0100 (+01) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Herbert Xu Cc: Johannes Berg , Arend Van Spriel , Felix Fietkau , linux-wireless@vger.kernel.org, Eric Dumazet , netdev@vger.kernel.org Subject: Re: [PATCH 5/5] mac80211: set NETIF_F_LLTX when using intermediate tx queues In-Reply-To: <20190417033834.ep6t7r6ttvjek5g7@gondor.apana.org.au> References: <20190416074444.pdubbh6fbibdnhi7@gondor.apana.org.au> <73b18131-2777-da5c-a6ee-9d9b3e13cd06@broadcom.com> <20190416083636.5ttvezqyhzr2worg@gondor.apana.org.au> <87ef62uwfm.fsf@toke.dk> <95f86cf69dee05a176625925657cf0df0e97b5c9.camel@sipsolutions.net> <20190416093707.dtlwcmitzqopaeaw@gondor.apana.org.au> <20190416131346.u2uolljlrd5t2jro@gondor.apana.org.au> <87wojut7f7.fsf@toke.dk> <20190417033834.ep6t7r6ttvjek5g7@gondor.apana.org.au> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 17 Apr 2019 10:17:09 +0100 Message-ID: <87tvexrnxm.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Herbert Xu writes: > On Tue, Apr 16, 2019 at 02:18:36PM +0100, Toke Høiland-Jørgensen wrote: >> >> > The congestion control happens at two levels. You are right that the >> > socket buffer acts as one limit. However, other applications may also >> > rely on the TX queue being full as the throttle (by setting a >> > sufficiently large socket buffer size). >> >> Do you happen to have an example of an application that does this that >> could be used for testing? :) > > Have a look at > > commit 6ce9e7b5fe3195d1ae6e3a0753d4ddcac5cd699e > Author: Eric Dumazet > Date: Wed Sep 2 18:05:33 2009 -0700 > > ip: Report qdisc packet drops > > You should be able to do a UDP flood while setting IP_RECVERR to > detect the packet drop due to a full queue which AFAICS will never > happen with the current mac80211 setup. Also, looking at udp.c, it seems it uses net_xmit_errno() - which means that returning NET_XMIT_CN has the same effect as NET_XMIT_SUCCESS when propagated back to userspace? Which would kinda defeat the point of going to the trouble of propagating up the return code (the mac80211 queue will never drop the most recently enqueued packet)... -Toke