]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdc6ed0c1091f2bf348f0a4bd4ee1df4862af94d
tree385e3f2b62ddde23679b2cdde86dc9f7a38daa82
parentff2d940ded6368d28302ecdbf4830aea06af795a
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