summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifvlan.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-12-17 15:44:34 +0000
committerbz <bz@FreeBSD.org>2011-12-17 15:44:34 +0000
commit0c11261ccf09ceea673b5906661079e084971ee4 (patch)
tree4b90aa26d8ececb239336c4d4da7f83d1e846b4d /sbin/ifconfig/ifvlan.c
parent64d507853c650adbe73892df9caffca3d129b8de (diff)
downloadFreeBSD-src-0c11261ccf09ceea673b5906661079e084971ee4.zip
FreeBSD-src-0c11261ccf09ceea673b5906661079e084971ee4.tar.gz
Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/ifconfig/ifvlan.c')
-rw-r--r--sbin/ifconfig/ifvlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifvlan.c b/sbin/ifconfig/ifvlan.c
index 3000585..cefcbbc 100644
--- a/sbin/ifconfig/ifvlan.c
+++ b/sbin/ifconfig/ifvlan.c
@@ -183,6 +183,8 @@ static struct cmd vlan_cmds[] = {
DEF_CMD("-vlanhwfilter", -IFCAP_VLAN_HWFILTER, setifcap),
DEF_CMD("-vlanhwtso", -IFCAP_VLAN_HWTSO, setifcap),
DEF_CMD("vlanhwtso", IFCAP_VLAN_HWTSO, setifcap),
+ DEF_CMD("vlanhwcsum", IFCAP_VLAN_HWCSUM, setifcap),
+ DEF_CMD("-vlanhwcsum", -IFCAP_VLAN_HWCSUM, setifcap),
};
static struct afswtch af_vlan = {
.af_name = "af_vlan",
OpenPOWER on IntegriCloud