Commit 0fa6aa4a authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

bna: use netdev_rss_key_fill() helper

Use netdev_rss_key_fill() helper, as it provides better support for some
bonding setups.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39648356
...@@ -2054,7 +2054,7 @@ bnad_init_rx_config(struct bnad *bnad, struct bna_rx_config *rx_config) ...@@ -2054,7 +2054,7 @@ bnad_init_rx_config(struct bnad *bnad, struct bna_rx_config *rx_config)
BFI_ENET_RSS_IPV4_TCP); BFI_ENET_RSS_IPV4_TCP);
rx_config->rss_config.hash_mask = rx_config->rss_config.hash_mask =
bnad->num_rxp_per_rx - 1; bnad->num_rxp_per_rx - 1;
get_random_bytes(rx_config->rss_config.toeplitz_hash_key, netdev_rss_key_fill(rx_config->rss_config.toeplitz_hash_key,
sizeof(rx_config->rss_config.toeplitz_hash_key)); sizeof(rx_config->rss_config.toeplitz_hash_key));
} else { } else {
rx_config->rss_status = BNA_STATUS_T_DISABLED; rx_config->rss_status = BNA_STATUS_T_DISABLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment