summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-11-16 06:23:17 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-16 15:59:13 -0500
commit7a20db379ce7baeb258631a4fd1971d18f3af422 (patch)
tree9cf4f2893e10dca71a99dd2714f8dec7196049b8
parentb9d1ab7eb42ede51ffbb6cafffd0a521b30c12e1 (diff)
downloadop-kernel-dev-7a20db379ce7baeb258631a4fd1971d18f3af422.zip
op-kernel-dev-7a20db379ce7baeb258631a4fd1971d18f3af422.tar.gz
sfc: use netdev_rss_key_fill() helper
Use netdev_rss_key_fill() helper, as it provides better support for some bonding setups. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index b49d048..2384824 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -1616,7 +1616,7 @@ static int efx_probe_nic(struct efx_nic *efx)
goto fail2;
if (efx->n_channels > 1)
- get_random_bytes(&efx->rx_hash_key, sizeof(efx->rx_hash_key));
+ netdev_rss_key_fill(&efx->rx_hash_key, sizeof(efx->rx_hash_key));
for (i = 0; i < ARRAY_SIZE(efx->rx_indir_table); i++)
efx->rx_indir_table[i] =
ethtool_rxfh_indir_default(i, efx->rss_spread);
OpenPOWER on IntegriCloud