Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add ETHERCAP_VLAN_HWFILTER and ETHERCAP_EEE.
details: https://anonhg.NetBSD.org/src/rev/3aea814905f9
branches: trunk
changeset: 995403:3aea814905f9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Dec 21 04:43:17 2018 +0000
description:
Add ETHERCAP_VLAN_HWFILTER and ETHERCAP_EEE.
diffstat:
sys/net/if_ether.h | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 8762f9262022 -r 3aea814905f9 sys/net/if_ether.h
--- a/sys/net/if_ether.h Thu Dec 20 21:38:23 2018 +0000
+++ b/sys/net/if_ether.h Fri Dec 21 04:43:17 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ether.h,v 1.75 2018/06/14 08:00:24 yamaguchi Exp $ */
+/* $NetBSD: if_ether.h,v 1.76 2018/12/21 04:43:17 msaitoh Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -187,16 +187,20 @@
#endif
};
-#define ETHERCAP_VLAN_MTU 0x00000001 /* VLAN-compatible MTU */
-#define ETHERCAP_VLAN_HWTAGGING 0x00000002 /* hardware VLAN tag support */
-#define ETHERCAP_JUMBO_MTU 0x00000004 /* 9000 byte MTU supported */
-#define ETHERCAP_MASK 0x00000007
+#define ETHERCAP_VLAN_MTU 0x00000001 /* VLAN-compatible MTU */
+#define ETHERCAP_VLAN_HWTAGGING 0x00000002 /* hardware VLAN tag support */
+#define ETHERCAP_JUMBO_MTU 0x00000004 /* 9000 byte MTU supported */
+#define ETHERCAP_VLAN_HWFILTER 0x00000008 /* iface hw can filter vlan tag */
+#define ETHERCAP_EEE 0x00000010 /* Energy Efficiency Ethernet */
+#define ETHERCAP_MASK 0x0000001f
#define ECCAPBITS \
"\020" \
"\1VLAN_MTU" \
"\2VLAN_HWTAGGING" \
- "\3JUMBO_MTU"
+ "\3JUMBO_MTU" \
+ "\4VLAN_HWFILTER" \
+ "\5EEE"
/* ioctl() for Ethernet capabilities */
struct eccapreq {
Home |
Main Index |
Thread Index |
Old Index