ionic: keep users rss hash across lif reset
authorShannon Nelson <snelson@pensando.io>
Tue, 3 Dec 2019 22:17:34 +0000 (14:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 15:09:12 +0000 (16:09 +0100)
commitdd561233e068044b7b2203fd55cb1337459ff1f8
tree7307f482bd6a9c90d9f4e3670f5e6ffe1b5c57ef
parent9bd01a33c780a4f10a2e36ecf42dcab9f6b01aa5
ionic: keep users rss hash across lif reset

[ Upstream commit ffac2027e18f006f42630f2e01a8a9bd8dc664b5 ]

If the user has specified their own RSS hash key, don't
lose it across queue resets such as DOWN/UP, MTU change,
and number of channels change.  This is fixed by moving
the key initialization to a little earlier in the lif
creation.

Also, let's clean up the RSS config a little better on
the way down by setting it all to 0.

Fixes: aa3198819bea ("ionic: Add RSS support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c