X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fnet%2Fteam%2Fteam_mode_roundrobin.c;h=53665850b59e280c171155690848ca5b5fcbb814;hb=0237d7f355eef4d9ab8557e1597e8c9debd6c8c2;hp=472623f8ce3d1c3cb20efe4403e50341b6cbc86e;hpb=d2b4a646717153a1a180b64d4a8464054dbd700e;p=~andy%2Flinux diff --git a/drivers/net/team/team_mode_roundrobin.c b/drivers/net/team/team_mode_roundrobin.c index 472623f8ce3..53665850b59 100644 --- a/drivers/net/team/team_mode_roundrobin.c +++ b/drivers/net/team/team_mode_roundrobin.c @@ -30,7 +30,8 @@ static bool rr_transmit(struct team *team, struct sk_buff *skb) struct team_port *port; int port_index; - port_index = rr_priv(team)->sent_packets++ % team->en_port_count; + port_index = team_num_to_port_index(team, + rr_priv(team)->sent_packets++); port = team_get_port_by_index_rcu(team, port_index); if (unlikely(!port)) goto drop;