team: remove synchronize_rcu() called during port disable
[cascardo/linux.git] / drivers / net / team / team_mode_roundrobin.c
index d268e4d..90311c7 100644 (file)
@@ -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);
        port = team_get_first_port_txable_rcu(team, port);
        if (unlikely(!port))