ionic: protect vf calls from fw reset
authorShannon Nelson <snelson@pensando.io>
Tue, 12 May 2020 00:59:29 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 19:19:30 +0000 (12:19 -0700)
commita836c352291d4ad4031743a97a61f7916fe519b7
tree385e3f2b62ddde23679b2cdde86dc9f7a38daa82
parentc4e7a75a096c02035a102686e2569e7b0341a122
ionic: protect vf calls from fw reset

When going into a firmware upgrade cycle, we set the device as
not present to keep some user commands from trying to change
the driver while we're only half there.  Unfortunately, the
ndo_vf_* calls don't check netif_device_present() so we need
to add a check in the callbacks.

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