aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-09-14 00:01:38 -0400
committerDavid S. Miller <davem@davemloft.net>2019-09-16 16:44:27 +0200
commit268d0895f1b9690755d91b6ced60c9d8d17a7567 (patch)
tree81af20a67cfc88cfeace602d855cc7a16376caf8 /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
parenttcp: Add snd_wnd to TCP_INFO (diff)
downloadlinux-dev-268d0895f1b9690755d91b6ced60c9d8d17a7567.tar.xz
linux-dev-268d0895f1b9690755d91b6ced60c9d8d17a7567.zip
bnxt_en: Don't proceed in .ndo_set_rx_mode() when device is not in open state.
Check the BNXT_STATE_OPEN flag instead of netif_running() in bnxt_set_rx_mode(). If the driver is going through any reset, such as firmware reset or even TX timeout, it may not be ready to set the RX mode and may crash. The new rx mode settings will be picked up when the device is opened again later. Fixes: 230d1f0de754 ("bnxt_en: Handle firmware reset.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions