net: aquantia: fix initialization of RSS table
authorDmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Fri, 7 Dec 2018 14:00:17 +0000 (14:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:49:09 +0000 (12:49 -0800)
commita8c69ca79217c8f1d070e470066cc24d8f866d6e
treea2d9e8c838e92bb8c2a27ef6735672b9185191d4
parent71a963cfc50b0309ca3192c7258569e0d5477ab0
net: aquantia: fix initialization of RSS table

Now RSS indirection table is initialized before setting up the number of
hw queues, consequently the table may be filled by non existing queues.
This patch moves the initialization when the number of hw queues is
known.

Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c