sfxge(4): treat EFX_LINK_UNKOWN as link down
It is safer to consider EFX_LINK_UNKNOWN as link down. link_mode is set to EFX_LINK_UNKNOWN on port stop and fini. Reviewed by: philip Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D9060
This commit is contained in:
parent
f788eb2dd6
commit
1eec14756f
@ -326,7 +326,9 @@ struct sfxge_softc {
|
||||
#endif
|
||||
};
|
||||
|
||||
#define SFXGE_LINK_UP(sc) ((sc)->port.link_mode != EFX_LINK_DOWN)
|
||||
#define SFXGE_LINK_UP(sc) \
|
||||
((sc)->port.link_mode != EFX_LINK_DOWN && \
|
||||
(sc)->port.link_mode != EFX_LINK_UNKNOWN)
|
||||
#define SFXGE_RUNNING(sc) ((sc)->ifnet->if_drv_flags & IFF_DRV_RUNNING)
|
||||
|
||||
#define SFXGE_PARAM(_name) "hw.sfxge." #_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user