diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-08-17 08:00:48 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-20 13:40:48 +0400 |
commit | 1d76efe1577b4323609b1bcbfafa8b731eda071a (patch) | |
tree | ddf6fddeee02ad33f304dd5479f57208245a3f88 /drivers/net/team/team_mode_roundrobin.c | |
parent | 4c6de2fedc321e17487b74547ad9f73f248faaac (diff) | |
download | linux-1d76efe1577b4323609b1bcbfafa8b731eda071a.tar.xz |
team: add support for non-ethernet devices
This is resolved by two things:
1) allow dev_addr of different length than ETH_ALEN
2) during port add, check for dev->type and change it if necessary
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team/team_mode_roundrobin.c')
-rw-r--r-- | drivers/net/team/team_mode_roundrobin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/team/team_mode_roundrobin.c b/drivers/net/team/team_mode_roundrobin.c index ad7ed0ec544c..105135aa8f05 100644 --- a/drivers/net/team/team_mode_roundrobin.c +++ b/drivers/net/team/team_mode_roundrobin.c @@ -66,18 +66,18 @@ drop: static int rr_port_enter(struct team *team, struct team_port *port) { - return team_port_set_team_mac(port); + return team_port_set_team_dev_addr(port); } -static void rr_port_change_mac(struct team *team, struct team_port *port) +static void rr_port_change_dev_addr(struct team *team, struct team_port *port) { - team_port_set_team_mac(port); + team_port_set_team_dev_addr(port); } static const struct team_mode_ops rr_mode_ops = { .transmit = rr_transmit, .port_enter = rr_port_enter, - .port_change_mac = rr_port_change_mac, + .port_change_dev_addr = rr_port_change_dev_addr, }; static const struct team_mode rr_mode = { |