From patchwork Fri May 6 19:43:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peilin Ye X-Patchwork-Id: 12841555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFFA9C433EF for ; Fri, 6 May 2022 19:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391192AbiEFTre (ORCPT ); Fri, 6 May 2022 15:47:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234627AbiEFTrd (ORCPT ); Fri, 6 May 2022 15:47:33 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A46C694A0; Fri, 6 May 2022 12:43:48 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id e128so6635261qkd.7; Fri, 06 May 2022 12:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0HWmjiJkkkSZoWs+nRs4IjoAjfqyEw+awjwhSy9A+nU=; b=LdAB/oHtRm4fmxdRKGYP9Vw6X/5QF1KouuVyXRrJw5m2EwFB/8Cynlnqi9zRG0N7Dr Cn9E6ER804o//m6v34s/gvwdtIfOl1upJKdEh5Xb0mxtm6gWlWJtPyhejmirKql8wySj 3fN0XUdGr+fAww8sktOc2Ttk1ySXo5KLqrEhgKbPMQWpFZo2jXRVd//O6OQ2LsUOOIq3 MGcTd9Y1vyWOfb+1aPu03EAZ/HEz5iEf3UE2HKw7DS2LvHgxapSsw/oW/qeXKDUvA0sU kgpFPNfa09KNgJAoE/bFFOsU6TCeysvpwsYHDDkiKhbZd+dFl6NVFYhAdRLEiE+CbPlH eemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0HWmjiJkkkSZoWs+nRs4IjoAjfqyEw+awjwhSy9A+nU=; b=coYYPX0HcQjUVzavEhoRU8CF/3R4mFQMk6wZAUuShy0N4W95TSvOW7zZfzm4PNDSvI 4qss0cFaNCyKUjR790gnqQK+7nq/qj8QL43k/07bPDJdVDBlsk3J6iKh5SMaq65HXXV3 SMNlCD6g+7QxZvFZKVqwyyZJdqG7Ji39Zdjh8SpwYNdBAkWD3a8GeodO+Chd3g+hL7dG +R05Dk/Ir+hdsUhF5gUTBikDvXAHJnvM8qtJ3Zm5uyAkvf/eItjvR+nr/T5hn08Js8Ud 8/BDKFgdvskuHxbopIj0XyFHZasT+0FnBKUJ+mHy6V5SYPGlKtjfLMjMIjfmXvmDAOmq o5pw== X-Gm-Message-State: AOAM5334sBzbdqN5wKaTYa/iWelwF9zREkCI5kOoWOSwJh1QwoiPkPYn VqHJ5ej/k1FU7NfEY6e8Qg== X-Google-Smtp-Source: ABdhPJwoFze27JlE7q4bXE2Xpa8B1YayscyEUBRQegPbpZxDSohboc+vzI7NbdDGMwuglUw1fAmRTg== X-Received: by 2002:ae9:edd5:0:b0:69f:d773:5327 with SMTP id c204-20020ae9edd5000000b0069fd7735327mr3615677qkg.481.1651866227652; Fri, 06 May 2022 12:43:47 -0700 (PDT) Received: from bytedance.attlocal.net (ec2-52-72-174-210.compute-1.amazonaws.com. [52.72.174.210]) by smtp.gmail.com with ESMTPSA id p185-20020a37bfc2000000b0069fc13ce24fsm2942310qkf.128.2022.05.06.12.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 12:43:47 -0700 (PDT) From: Peilin Ye To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hideaki YOSHIFUJI , David Ahern , Jamal Hadi Salim , Cong Wang , Jiri Pirko Cc: Peilin Ye , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang , Peilin Ye Subject: [PATCH RFC v1 net-next 0/4] net: Qdisc backpressure infrastructure Date: Fri, 6 May 2022 12:43:12 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC From: Peilin Ye Hi all, Currently sockets (especially UDP ones) can drop a lot of skbs at TC egress when rate limited by shaper Qdiscs like HTB. This experimental patchset tries to improve this by introducing a backpressure mechanism, so that sockets are temporarily throttled when they "send too much". For now it takes care of TBF, HTB and CBQ, for UDP and TCP sockets. Any comments, suggestions would be much appreciated. Thanks! Contents [I] Background [II] Design Overview [III] Performance Numbers & Issues [IV] Synchronization [V] Test Setup