Skip to content

Commit

Permalink
amd-xgbe: use netdev_rss_key_fill() helper
Browse files Browse the repository at this point in the history
Use netdev_rss_key_fill() helper, as it provides better support for some
bonding setups.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lendacky, Thomas <Thomas.Lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 16, 2014
1 parent 960fb62 commit b230630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/xgbe/xgbe-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static int xgbe_probe(struct platform_device *pdev)
}

/* 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++)
XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH,
Expand Down

0 comments on commit b230630

Please sign in to comment.