Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: team: Remove unused team_mode_op, port_enabled

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>

authored by

Marc Harvey and committed by
Paolo Abeni
014f2491 3faf0ce6

-3
-2
drivers/net/team/team_core.c
··· 944 944 team_port_index_hash(team, port->index)); 945 945 team_adjust_ops(team); 946 946 team_queue_override_port_add(team, port); 947 - if (team->ops.port_enabled) 948 - team->ops.port_enabled(team, port); 949 947 team_notify_peers(team); 950 948 team_mcast_rejoin(team); 951 949 team_lower_state_changed(port);
-1
include/linux/if_team.h
··· 121 121 int (*port_enter)(struct team *team, struct team_port *port); 122 122 void (*port_leave)(struct team *team, struct team_port *port); 123 123 void (*port_change_dev_addr)(struct team *team, struct team_port *port); 124 - void (*port_enabled)(struct team *team, struct team_port *port); 125 124 void (*port_disabled)(struct team *team, struct team_port *port); 126 125 }; 127 126