team: allow to enable/disable ports
authorJiri Pirko <jpirko@redhat.com>
Fri, 20 Apr 2012 04:42:05 +0000 (04:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 20:26:33 +0000 (16:26 -0400)
commit19a0b58e506b06fd41659d8734bba6a3e87980f4
treef9844eaf9d1471c6fcd98c850b1ed6cd57f2bce3
parent4c78bb845bd2aaf1f7136e75314c7d034cfd120f
team: allow to enable/disable ports

This patch changes content of hashlist (used to get port struct by
computed index (0...en_port_count-1)). Now the hash list contains only
enabled ports so userspace will be able to say what ports can be used
for tx/rx. This becomes handy when userspace will need to disable ports
which does not belong to active aggregator. By default, newly added port
is enabled.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
drivers/net/team/team_mode_loadbalance.c
drivers/net/team/team_mode_roundrobin.c
include/linux/if_team.h