aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index eb18ac93095a..bc76f946e071 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -714,6 +714,8 @@ static void team_port_enable(struct team *team,
714 port->index = team->en_port_count++; 714 port->index = team->en_port_count++;
715 hlist_add_head_rcu(&port->hlist, 715 hlist_add_head_rcu(&port->hlist,
716 team_port_index_hash(team, port->index)); 716 team_port_index_hash(team, port->index));
717 if (team->ops.port_enabled)
718 team->ops.port_enabled(team, port);
717} 719}
718 720
719static void __reconstruct_port_hlist(struct team *team, int rm_index) 721static void __reconstruct_port_hlist(struct team *team, int rm_index)
@@ -737,6 +739,8 @@ static void team_port_disable(struct team *team,
737 739
738 if (!team_port_enabled(port)) 740 if (!team_port_enabled(port))
739 return; 741 return;
742 if (team->ops.port_disabled)
743 team->ops.port_disabled(team, port);
740 hlist_del_rcu(&port->hlist); 744 hlist_del_rcu(&port->hlist);
741 __reconstruct_port_hlist(team, rm_index); 745 __reconstruct_port_hlist(team, rm_index);
742 team->en_port_count--; 746 team->en_port_count--;