ionic: keep users rss hash across lif reset
authorShannon Nelson <snelson@pensando.io>
Tue, 3 Dec 2019 22:17:34 +0000 (14:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Dec 2019 00:37:37 +0000 (16:37 -0800)
commitffac2027e18f006f42630f2e01a8a9bd8dc664b5
treef24c576e0ef0d2503ddbc5560d9ed00d02425010
parent86c76c09898332143be365c702cf8d586ed4ed21
ionic: keep users rss hash across lif reset

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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c