svn commit: r344682 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Fri Mar 1 02:43:31 UTC 2019
Author: np
Date: Fri Mar 1 02:43:30 2019
New Revision: 344682
URL: https://svnweb.freebsd.org/changeset/base/344682
Log:
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
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Fri Mar 1 02:31:43 2019 (r344681)
+++ head/sys/dev/cxgbe/t4_main.c Fri Mar 1 02:43:30 2019 (r344682)
@@ -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)
More information about the svn-src-all
mailing list