diff options
Diffstat (limited to 'sys/net/ifq.h')
-rw-r--r-- | sys/net/ifq.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/net/ifq.h b/sys/net/ifq.h index 664a483950e..974617e7f07 100644 --- a/sys/net/ifq.h +++ b/sys/net/ifq.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ifq.h,v 1.24 2019/03/29 04:12:55 dlg Exp $ */ +/* $OpenBSD: ifq.h,v 1.25 2019/03/29 04:21:55 dlg Exp $ */ /* * Copyright (c) 2015 David Gwynne <dlg@openbsd.org> @@ -212,8 +212,7 @@ struct ifiqueue { * == Network Driver API * * The API used by network drivers is mostly documented in the - * ifq_dequeue(9) manpage except for ifq_serialize(), - * ifq_is_serialized(), and IFQ_ASSERT_SERIALIZED(). + * ifq_dequeue(9) manpage except for ifq_serialize(). * * === ifq_serialize() * @@ -228,16 +227,6 @@ struct ifiqueue { * task and the work it represents can extend beyond the end of the * call to ifq_serialize() that dispatched it. * - * === ifq_is_serialized() - * - * This function returns whether the caller is currently within the - * ifqueue serializer context. - * - * === IFQ_ASSERT_SERIALIZED() - * - * This macro will assert that the caller is currently within the - * specified ifqueue serialiser context. - * * * = ifqueue work serialisation * @@ -419,7 +408,6 @@ unsigned int ifq_purge(struct ifqueue *); void *ifq_q_enter(struct ifqueue *, const struct ifq_ops *); void ifq_q_leave(struct ifqueue *, void *); void ifq_serialize(struct ifqueue *, struct task *); -int ifq_is_serialized(struct ifqueue *); void ifq_barrier(struct ifqueue *); #define ifq_len(_ifq) ((_ifq)->ifq_len) @@ -468,8 +456,6 @@ ifq_idx(struct ifqueue *ifq, unsigned int nifqs, const struct mbuf *m) return ((*ifq->ifq_ops->ifqop_idx)(nifqs, m)); } -#define IFQ_ASSERT_SERIALIZED(_ifq) KASSERT(ifq_is_serialized(_ifq)) - /* ifiq */ void ifiq_init(struct ifiqueue *, struct ifnet *, unsigned int); |