From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374572; b=n15yCncJ+XMjRw09bRyyKN21IfxVFDDLJ7QwHrW8SWpV6RT9dJchYzQOAbBcbqSpRPzY AuTmc+oCfYFC24DCTxx4rZwfD2SoH5povyfZltM5C+KC7mO5kL+jA1IZv4MVfJ2InSdNK r+AyV0C0hYZv3F7V/lxVvDiw4Sr5yyLkSW+9+DGDAMGqN6k7fMwsY4ySUSCqAnJxpTxwk yJpZMnDMlf2Qxqi1DMku2N/mnLmhp4PKSIhUj+ebKYiw3r/EJ3kWj/udT1hY0mPr27E9O 8T+j/bMicj9KahUBT1ScnNh8BaZHpZ+LM7Fp7LVcai0TF+EF8C0rf4FWijW1D2pxjLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374572; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=oSELLyqv7r/1YdbzQkA8cbjclAlpWFEPwhGOo2+ajUo=; b=ty+KOrYgRIrPWUxMRuZmTu9LRVg7wcep0xVrf20BnZOsjFCDFkrXUEGvNAJrzNfm6R3M ZhVPE/PwWymLj5wXobFgR1Sc7whgX97ZC1Pw5QAKa2JbWmrGmsSkhbj6Tnt+LWA2RIA9o ANMAfvixqqZ4C6ZZma0SWrsEzLlgv19hbhDZiMBPZhw0W3/uwFmLQXu/xYvdONcMMq6Er q7us95MmFsruW3JHFfsP5gnyL9KsVNJDa/yStqqqeui51zIPLJloSNr3EfRC18GCUKNmn KSRVv6MaEEfwTLMmL20HKJAZi/gMxhcKIMT7UpZLybADpBt1g5I/tJcMH6jcStvGNKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=PyTM7uSe; arc=none smtp.remote-ip=209.85.214.199 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 082C2606A698 for ; Fri, 4 Dec 2026 08:56:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 082C2606A698 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=PyTM7uSe Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2f045e399acso5277665ad.2 for ; Fri, 04 Dec 2026 00:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796374571; x=1796979371; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oSELLyqv7r/1YdbzQkA8cbjclAlpWFEPwhGOo2+ajUo=; b=PyTM7uSef0N3uy1PAmElshCd6ovmpiO2mShbUp5piBmE6a0vQUN7s1SffwpD5zCHx+ 60qkuLtR7U3BUcySWq9iZLJlz8eOT3dF6FkmNpIPqU88QPH5prJVzL9BGuGUs9XHu6eL 6pKMYkoxDGd26qkT0VQg7VCqoyAiPsdIUt/VGxX0iD4WHLj1DAldWVzhjgeH06ZU1Dxc TJ+VJVurGRUTZDm0Wnl9pd1sCorO8mZblNfVIaXlw4oE/0N1q/U7o/RPtMH2YnK6mkKL 8x4CeAB27r9057SebTS4o4E3+BuNiTVCnyaA0W23kSy1r2v+odWX5AKlFIpLYGB+gwyT k3QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796374571; x=1796979371; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=oSELLyqv7r/1YdbzQkA8cbjclAlpWFEPwhGOo2+ajUo=; b=Ux8e1keGjt3yVK5dPlkDkeXLpstBl8WPvpeEn7YIgGTnM70zfqh0nPca3b1cTy/5BW Oj1Wzqk6qGImQc6//gFCqKQUp2nKIfViucZFbik+zHAuRKBtgD3lLkBpaeQQIZbbAYxQ 7D/jgO9eLRLOeyvl34CNE8ZnZrwTe4SRTg4ozeBo9z6ga6N+Ch/PDhBP/OdVb55DojUK tyGXYsGeuDxIR7hArE0z+6Y2co4S/pL3nf3nszQinszpaxLttN3maLHT558szK8FMFtX 9Hn2kyKvSpkGC5ZptrhNb5bCAVIQ7K7SOODONXWDq2nxWIPmmlq5jqSAuwSYGpDPg6/O Tmzg== X-Forwarded-Encrypted: i=1; AL+hErGFqa4S3lSi2t9NFHfB6s7JHHJl26e+349kIjnLe6NlKhieaWEVm5vNuOfoId2HwS8Fe05g6+A=@vger.kernel.org X-Gm-Message-State: APuU4Z9QKgEzc+YiActZZlyTUbtkka+1nKey1GawQYBn517halVwqtOJ SpYMMaIK6fWymRhOxJzl04eEBcJh06EIHZAJ4E7ZJ91yjwMJziY9394unppEWI+DePEC/Bag/W9 4NiYXcw== X-Received: from plqw23.prod.google.com ([2002:a17:902:a717:b0:2e8:1aeb:b4c9]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:d50b:b0:2e4:b112:14d with SMTP id d9443c01a7336-2f1ba225b6cmr12744085ad.54.1796374571121; Fri, 04 Dec 2026 00:56:11 -0800 (PST) Date: Fri, 4 Dec 2026 17:54:35 +0900 In-Reply-To: <20261204085551.1518105-1-kuniyu@google.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261204085551.1518105-1-kuniyu@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261204085551.1518105-6-kuniyu@google.com> Subject: [PATCH v1 net-next 05/10] tcp: Rename tcp_plb_check_rehash() to tcp_plb_check_rehash_ecn(). From: Kuniyuki Iwashima To: Eric Dumazet , Neal Cardwell , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Willem de Bruijn Cc: Simon Horman , Yuchung Cheng , Kuniyuki Iwashima , Kuniyuki Iwashima , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" The current PLB requires ECN signals. We will introduce Generic PLB, which does not use ECN. Let's rename tcp_plb_check_rehash() to tcp_plb_check_rehash_ecn(). Signed-off-by: Kuniyuki Iwashima --- include/net/tcp.h | 2 +- net/ipv4/tcp_dctcp.c | 4 ++-- net/ipv4/tcp_plb.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index bcff640c16a1..7e53293ed3c8 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -2736,7 +2736,7 @@ extern void tcp_rack_reo_timeout(struct sock *sk); #define TCP_PLB_SCALE 8 void tcp_plb_update_state(struct sock *sk, const int cong_ratio); -void tcp_plb_check_rehash(struct sock *sk); +void tcp_plb_check_rehash_ecn(struct sock *sk); void tcp_plb_update_state_upon_rto(struct sock *sk); static inline void tcp_warn_once(const struct sock *sk, bool cond, const char *str) diff --git a/net/ipv4/tcp_dctcp.c b/net/ipv4/tcp_dctcp.c index bbfff24ed5f0..37653a8765c9 100644 --- a/net/ipv4/tcp_dctcp.c +++ b/net/ipv4/tcp_dctcp.c @@ -144,7 +144,7 @@ __bpf_kfunc static void dctcp_update_alpha(struct sock *sk, u32 flags) if (delivered_ce > 0) ce_ratio = (delivered_ce << TCP_PLB_SCALE) / delivered; tcp_plb_update_state(sk, (int)ce_ratio); - tcp_plb_check_rehash(sk); + tcp_plb_check_rehash_ecn(sk); } /* alpha = (1 - g) * alpha + g * F */ @@ -208,7 +208,7 @@ __bpf_kfunc static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) __bpf_kfunc static void dctcp_cwnd_event_tx_start(struct sock *sk) { - tcp_plb_check_rehash(sk); /* Maybe rehash when inflight is 0 */ + tcp_plb_check_rehash_ecn(sk); /* Maybe rehash when inflight is 0 */ } static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr, diff --git a/net/ipv4/tcp_plb.c b/net/ipv4/tcp_plb.c index c21fcb7945c0..0006d3b1bf55 100644 --- a/net/ipv4/tcp_plb.c +++ b/net/ipv4/tcp_plb.c @@ -44,7 +44,7 @@ EXPORT_SYMBOL_GPL(tcp_plb_update_state); /* Check whether recent congestion has been persistent enough to warrant * a load balancing decision that switches the connection to another path. */ -void tcp_plb_check_rehash(struct sock *sk) +void tcp_plb_check_rehash_ecn(struct sock *sk) { bool forced_rehash = false, idle_rehash = false; struct tcp_sock *tp = tcp_sk(sk); @@ -86,7 +86,7 @@ void tcp_plb_check_rehash(struct sock *sk) WRITE_ONCE(tp->plb_rehash, tp->plb_rehash + 1); NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPPLBREHASH); } -EXPORT_SYMBOL_GPL(tcp_plb_check_rehash); +EXPORT_SYMBOL_GPL(tcp_plb_check_rehash_ecn); /* Upon RTO, disallow load balancing for a while, to avoid having load * balancing decisions switch traffic to a black-holed path that was -- 2.56.1.915.g69d5ec7298-goog