]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: team: Remove unused team_mode_op, port_enabled
authorMarc Harvey <marcharvey@google.com>
Thu, 9 Apr 2026 02:59:24 +0000 (02:59 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 13 Apr 2026 13:09:48 +0000 (15:09 +0200)
This team_mode_op wasn't used by any of the team modes, so remove it.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Marc Harvey <marcharvey@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260409-teaming-driver-internal-v7-2-f47e7589685d@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/team/team_core.c
include/linux/if_team.h

index becd066279a622f1047000c9baec7caebf905a2b..e54bd21bd068f7463947c06ca8a737e94f0ebb90 100644 (file)
@@ -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);
index 06f4d7400c1e1425698ce6df1a40e51e7ad000fe..a761f5282bcf3ae4f2b19812d5018d534eaedca5 100644 (file)
@@ -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);
 };