From patchwork Sun Aug 11 14:26:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TMawxqFuZyBWaeG7h3QgSG/DoG5n?= X-Patchwork-Id: 13759758 X-Patchwork-Delegate: stephen@networkplumber.org Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98247433B5 for ; Sun, 11 Aug 2024 14:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723386550; cv=none; b=nzhTP/pX7GNwbDdGHCBaCun1WWvgVpvNd4yATur7AI6ldc/gCSvGXH1uMHvfQQSMBtEofifPYxaKY2e8eRVI+0NwKHoWSd6ym/Xo6PM3lPklgdYbhBgfLGZVydlC1v9P4BOTyMgxaJhsuHre2WFAyOUGks6cxv4fahMmBblOnWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723386550; c=relaxed/simple; bh=JbMq1rZaxV68HLLM0tE/W7piEBitSV5zC7Dqhiy/BwQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WmdNCGKO9u/sI/ApakPyzuNRx2Bd/wPMuSxr2xqcKGSGN5ujvuHfVNQPXWnkzHQWXzFE3qyX/j3qnDSz+aVXgqEdH+Wl3424+fmA0GjmXt5JOto4vP/JdPfvnlOBRn8Qzvt15PsoFCoIaBuJSYBV2E1XHJP+oBjkXTT43SoSp94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=j98xGak1; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j98xGak1" Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-261112c303bso2796174fac.1 for ; Sun, 11 Aug 2024 07:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723386547; x=1723991347; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aEFhPMn3vbOQ8RJYO2JwTuZ4PB2Z0I27kZFssi0BDGk=; b=j98xGak1vZXqLdDmqTXY1m/C2EfviRNEAIeDql2fTH8SOqnt9g1a/Em/WUbY3VC4Ih duK8V0sIUM8G6CeVqT2Nfi6SV96FA5aQx87+knWcC2eZFTcuiXw/J4NrZQbXTlZcwlIA Wvh6Lm9gjIZuTRz04fqaPUrH6rPgh5x/UCmtu7Pu7+N6lHwhQd0wt7U36UQ6mxw6ZuJz tO+phF7MZbqYNTr4aexnmC4fMZQIdK8hcEnMOXHmPH5m0FQdE/RShei1Mmrnd19j1YI+ mLFaQw+GsLSfFlBfUuia8bkyVvFlYIifrlu3yNKUabPLHgSG1bn3RiZFPAMlfjr5QSVH NMEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723386547; x=1723991347; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aEFhPMn3vbOQ8RJYO2JwTuZ4PB2Z0I27kZFssi0BDGk=; b=feTs0vbQFsR5WYQXcSX+uj2lnvkaZwtCWYbSjekz7UK0BA9RM27rC9otL7TSp3BSUD bwA8w8BmQv3zANFu3R8JGJVjCaSM+dhdOdkD8PcipvtDawllytXyODgRe+cbiuIIkx4P Zu5zo7R4dUEY41j7lEwb5QXdgSpma1XpzYLrPoecywRRBI7TNb8MLEUf8TqNRJztBN+l 0O09Z7eIRL31FJGmn5y7JYSuxqOnSwS2yd1hwGL8tW3kGi6fDSUx2LpvrjOHoWugfP1+ O0rm0Oz8xLvgccLBeo3MVZYmRfFtjZa0EBEDCHhbD/wc+I5OTtn0c0RIgXuzjbuCRZwD e5Ug== X-Gm-Message-State: AOJu0Yyfz0m+YzDPeCMRYziBH0xyWQzWnx0+Yy1nkzkOi4Dl9Q1HGjAg vWkoVQRLc787hPxZ7RNGsQS8UKBpiXFoBW9tmdvsJ5+Tt1ssGjD9 X-Google-Smtp-Source: AGHT+IH8qphYN9m0dSBUCr6dU37vrfaxk6Cj5DOcA7l5eR/68fuVib7G9W7o55VWnuEbdx27bWhSZA== X-Received: by 2002:a05:6870:9346:b0:260:fc49:3e96 with SMTP id 586e51a60fabf-26c62ffbff7mr9369822fac.46.1723386547481; Sun, 11 Aug 2024 07:29:07 -0700 (PDT) Received: from laptop.. ([2402:800:62d4:b1ff:d239:57ff:fee4:71e5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-710e58735eesm2474684b3a.24.2024.08.11.07.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 07:29:07 -0700 (PDT) From: =?utf-8?b?TMawxqFuZyBWaeG7h3QgSG/DoG5n?= To: stephen@networkplumber.org Cc: netdev@vger.kernel.org, =?utf-8?b?TMawxqFuZyBWaeG7h3QgSG/DoG5n?= Subject: [PATCH iproute2] tc-cake: document 'ingress' Date: Sun, 11 Aug 2024 21:26:17 +0700 Message-ID: <20240811142756.12225-2-tcm4095@gmail.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: dsahern@gmail.com Linux kernel commit 7298de9cd7255a783ba ("sch_cake: Add ingress mode") added an ingress mode for CAKE, which can be enabled with the 'ingress' parameter. Document the changes in CAKE's behavior when ingress mode is enabled. Signed-off-by: Lương Việt Hoàng --- man/man8/tc-cake.8 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/man/man8/tc-cake.8 b/man/man8/tc-cake.8 index ced9ac78..6d77d7d2 100644 --- a/man/man8/tc-cake.8 +++ b/man/man8/tc-cake.8 @@ -541,6 +541,21 @@ This can be used to set policies in a firewall script that will override CAKE's built-in tin selection. .SH OTHER PARAMETERS +.B ingress +.br + Indicates that CAKE is running in ingress mode (i.e. running on the downlink +of a connection). This changes the shaper to also count dropped packets as data +transferred, as these will have already traversed the link before CAKE can +choose what to do with them. + + In addition, the AQM will be tuned to always keep at least two packets +queued per flow. The reason for this is that retransmits are more expensive in +ingress mode, since dropped packets have to traverse the link again; thus, +keeping a minimum number of packets queued will improve throughput in cases +where the number of active flows are so large that they saturate the link even +at their minimum window size. + +.PP .B memlimit LIMIT .br