svn commit: r309666 - head/sys/dev/cxgbe/common

Navdeep Parhar np at FreeBSD.org
Wed Dec 7 04:23:10 UTC 2016


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? */


More information about the svn-src-all mailing list