On Link up & down, update media types
It's possible to change the SFP module when link is down, which would change the available media types. This is part of D13358. Submitted by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com> Sponsored by: Broadcom Limited
This commit is contained in:
parent
980da9f2f0
commit
a0b660301a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327001
@ -2224,6 +2224,10 @@ bnxt_report_link(struct bnxt_softc *softc)
|
||||
link_info->last_flow_ctrl.tx = link_info->flow_ctrl.tx;
|
||||
link_info->last_flow_ctrl.rx = link_info->flow_ctrl.rx;
|
||||
link_info->last_flow_ctrl.autoneg = link_info->flow_ctrl.autoneg;
|
||||
/* update media types */
|
||||
ifmedia_removeall(softc->media);
|
||||
bnxt_add_media_types(softc);
|
||||
ifmedia_set(softc->media, IFM_ETHER | IFM_AUTO);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user