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: Rename port_disabled team mode op to port_tx_disabled

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>

authored by

Marc Harvey and committed by
Paolo Abeni
cfa477df 014f2491

+5 -5
+2 -2
drivers/net/team/team_core.c
··· 968 968 { 969 969 if (!team_port_enabled(port)) 970 970 return; 971 - if (team->ops.port_disabled) 972 - team->ops.port_disabled(team, port); 971 + if (team->ops.port_tx_disabled) 972 + team->ops.port_tx_disabled(team, port); 973 973 hlist_del_rcu(&port->hlist); 974 974 __reconstruct_port_hlist(team, port->index); 975 975 WRITE_ONCE(port->index, -1);
+2 -2
drivers/net/team/team_mode_loadbalance.c
··· 655 655 free_percpu(lb_port_priv->pcpu_stats); 656 656 } 657 657 658 - static void lb_port_disabled(struct team *team, struct team_port *port) 658 + static void lb_port_tx_disabled(struct team *team, struct team_port *port) 659 659 { 660 660 lb_tx_hash_to_port_mapping_null_port(team, port); 661 661 } ··· 665 665 .exit = lb_exit, 666 666 .port_enter = lb_port_enter, 667 667 .port_leave = lb_port_leave, 668 - .port_disabled = lb_port_disabled, 668 + .port_tx_disabled = lb_port_tx_disabled, 669 669 .receive = lb_receive, 670 670 .transmit = lb_transmit, 671 671 };
+1 -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_disabled)(struct team *team, struct team_port *port); 124 + void (*port_tx_disabled)(struct team *team, struct team_port *port); 125 125 }; 126 126 127 127 extern int team_modeop_port_enter(struct team *team, struct team_port *port);