From nobody Fri Apr 3 16:01:26 2026 Received: from mail-dl1-f74.google.com (mail-dl1-f74.google.com [74.125.82.74]) (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 381AD37C927 for ; Fri, 3 Apr 2026 07:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775200476; cv=none; b=khZYe79ANV0RbPcTylGnAlhA1wkkg8tA5FhAcE79UZkaVy7x+wyxyop1WXMP1HiS8Cc5l85wyNNQFViVXW0hFeyE+Qe7yPKPNPUNnr5PalTEKF3HMXUrhjCJwUj7jPPBhiN6auClGmhHZUGln8txCd1oQRjBc9o5XoUdxAthZy8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775200476; c=relaxed/simple; bh=/N3Ja4dG8+jpoPt6AyAOHBDaHZGDjq1at+rTrxPopSQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=iwDWFt3ABcRVhHu2v5MoGzEBy8mxtla/KMPB0SVk4oxxQJZPxvkiahEn0ejTrdlhHCSiIe8gkL9tx+onRcx0gn4G3HUkLTFrkZdz62I/FcS/BtuPZwwAzbHib43jMzuNnTGnXoTf1FUsR6xo+2PVc/LFXHA4mwCyMfn/VuvcbJM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--marcharvey.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=j4g99Lkd; arc=none smtp.client-ip=74.125.82.74 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--marcharvey.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="j4g99Lkd" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-12737f276a2so2536166c88.1 for ; Fri, 03 Apr 2026 00:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775200474; x=1775805274; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/oRMa+U4zWiyNm2ajh9HytcVZ9+GoADzxNsQhgJNjBI=; b=j4g99LkdW4vMmUjAsT3fHAIWFmbEtnRYFdscXqh1SneuBW3dlJN3GF2VHeyP3k6gW2 kEFt86KSwn6dFpzBHYOo9LYlrzqyn/SD0BMVUDKm+GI9w7aQZGyvYSp9Cwr/6Y97QczK hiEOHEhQAw2TIKSWG1bUAkWpFmveueEzk3psoLDsFUlOzepPtT5TVRvbL5VYGJTl/A3o K3GzxWEHR0s/wA3tZIbNJyiMYdsRm6hZHhH0XtB1sWk3nbbaCG9Sa6BTKCobZN4RImyv bqbic2FgTWnujgIF6L4mG+sdIrkSi+b34lyCZPc8tLYo9fxt/dVaYUhk0wR+3GZeNesf cZbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775200474; x=1775805274; h=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; bh=/oRMa+U4zWiyNm2ajh9HytcVZ9+GoADzxNsQhgJNjBI=; b=iC440c4KeB04KaJx34YhTbI+B0XNmb/XUGphKnc2iwmgG/42KurmmS22zqCQhB8Hyu MnO5g0kOMYfDwCLlVOixDCBG4bb/KmBB4bhxF0DXwUYzih4ziItCVlCTyuLb+Bh1dsgX 7+44gAs0+Cu9EWD7kKoe7/VSZTVQpFrbT+t8fNW8Doh7iGKFGwo6bU3SAhHGqV+ZC2yx MKDmAcSWkhn8gHkVhv5vZ1dJbBBpQ9MwHUyedaQxNPXc7Rv8XI/oeP7YGFVpsTeC+rux 0qPoXZ4a1HcWi1DtUS2ileTh/XhIOavA9eq/lnZRzZcdVRGeBcJNA1osPEJa6Uf70rtg jsqA== X-Forwarded-Encrypted: i=1; AJvYcCVkM/LdzPzjLcZG84x349UuqeXGOYbHNwh6bLFNPuxdDU7WrCI/evAQUpFnUtr8ZDJ/YWl7oE4VmHYkETY=@vger.kernel.org X-Gm-Message-State: AOJu0YwGVGl05H2bo3eFNL0csYuSz4rzmdStS1tQILg/WKmv/HyCF6Te vhXbPW0Qeky+cjYgFbtGLDV5g/JNYlPABLhDhA4m/TVUkI7wg3XcKuMpLqm7/ncPFVrIEEGV7Uu VSDwAElg58pVxv4X/n79FEw== X-Received: from dlcio26.prod.google.com ([2002:a05:7023:c01a:b0:128:bbbe:13df]) (user=marcharvey job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7023:b0c:b0:119:e56b:98a4 with SMTP id a92af1059eb24-12bfb700b66mr954561c88.11.1775200474159; Fri, 03 Apr 2026 00:14:34 -0700 (PDT) Date: Fri, 03 Apr 2026 07:14:24 +0000 In-Reply-To: <20260403-teaming-driver-internal-v4-0-d3032f33ca25@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260403-teaming-driver-internal-v4-0-d3032f33ca25@google.com> X-Developer-Key: i=marcharvey@google.com; a=ed25519; pk=OzOeciadbfF5Bug/4/hyEAwfrruSY4tn0Q0LocyYUL0= X-Developer-Signature: v=1; a=ed25519-sha256; t=1775200467; l=2585; i=marcharvey@google.com; s=20260401; h=from:subject:message-id; bh=/N3Ja4dG8+jpoPt6AyAOHBDaHZGDjq1at+rTrxPopSQ=; b=HHr4OYKRZ3b9aY/0kw0j+0+dy3qCGxeh/d9NEuDX6U8rTwBUfqCDbTi1xEgr7R9xcYz7GuBwK MGZ4WUfQsfGDXNPwfAC+u/mZi5GvXYzxuP09k+eEpbRt7vDg57RY7TM X-Mailer: b4 0.14.3 Message-ID: <20260403-teaming-driver-internal-v4-3-d3032f33ca25@google.com> Subject: [PATCH net-next v4 03/10] net: team: Rename port_disabled team mode op to port_tx_disabled From: Marc Harvey To: Jiri Pirko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Simon Horman Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Marc Harvey Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This team mode op is only used by the load balance mode, and it only uses it in the tx path. Signed-off-by: Marc Harvey --- Changes in v4: - None Changes in v3: - None Changes in v2: - None --- drivers/net/team/team_core.c | 4 ++-- drivers/net/team/team_mode_loadbalance.c | 4 ++-- include/linux/if_team.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/team/team_core.c b/drivers/net/team/team_core.c index e54bd21bd068..2ce31999c99f 100644 --- a/drivers/net/team/team_core.c +++ b/drivers/net/team/team_core.c @@ -968,8 +968,8 @@ static void team_port_disable(struct team *team, { if (!team_port_enabled(port)) return; - if (team->ops.port_disabled) - team->ops.port_disabled(team, port); + if (team->ops.port_tx_disabled) + team->ops.port_tx_disabled(team, port); hlist_del_rcu(&port->hlist); __reconstruct_port_hlist(team, port->index); WRITE_ONCE(port->index, -1); diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/te= am_mode_loadbalance.c index 684954c2a8de..840f409d250b 100644 --- a/drivers/net/team/team_mode_loadbalance.c +++ b/drivers/net/team/team_mode_loadbalance.c @@ -655,7 +655,7 @@ static void lb_port_leave(struct team *team, struct tea= m_port *port) free_percpu(lb_port_priv->pcpu_stats); } =20 -static void lb_port_disabled(struct team *team, struct team_port *port) +static void lb_port_tx_disabled(struct team *team, struct team_port *port) { lb_tx_hash_to_port_mapping_null_port(team, port); } @@ -665,7 +665,7 @@ static const struct team_mode_ops lb_mode_ops =3D { .exit =3D lb_exit, .port_enter =3D lb_port_enter, .port_leave =3D lb_port_leave, - .port_disabled =3D lb_port_disabled, + .port_tx_disabled =3D lb_port_tx_disabled, .receive =3D lb_receive, .transmit =3D lb_transmit, }; diff --git a/include/linux/if_team.h b/include/linux/if_team.h index a761f5282bcf..740cb3100dfc 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h @@ -121,7 +121,7 @@ struct team_mode_ops { int (*port_enter)(struct team *team, struct team_port *port); void (*port_leave)(struct team *team, struct team_port *port); void (*port_change_dev_addr)(struct team *team, struct team_port *port); - void (*port_disabled)(struct team *team, struct team_port *port); + void (*port_tx_disabled)(struct team *team, struct team_port *port); }; =20 extern int team_modeop_port_enter(struct team *team, struct team_port *por= t); --=20 2.53.0.1185.g05d4b7b318-goog