From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f202.google.com (mail-dy1-f202.google.com [74.125.82.202]) (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 6DCC137CD2F for ; Thu, 2 Apr 2026 06:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775111076; cv=none; b=CTFbvfFyvxQ5CrNHRZVmJKPZ7pRWcfQIu6qG4lwuhu4zSLleO9RMKuWHqIkDkSJXQkTK0/lr/W6Fqq6FT5o9WCOuN0OV8sWArUju1JZeBjnWT7dhVoE8nt1GHb/Kws4j8ovCkpbtpthBkGPrFo3pfyd69Pym6rrH6OqT7p01iY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775111076; c=relaxed/simple; bh=hQyAafXwfvclv1praLESWjnpnN1FJSrHoMT32xvYXEs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=IXbLIQ3wswezVrOgByBUyiADNMk4lCys7r74V0h4TOF10qXB5shjHAOQrzpQ01sVQLrtLtUgLCUPR8blExC/0q2HjI8JZGAKROX4Ihvc6+C8EI0OK+OMWCO5+8EUXn7TUUso4ZKDcf3dZxT+rWGb5VIZNScBuy26776TaPP8axk= 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=NYLBrqhr; arc=none smtp.client-ip=74.125.82.202 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="NYLBrqhr" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2ba9a744f7dso873271eec.0 for ; Wed, 01 Apr 2026 23:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775111075; x=1775715875; 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=Hn/zFHSnD52wLKA/jhKTIedusd6T1QUhMICqYQwpj2U=; b=NYLBrqhrpkKwp8pphD1JY1LXo3f6fM7IaB/bdTN/F823sJF/lzy/rwc87x3JgTzXuI kKabTrRn/OIZiATnuhXJfmwDm7KL6A7xaaKXJr5es+ma3ll4o70zeyiTHScFbJ2q95u9 lJ+SPwwoXgf3NMMzi86gzBw3mFa5WERnhCUvymeEIZcndjIWlz+buXghZfiyBqow/QI3 Un6C/PYb9iPySYWkgGXPc086G8sqJt3zJiZbkz8nx7H0YdLbZDRiT+Zyg7qgev0IPZqg ictIpwuQT621MJnQNXzUE8vQsfPFMyrk0UP31qmxpqSJYDW1hjXNV7doYaXkJtXcGdOG wbCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775111075; x=1775715875; 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=Hn/zFHSnD52wLKA/jhKTIedusd6T1QUhMICqYQwpj2U=; b=GzK7pqnLeBWLCjfo/3CSxFegA4sXuES1QHvdZXBQGTv95KIBcSQiuD9HmVEzqopwgV sCj1amfAYv5Hi59pC8Z9NrFiuluQ3j69LtwfNifUuyomCq4ZV3XZk2iXvBXalQhohp4B NZG7bNMDb1J9GjiQt6as8A+YuQq+BL7NycDPRvJdYYl6br5t9WLx9hxcxrbVGoGCIbx6 hi4/uIGk8HuW/GgvQLRB9qx5NhLHNgIFwOeMV2zOMj2mIQOiDr/B+pQG6QF8wda0mxlS x7qmGyvLQ3oMXsZB/m6vAjqO8mpSie+JwrQ9+iEWkJgF/VBMEWObm/i7VtxJppIqTAzw ts2A== X-Forwarded-Encrypted: i=1; AJvYcCWKpTyWv2L6OM26ub8M19hF5915TafHRv/Rjfy0IG68CIr54LeD6N+Qhajbz6W3v6UlHgtuyzL/EO5TaQU=@vger.kernel.org X-Gm-Message-State: AOJu0YyEjX44DGDJ+wOcaPkfMdk4Jchh/N8wOsO5zIAQTeNwjPKtL+5/ fQm7/becEQRX94dncYflNyFN8Bus+xy6XPUnWGSIsAaMQGLlT8YQaIJkSJGYj/PxhngLqbsFmAt q81oLnl2A00Fm6J0fewRtUw== X-Received: from dlae2.prod.google.com ([2002:a05:701b:2302:b0:128:cff2:6560]) (user=marcharvey job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:171c:b0:12b:ee92:a60e with SMTP id a92af1059eb24-12bee92a6a0mr566583c88.8.1775111074277; Wed, 01 Apr 2026 23:24:34 -0700 (PDT) Date: Thu, 02 Apr 2026 06:24:15 +0000 In-Reply-To: <20260402-teaming-driver-internal-v3-0-e8cfdec3b5c2@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260402-teaming-driver-internal-v3-0-e8cfdec3b5c2@google.com> X-Developer-Key: i=marcharvey@google.com; a=ed25519; pk=OzOeciadbfF5Bug/4/hyEAwfrruSY4tn0Q0LocyYUL0= X-Developer-Signature: v=1; a=ed25519-sha256; t=1775111069; l=1435; i=marcharvey@google.com; s=20260401; h=from:subject:message-id; bh=hQyAafXwfvclv1praLESWjnpnN1FJSrHoMT32xvYXEs=; b=uSJdDKf70qhFB82v+W3HK5hU8cu23biKM6MOjmheDadzn6X17KpL/XkNWi286FPSNwd48DGFW NEVSRyl3+xmDfMXh3C4AkN3M71o1QF8fZcDlPs+7Dz/8AHDWE6+1Xb7 X-Mailer: b4 0.14.3 Message-ID: <20260402-teaming-driver-internal-v3-2-e8cfdec3b5c2@google.com> Subject: [PATCH net-next v3 2/7] net: team: Remove unused team_mode_op, port_enabled 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" This team_mode_op wasn't used by any of the team modes, so remove it. Signed-off-by: Marc Harvey --- Changes in v3: - None Changes in v2: - None --- drivers/net/team/team_core.c | 2 -- include/linux/if_team.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/net/team/team_core.c b/drivers/net/team/team_core.c index becd066279a6..e54bd21bd068 100644 --- a/drivers/net/team/team_core.c +++ b/drivers/net/team/team_core.c @@ -944,8 +944,6 @@ static void team_port_enable(struct team *team, team_port_index_hash(team, port->index)); team_adjust_ops(team); team_queue_override_port_add(team, port); - if (team->ops.port_enabled) - team->ops.port_enabled(team, port); team_notify_peers(team); team_mcast_rejoin(team); team_lower_state_changed(port); diff --git a/include/linux/if_team.h b/include/linux/if_team.h index 06f4d7400c1e..a761f5282bcf 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h @@ -121,7 +121,6 @@ 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_enabled)(struct team *team, struct team_port *port); void (*port_disabled)(struct team *team, struct team_port *port); }; -- 2.53.0.1185.g05d4b7b318-goog