diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2016-12-07 04:23:08 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2016-12-07 04:23:08 +0000 |
commit | aa7792f2f67b0b1840598878259e0e9af4cb76c0 (patch) | |
tree | f931003d8e65fa13fdfdc43ed4fcedd484b1e9d2 /sys | |
parent | ba58946fd6ec375a0ddb74858801bda77d3c3d8d (diff) | |
download | src-aa7792f2f67b0b1840598878259e0e9af4cb76c0.tar.gz src-aa7792f2f67b0b1840598878259e0e9af4cb76c0.zip |
cxgbe(4): unsigned short isn't large enough to store link speed (which
is in Mbps) for 100Gbps links.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=309666
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/cxgbe/common/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cxgbe/common/common.h b/sys/dev/cxgbe/common/common.h index 790dbe54109a..f2901f5e4221 100644 --- a/sys/dev/cxgbe/common/common.h +++ b/sys/dev/cxgbe/common/common.h @@ -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? */ |