svn commit: r364305 - head/sys/net
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Aug 17 13:51:25 UTC 2020
Author: bz
Date: Mon Aug 17 13:51:25 2020
New Revision: 364305
URL: https://svnweb.freebsd.org/changeset/base/364305
Log:
For consistency and to avoid any problems getting past the 31bit
boundry change the last two IF_Mbps(2500) and additionally one
IF_Mbps(5000) to ULL as well.
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Modified:
head/sys/net/if_media.h
Modified: head/sys/net/if_media.h
==============================================================================
--- head/sys/net/if_media.h Mon Aug 17 13:08:04 2020 (r364304)
+++ head/sys/net/if_media.h Mon Aug 17 13:51:25 2020 (r364305)
@@ -807,9 +807,9 @@ struct ifmedia_baudrate {
{ IFM_ETHER | IFM_10G_KR, IF_Gbps(10ULL) }, \
{ IFM_ETHER | IFM_10G_CR1, IF_Gbps(10ULL) }, \
{ IFM_ETHER | IFM_20G_KR2, IF_Gbps(20ULL) }, \
- { IFM_ETHER | IFM_2500_KX, IF_Mbps(2500) }, \
- { IFM_ETHER | IFM_2500_T, IF_Mbps(2500) }, \
- { IFM_ETHER | IFM_5000_T, IF_Mbps(5000) }, \
+ { IFM_ETHER | IFM_2500_KX, IF_Mbps(2500ULL) }, \
+ { IFM_ETHER | IFM_2500_T, IF_Mbps(2500ULL) }, \
+ { IFM_ETHER | IFM_5000_T, IF_Mbps(5000ULL) }, \
{ IFM_ETHER | IFM_50G_PCIE, IF_Gbps(50ULL) }, \
{ IFM_ETHER | IFM_25G_PCIE, IF_Gbps(25ULL) }, \
{ IFM_ETHER | IFM_1000_SGMII, IF_Mbps(1000) }, \
More information about the svn-src-all
mailing list