]> Pileus Git - ~andy/linux/blobdiff - drivers/net/team/team_mode_loadbalance.c
Merge tag 'kvm-3.11-2' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[~andy/linux] / drivers / net / team / team_mode_loadbalance.c
index cdc31b5ea15eb21325b4fc1d3619288a0300e357..829a9cd2b4dac5257f2deb8eabd39c0210ffc8bc 100644 (file)
@@ -112,9 +112,8 @@ static struct team_port *lb_hash_select_tx_port(struct team *team,
                                                struct sk_buff *skb,
                                                unsigned char hash)
 {
-       int port_index;
+       int port_index = team_num_to_port_index(team, hash);
 
-       port_index = hash % team->en_port_count;
        return team_get_port_by_index_rcu(team, port_index);
 }