git: ifmedia: Port SIOCGIFXMEDIA from FreeBSD
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Wed Dec 2 05:07:00 PST 2020
commit 1e1c5facd07f55b72addc63c0859729afdf87a90
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Wed Dec 2 20:58:04 2020 +0800
ifmedia: Port SIOCGIFXMEDIA from FreeBSD
- Max # of media type is 255 on DragonFly; additional bit was used.
- Description of the media is changed to ###baseXX instead of
###Base-XX; it is more consistent with what we already have.
- Fix some media types in vke(4), e.g. 1000baseT <half-duplex>
is actually never deployed anywhere.
- Use ULL consistently in bce(4) for the if_baudrate.
- Setup if_baudrate properly for re(4).
- Fix typo in mii(4).
- Handle SIOCGIFXMEDIA in re(4) (for 2500baseT) and vke(4) (for
all newly added types).
- Bump kernel version.
Summary of changes:
sbin/ifconfig/ifmedia.c | 32 ++++++--
sys/dev/netif/bce/if_bce.c | 4 +-
sys/dev/netif/mii_layer/mii_physubr.c | 2 +-
sys/dev/netif/re/if_re.c | 9 ++-
sys/dev/virtual/vkernel/net/if_vke.c | 99 ++++++++++++++++--------
sys/net/if.c | 1 +
sys/net/if_media.c | 30 ++++++--
sys/net/if_media.h | 137 ++++++++++++++++++++++++++++++----
sys/net/lagg/ieee8023ad_lacp.c | 42 +++++++++++
sys/sys/param.h | 3 +-
sys/sys/sockio.h | 2 +
11 files changed, 297 insertions(+), 64 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e1c5facd07f55b72addc63c0859729afdf87a90
--
DragonFly BSD source repository
More information about the Commits
mailing list