Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig Add "ifconfig [-]vlan-hwtagging" to enable/dis...
details: https://anonhg.NetBSD.org/src/rev/6d5499f9d30d
branches: trunk
changeset: 962244:6d5499f9d30d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jul 08 03:04:15 2019 +0000
description:
Add "ifconfig [-]vlan-hwtagging" to enable/disable VLAN hardware tagging
offload function. It's useful to see Ethernet frame's VLAN tag by
disabling with "ifconfig fooX -vlan-hwtagging" and "tcpdump -e -i fooX".
diffstat:
sbin/ifconfig/ether.c | 5 +++--
sbin/ifconfig/ifconfig.8 | 10 ++++++++--
2 files changed, 11 insertions(+), 4 deletions(-)
diffs (57 lines):
diff -r 54235f7f91e2 -r 6d5499f9d30d sbin/ifconfig/ether.c
--- a/sbin/ifconfig/ether.c Sun Jul 07 21:24:20 2019 +0000
+++ b/sbin/ifconfig/ether.c Mon Jul 08 03:04:15 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ether.c,v 1.3 2018/12/21 08:58:08 msaitoh Exp $ */
+/* $NetBSD: ether.c,v 1.4 2019/07/08 03:04:15 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ether.c,v 1.3 2018/12/21 08:58:08 msaitoh Exp $");
+__RCSID("$NetBSD: ether.c,v 1.4 2019/07/08 03:04:15 msaitoh Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -67,6 +67,7 @@
#if 0 /* notyet */
IFKW("vlan-hwfilter", ETHERCAP_VLAN_HWFILTER)
#endif
+ IFKW("vlan-hwtagging", ETHERCAP_VLAN_HWTAGGING),
IFKW("eee", ETHERCAP_EEE)
};
diff -r 54235f7f91e2 -r 6d5499f9d30d sbin/ifconfig/ifconfig.8
--- a/sbin/ifconfig/ifconfig.8 Sun Jul 07 21:24:20 2019 +0000
+++ b/sbin/ifconfig/ifconfig.8 Mon Jul 08 03:04:15 2019 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ifconfig.8,v 1.118 2019/07/04 13:55:31 wiz Exp $
+.\" $NetBSD: ifconfig.8,v 1.119 2019/07/08 03:04:15 msaitoh Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94
.\"
-.Dd June 18, 2019
+.Dd July 8, 2019
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -699,6 +699,12 @@
.It Cm -tso6
Disable hardware-assisted TCP/IPv6 segmentation on interfaces that
support it.
+.It Cm vlan-hwtagging
+Enable hardware-assisted VLAN tag insertion/removal on interfaces that
+support it.
+.It Cm -vlan-hwtagging
+Disable hardware-assisted VLAN tag insertion/removal on interfaces that
+support it.
.It Cm maxupd Ar n
If the driver is a
.Xr pfsync 4
Home |
Main Index |
Thread Index |
Old Index