Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a20db37 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Cc: Shradha Shah <sshah@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9d1ab7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);