ionic: tame the watchdog timer on reconfig
authorShannon Nelson <snelson@pensando.io>
Thu, 18 Jun 2020 17:29:04 +0000 (10:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:26:33 +0000 (17:26 -0700)
commitb59eabd23ee53e8c3492602722e1697f9a2f63ad
tree1615dd1fa17931db59883071be8acf52c72f9148
parentca8826095e4d4afc0ccaead27bba6e4b623a12ae
ionic: tame the watchdog timer on reconfig

Even with moving netif_tx_disable() to an earlier point when
taking down the queues for a reconfiguration, we still end
up with the occasional netdev watchdog Tx Timeout complaint.
The old method of using netif_trans_update() works fine for
queue 0, but has no effect on the remaining queues.  Using
netif_device_detach() allows us to signal to the watchdog to
ignore us for the moment.

Fixes: beead698b173 ("ionic: Add the basic NDO callbacks for netdev support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Acked-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c