diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-03-06 01:31:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-06 14:55:20 -0500 |
commit | acbba0d0f88e2577b9d92b61b136d13f65831a52 (patch) | |
tree | 0ca36c3c25ea9bb8e73fd64e37972adf4bffbf60 /drivers/net/team/team_mode_broadcast.c | |
parent | 6fac41157252220678b210fcb13e2c3dad7a912a (diff) | |
download | blackbird-op-linux-acbba0d0f88e2577b9d92b61b136d13f65831a52.tar.gz blackbird-op-linux-acbba0d0f88e2577b9d92b61b136d13f65831a52.zip |
team: introduce two default team_modeop functions and use them in modes
No need to duplicate code for this.
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_broadcast.c')
-rw-r--r-- | drivers/net/team/team_mode_broadcast.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/net/team/team_mode_broadcast.c b/drivers/net/team/team_mode_broadcast.c index c5db428e73fa..c366cd299c06 100644 --- a/drivers/net/team/team_mode_broadcast.c +++ b/drivers/net/team/team_mode_broadcast.c @@ -46,20 +46,10 @@ static bool bc_transmit(struct team *team, struct sk_buff *skb) return sum_ret; } -static int bc_port_enter(struct team *team, struct team_port *port) -{ - return team_port_set_team_dev_addr(port); -} - -static void bc_port_change_dev_addr(struct team *team, struct team_port *port) -{ - team_port_set_team_dev_addr(port); -} - static const struct team_mode_ops bc_mode_ops = { .transmit = bc_transmit, - .port_enter = bc_port_enter, - .port_change_dev_addr = bc_port_change_dev_addr, + .port_enter = team_modeop_port_enter, + .port_change_dev_addr = team_modeop_port_change_dev_addr, }; static const struct team_mode bc_mode = { |