FreeBSD Bugzilla – Attachment 192505 Details for
Bug 221317
ifconfig down/up issue after ixgbe driver update in r320897
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Additional debugging in ixgbe_stop()
ixgbe-stopdebug.patch (text/plain), 1.26 KB, created by
Stephen Hurd
on 2018-04-13 20:55:26 UTC
(
hide
)
Description:
Additional debugging in ixgbe_stop()
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2018-04-13 20:55:26 UTC
Size:
1.26 KB
patch
obsolete
>Index: sys/dev/ixgbe/if_ix.c >=================================================================== >--- sys/dev/ixgbe/if_ix.c (revision 332481) >+++ sys/dev/ixgbe/if_ix.c (working copy) >@@ -3562,6 +3562,7 @@ > struct ifnet *ifp; > struct adapter *adapter = arg; > struct ixgbe_hw *hw = &adapter->hw; >+ s32 err; > > ifp = adapter->ifp; > >@@ -3574,9 +3575,13 @@ > /* Let the stack know...*/ > ifp->if_drv_flags &= ~IFF_DRV_RUNNING; > >- ixgbe_reset_hw(hw); >+ err = ixgbe_reset_hw(hw); >+ if (err != IXGBE_SUCCESS) >+ device_printf(adapter->dev, "ixgbe_reset_hw() failed %d\n", err); > hw->adapter_stopped = FALSE; >- ixgbe_stop_adapter(hw); >+ err = ixgbe_stop_adapter(hw); >+ if (err != IXGBE_SUCCESS) >+ device_printf(adapter->dev, "ixgbe_stop_adapter() failed %d\n", err); > if (hw->mac.type == ixgbe_mac_82599EB) > ixgbe_stop_mac_link_on_d3_82599(hw); > /* Turn off the laser - noop with no optics */ >@@ -3587,7 +3592,9 @@ > ixgbe_update_link_status(adapter); > > /* reprogram the RAR[0] in case user changed it. */ >- ixgbe_set_rar(&adapter->hw, 0, adapter->hw.mac.addr, 0, IXGBE_RAH_AV); >+ err = ixgbe_set_rar(&adapter->hw, 0, adapter->hw.mac.addr, 0, IXGBE_RAH_AV); >+ if (err != IXGBE_SUCCESS) >+ device_printf(adapter->dev, "ixgbe_set_rar() failed %d\n", err); > > return; > } /* ixgbe_stop */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221317
:
191979
|
192502
| 192505