summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2024-06-09 16:25:29 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2024-06-09 16:25:29 +0000
commit844199654af7377896c9739b4edf84c0817b4ce6 (patch)
tree32e84004b98cc45674042bfbfc4a300348fddd9e /sys/net/if.h
parent3f9b3d488ee6eebbf7ef513a83334b95adba0e14 (diff)
Introduce IFCAP_VLAN_HWOFFLOAD for vio(4).
Add IFCAP_VLAN_HWOFFLOAD to signal hardware like vio(4) can handle checksum or TSO offloading with inline VLAN tags. tested by Mark Patruck, sf@ and bluhm@ ok sf@ and bluhm@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index ae50958ee5a..8552fff022c 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.216 2024/04/11 15:08:18 bluhm Exp $ */
+/* $OpenBSD: if.h,v 1.217 2024/06/09 16:25:28 jan Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -249,6 +249,7 @@ struct if_status_description {
#define IFCAP_CSUM_UDPv4 0x00000004 /* can do IPv4/UDP csum */
#define IFCAP_VLAN_MTU 0x00000010 /* VLAN-compatible MTU */
#define IFCAP_VLAN_HWTAGGING 0x00000020 /* hardware VLAN tag support */
+#define IFCAP_VLAN_HWOFFLOAD 0x00000040 /* hw offload w/ inline tag */
#define IFCAP_CSUM_TCPv6 0x00000080 /* can do IPv6/TCP checksums */
#define IFCAP_CSUM_UDPv6 0x00000100 /* can do IPv6/UDP checksums */
#define IFCAP_TSOv4 0x00001000 /* IPv4/TCP segment offload */