summaryrefslogtreecommitdiffstats
path: root/drivers/net/team/team.c
diff options
context:
space:
mode:
authorJiri Pirko2012-06-26 08:52:46 +0200
committerDavid S. Miller2012-06-27 06:09:39 +0200
commit52a4fd77808662a16cd17ad3b0e1ad75e0162d8b (patch)
treecc0303069053fe0f15f4b0e0e6c652216895eb66 /drivers/net/team/team.c
parentteam: fix team_adjust_ops with regard to enabled ports (diff)
downloadkernel-qcow2-linux-52a4fd77808662a16cd17ad3b0e1ad75e0162d8b.tar.gz
kernel-qcow2-linux-52a4fd77808662a16cd17ad3b0e1ad75e0162d8b.tar.xz
kernel-qcow2-linux-52a4fd77808662a16cd17ad3b0e1ad75e0162d8b.zip
team: do not allow to map disabled ports
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team/team.c')
-rw-r--r--drivers/net/team/team.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index 6b4cf6eca238..5350eeaa22ce 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -614,8 +614,6 @@ static int team_change_mode(struct team *team, const char *kind)
* Rx path frame handler
************************/
-static bool team_port_enabled(struct team_port *port);
-
/* note: already called with rcu_read_lock */
static rx_handler_result_t team_handle_frame(struct sk_buff **pskb)
{
@@ -673,10 +671,11 @@ static bool team_port_find(const struct team *team,
return false;
}
-static bool team_port_enabled(struct team_port *port)
+bool team_port_enabled(struct team_port *port)
{
return port->index != -1;
}
+EXPORT_SYMBOL(team_port_enabled);
/*
* Enable/disable port by adding to enabled port hashlist and setting