Skip to content

Commit 0052c92

Browse files
Sunil Gouthamdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e22e86e commit 0052c92

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,7 @@ static int nicvf_rss_init(struct nicvf *nic)
366366

367367
rss->enable = true;
368368

369-
/* Using the HW reset value for now */
370-
rss->key[0] = 0xFEED0BADFEED0BADULL;
371-
rss->key[1] = 0xFEED0BADFEED0BADULL;
372-
rss->key[2] = 0xFEED0BADFEED0BADULL;
373-
rss->key[3] = 0xFEED0BADFEED0BADULL;
374-
rss->key[4] = 0xFEED0BADFEED0BADULL;
375-
369+
netdev_rss_key_fill(rss->key, RSS_HASH_KEY_SIZE * sizeof(u64));
376370
nicvf_set_rss_key(nic);
377371

378372
rss->cfg = RSS_IP_HASH_ENA | RSS_TCP_HASH_ENA | RSS_UDP_HASH_ENA;

0 commit comments

Comments
 (0)