summaryrefslogtreecommitdiff
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-04-19 07:38:03 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-04-19 07:38:03 +0000
commitff5b339875e7f79bf5360040db863efaa26bac4c (patch)
tree9daea2b49872193919dfb9a8cd17b9b17b492f32 /sys/net/if_var.h
parent4a139c89513bc7fb60152589c64b28b0d15bfb7d (diff)
provide factored out txhprio and rxhprio checks
l2 and l3 drivers do the same thing all the time, so reduce the chance of error by doing the checks once and making it available for drivers to call instead of rolling on their own again.
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 634c6dff9e6..9547f66462f 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.96 2019/04/16 04:04:19 dlg Exp $ */
+/* $OpenBSD: if_var.h,v 1.97 2019/04/19 07:38:02 dlg Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -387,6 +387,11 @@ int if_rxr_ioctl(struct if_rxrinfo *, const char *, u_int,
void if_counters_alloc(struct ifnet *);
void if_counters_free(struct ifnet *);
+int if_txhprio_l2_check(int);
+int if_txhprio_l3_check(int);
+int if_rxhprio_l2_check(int);
+int if_rxhprio_l3_check(int);
+
#endif /* _KERNEL */
#endif /* _NET_IF_VAR_H_ */