]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: team: Rename port_disabled team mode op to port_tx_disabled
authorMarc Harvey <marcharvey@google.com>
Thu, 9 Apr 2026 02:59:25 +0000 (02:59 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 13 Apr 2026 13:09:48 +0000 (15:09 +0200)
This team mode op is only used by the load balance mode, and it only
uses it in the tx path.

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-3-f47e7589685d@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/team/team_core.c
drivers/net/team/team_mode_loadbalance.c
include/linux/if_team.h

index e54bd21bd068f7463947c06ca8a737e94f0ebb90..2ce31999c99fa99f73fb87b00214397be3d494f4 100644 (file)
@@ -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);
index 684954c2a8de11eea03581766080e03e68c8dc1f..840f409d250bafbaac50629ea919480d90d26e55 100644 (file)
@@ -655,7 +655,7 @@ static void lb_port_leave(struct team *team, struct team_port *port)
        free_percpu(lb_port_priv->pcpu_stats);
 }
 
-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 = {
        .exit                   = lb_exit,
        .port_enter             = lb_port_enter,
        .port_leave             = lb_port_leave,
-       .port_disabled          = lb_port_disabled,
+       .port_tx_disabled       = lb_port_tx_disabled,
        .receive                = lb_receive,
        .transmit               = lb_transmit,
 };
index a761f5282bcf3ae4f2b19812d5018d534eaedca5..740cb3100dfc21155bc63cb23fff2e40e84b81d3 100644 (file)
@@ -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);
 };
 
 extern int team_modeop_port_enter(struct team *team, struct team_port *port);