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

amd-xgbe: 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: Lendacky, Thomas <Thomas.Lendacky@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 960fb622
...@@ -338,7 +338,7 @@ static int xgbe_probe(struct platform_device *pdev) ...@@ -338,7 +338,7 @@ static int xgbe_probe(struct platform_device *pdev)
} }
/* Initialize RSS hash key and lookup table */ /* Initialize RSS hash key and lookup table */
get_random_bytes(pdata->rss_key, sizeof(pdata->rss_key)); netdev_rss_key_fill(pdata->rss_key, sizeof(pdata->rss_key));
for (i = 0; i < XGBE_RSS_MAX_TABLE_SIZE; i++) for (i = 0; i < XGBE_RSS_MAX_TABLE_SIZE; i++)
XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH,
......
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