Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2016 04:23:09 +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: r309666 - head/sys/dev/cxgbe/common
Message-ID:  <201612070423.uB74N9Ud055938@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Dec  7 04:23:08 2016
New Revision: 309666
URL: https://svnweb.freebsd.org/changeset/base/309666

Log:
  cxgbe(4): unsigned short isn't large enough to store link speed (which
  is in Mbps) for 100Gbps links.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/common/common.h

Modified: head/sys/dev/cxgbe/common/common.h
==============================================================================
--- head/sys/dev/cxgbe/common/common.h	Wed Dec  7 04:03:51 2016	(r309665)
+++ head/sys/dev/cxgbe/common/common.h	Wed Dec  7 04:23:08 2016	(r309666)
@@ -392,8 +392,8 @@ struct trace_params {
 struct link_config {
 	unsigned short supported;        /* link capabilities */
 	unsigned short advertising;      /* advertised capabilities */
-	unsigned short requested_speed;  /* speed user has requested */
-	unsigned short speed;            /* actual link speed */
+	unsigned int requested_speed;    /* speed user has requested */
+	unsigned int speed;              /* actual link speed */
 	unsigned char  requested_fc;     /* flow control user has requested */
 	unsigned char  fc;               /* actual link flow control */
 	unsigned char  autoneg;          /* autonegotiating? */



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