cxgbe(4): Don't forget to report link state to the kernel if the link is

already up at attach.

Reported by:	Fabrice Bruel @ Orange Business Service
MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2019-03-01 02:43:30 +00:00
parent 238eb01b5c
commit 41dda0d9eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344682

View File

@ -5074,6 +5074,8 @@ cxgbe_init_synchronized(struct vi_info *vi)
callout_reset(&vi->tick, hz, vi_tick, vi);
else
callout_reset(&pi->tick, hz, cxgbe_tick, pi);
if (pi->link_cfg.link_ok)
t4_os_link_changed(pi);
PORT_UNLOCK(pi);
done:
if (rc != 0)