Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net All Ethernet media more than 1000Mbps don't support ...
details: https://anonhg.NetBSD.org/src/rev/a98389f07c9c
branches: trunk
changeset: 356585:a98389f07c9c
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Oct 04 07:07:16 2017 +0000
description:
All Ethernet media more than 1000Mbps don't support half duplex.
For the convinience, ifconfig without "mediaopt fullduplex" sets IFM_FDX
automatically for those medias. Without this change, "ifconfig xxN mediaopt
10Gbase-T" (without "mediaopt fullduplex") returns EINVAL if a
driver doesn't call ifmedia_add() without IFM_FDX because ifmedia_match()
returns NULL.
diffstat:
sys/net/if_media.h | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diffs (50 lines):
diff -r c92f6f93921d -r a98389f07c9c sys/net/if_media.h
--- a/sys/net/if_media.h Wed Oct 04 06:19:47 2017 +0000
+++ b/sys/net/if_media.h Wed Oct 04 07:07:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.h,v 1.59 2017/06/08 02:27:30 msaitoh Exp $ */
+/* $NetBSD: if_media.h,v 1.60 2017/10/04 07:07:16 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -392,23 +392,23 @@
{ IFM_ETHER | IFM_1000_T, "1000BASE-T" }, \
{ IFM_ETHER | IFM_HPNA_1, "HomePNA1" }, \
{ IFM_ETHER | IFM_HPNA_1, "HPNA1" }, \
- { IFM_ETHER | IFM_2500_KX, "2500BASE-KX" }, \
- { IFM_ETHER | IFM_2500_KX, "2500baseKX" }, \
- { IFM_ETHER | IFM_10G_LR, "10GbaseLR" }, \
- { IFM_ETHER | IFM_10G_LR, "10GLR" }, \
- { IFM_ETHER | IFM_10G_LR, "10GBASE-LR" }, \
- { IFM_ETHER | IFM_10G_SR, "10GbaseSR" }, \
- { IFM_ETHER | IFM_10G_SR, "10GSR" }, \
- { IFM_ETHER | IFM_10G_SR, "10GBASE-SR" }, \
- { IFM_ETHER | IFM_10G_LRM, "10Gbase-LRM" }, \
- { IFM_ETHER | IFM_10G_TWINAX, "10Gbase-Twinax" }, \
- { IFM_ETHER | IFM_10G_TWINAX_LONG, "10Gbase-Twinax-Long" },\
- { IFM_ETHER | IFM_10G_T, "10Gbase-T" }, \
- { IFM_ETHER | IFM_10G_CX4, "10GbaseCX4" }, \
- { IFM_ETHER | IFM_10G_CX4, "10GCX4" }, \
- { IFM_ETHER | IFM_10G_CX4, "10GBASE-CX4" }, \
- { IFM_ETHER | IFM_2500_SX, "2500baseSX" }, \
- { IFM_ETHER | IFM_2500_SX, "2500SX" }, \
+ { IFM_ETHER | IFM_2500_KX | IFM_FDX, "2500BASE-KX" }, \
+ { IFM_ETHER | IFM_2500_KX | IFM_FDX, "2500baseKX" }, \
+ { IFM_ETHER | IFM_10G_LR | IFM_FDX, "10GbaseLR" }, \
+ { IFM_ETHER | IFM_10G_LR | IFM_FDX, "10GLR" }, \
+ { IFM_ETHER | IFM_10G_LR | IFM_FDX, "10GBASE-LR" }, \
+ { IFM_ETHER | IFM_10G_SR | IFM_FDX, "10GbaseSR" }, \
+ { IFM_ETHER | IFM_10G_SR | IFM_FDX, "10GSR" }, \
+ { IFM_ETHER | IFM_10G_SR | IFM_FDX, "10GBASE-SR" }, \
+ { IFM_ETHER | IFM_10G_LRM | IFM_FDX, "10Gbase-LRM" }, \
+ { IFM_ETHER | IFM_10G_TWINAX | IFM_FDX, "10Gbase-Twinax" }, \
+ { IFM_ETHER | IFM_10G_TWINAX_LONG | IFM_FDX, "10Gbase-Twinax-Long" },\
+ { IFM_ETHER | IFM_10G_T | IFM_FDX, "10Gbase-T" }, \
+ { IFM_ETHER | IFM_10G_CX4 | IFM_FDX, "10GbaseCX4" }, \
+ { IFM_ETHER | IFM_10G_CX4 | IFM_FDX, "10GCX4" }, \
+ { IFM_ETHER | IFM_10G_CX4 | IFM_FDX, "10GBASE-CX4" }, \
+ { IFM_ETHER | IFM_2500_SX | IFM_FDX, "2500baseSX" }, \
+ { IFM_ETHER | IFM_2500_SX | IFM_FDX, "2500SX" }, \
\
{ IFM_TOKEN | IFM_TOK_STP4, "DB9/4Mbit" }, \
{ IFM_TOKEN | IFM_TOK_STP4, "4STP" }, \
Home |
Main Index |
Thread Index |
Old Index