diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-06-25 07:05:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-25 21:03:31 -0700 |
commit | 5d3a6fca955c18b066f01233f9faeb351c0d966b (patch) | |
tree | 6cc1ea2cf88a058425d003aaa53fbcc2c228f2b2 /drivers/net/sfc/efx.c | |
parent | 604f6049ba2af86fe361d4cc320443d35b232df1 (diff) | |
download | op-kernel-dev-5d3a6fca955c18b066f01233f9faeb351c0d966b.zip op-kernel-dev-5d3a6fca955c18b066f01233f9faeb351c0d966b.tar.gz |
sfc: Move siena_nic_data::ipv6_rss_key to efx_nic::rx_hash_key
We will use this hash key for Toeplitz IPv4 hashing too.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index d68f061..2a90bf9 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -1134,6 +1134,9 @@ static int efx_probe_nic(struct efx_nic *efx) * in MSI-X interrupts. */ efx_probe_interrupts(efx); + if (efx->n_channels > 1) + get_random_bytes(&efx->rx_hash_key, sizeof(efx->rx_hash_key)); + efx_set_channels(efx); efx->net_dev->real_num_tx_queues = efx->n_tx_channels; |