From: Sunil Goutham Date: Fri, 12 Aug 2016 11:21:43 +0000 (+0530) Subject: net: thunderx: Use netdev_rss_key_fill() helper X-Git-Tag: v4.9-rc1~14^2~112^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0052c92f8f84ef94210b91dd471a3dfa1f25625a;p=platform%2Fkernel%2Flinux-exynos.git net: thunderx: Use netdev_rss_key_fill() helper Use standard API to generate a random RSS hash key on every boot. Signed-off-by: Sunil Goutham Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index eb48d33..06c014e 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -366,13 +366,7 @@ static int nicvf_rss_init(struct nicvf *nic) rss->enable = true; - /* Using the HW reset value for now */ - rss->key[0] = 0xFEED0BADFEED0BADULL; - rss->key[1] = 0xFEED0BADFEED0BADULL; - rss->key[2] = 0xFEED0BADFEED0BADULL; - rss->key[3] = 0xFEED0BADFEED0BADULL; - rss->key[4] = 0xFEED0BADFEED0BADULL; - + netdev_rss_key_fill(rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); nicvf_set_rss_key(nic); rss->cfg = RSS_IP_HASH_ENA | RSS_TCP_HASH_ENA | RSS_UDP_HASH_ENA;