amd-xgbe: use netdev_rss_key_fill() helper
authorEric Dumazet <edumazet@google.com>
Sun, 16 Nov 2014 14:23:06 +0000 (06:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Nov 2014 20:59:11 +0000 (15:59 -0500)
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>
drivers/net/ethernet/amd/xgbe/xgbe-main.c

index 05fbdf96e77e2e8d18c5b8476422fea552d05c28..dbd3850b8b0a8f61053026a887e5a90f7a3aef53 100644 (file)
@@ -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,