summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2012-06-19 05:54:16 +0000
committerDavid S. Miller <davem@davemloft.net>2012-06-19 15:00:24 -0700
commit4bccfd17e1f77593e99d5321c48c704a0a43ab68 (patch)
tree3ee54ed3435e9eb57963c71f561b2977466a4733 /drivers/net/team
parentf88725ffb069fef0ea3d47381d33c928f4c48cba (diff)
downloadop-kernel-dev-4bccfd17e1f77593e99d5321c48c704a0a43ab68.zip
op-kernel-dev-4bccfd17e1f77593e99d5321c48c704a0a43ab68.tar.gz
team: add port_[enabled/disabled] mode callbacks
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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 eb18ac9..bc76f94 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,
port->index = team->en_port_count++;
hlist_add_head_rcu(&port->hlist,
team_port_index_hash(team, port->index));
+ if (team->ops.port_enabled)
+ team->ops.port_enabled(team, port);
}
static void __reconstruct_port_hlist(struct team *team, int rm_index)
@@ -737,6 +739,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);
hlist_del_rcu(&port->hlist);
__reconstruct_port_hlist(team, rm_index);
team->en_port_count--;
OpenPOWER on IntegriCloud