]> Pileus Git - ~andy/linux/blobdiff - drivers/net/team/team_mode_roundrobin.c
Merge branch 'x86/mce' into x86/ras
[~andy/linux] / drivers / net / team / team_mode_roundrobin.c
index 472623f8ce3d1c3cb20efe4403e50341b6cbc86e..53665850b59e280c171155690848ca5b5fcbb814 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);
        if (unlikely(!port))
                goto drop;