Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2019 02:43:31 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344682 - head/sys/dev/cxgbe
Message-ID:  <201903010243.x212hVSg074266@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903010243.x212hVSg074266>