diff options
author | 2020-12-28 14:28:50 +0000 | |
---|---|---|
committer | 2020-12-28 14:28:50 +0000 | |
commit | 4c9d0427ac8ca0faae754cdafa5feba862604328 (patch) | |
tree | 94c32ad73ad4386d1260ae7431bf404943fc5c8a | |
parent | Sync with i386 by asserting that IPL values should be at least IPL_NONE. (diff) | |
download | wireguard-openbsd-4c9d0427ac8ca0faae754cdafa5feba862604328.tar.xz wireguard-openbsd-4c9d0427ac8ca0faae754cdafa5feba862604328.zip |
Remove unused start routine
enc(4) does not use the ifqueue API at all; IPsec packets are directly
transformed in the IP input/output routines.
enc_start() is never called (by design) so remove it for clarity.
OK mpi
-rw-r--r-- | sys/net/if_enc.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index ae020613240..4645f3af89f 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_enc.c,v 1.77 2020/07/10 13:22:22 patrick Exp $ */ +/* $OpenBSD: if_enc.c,v 1.78 2020/12/28 14:28:50 kn Exp $ */ /* * Copyright (c) 2010 Reyk Floeter <reyk@vantronix.net> @@ -44,7 +44,6 @@ void encattach(int); int enc_clone_create(struct if_clone *, int); int enc_clone_destroy(struct ifnet *); -void enc_start(struct ifnet *); int enc_output(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *); int enc_ioctl(struct ifnet *, u_long, caddr_t); @@ -85,7 +84,6 @@ enc_clone_create(struct if_clone *ifc, int unit) ifp->if_softc = sc; ifp->if_type = IFT_ENC; ifp->if_xflags = IFXF_CLONED; - ifp->if_start = enc_start; ifp->if_output = enc_output; ifp->if_ioctl = enc_ioctl; ifp->if_hdrlen = ENC_HDRLEN; @@ -159,19 +157,6 @@ enc_clone_destroy(struct ifnet *ifp) return (0); } -void -enc_start(struct ifnet *ifp) -{ - struct mbuf *m; - - for (;;) { - m = ifq_dequeue(&ifp->if_snd); - if (m == NULL) - break; - m_freem(m); - } -} - int enc_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa, struct rtentry *rt) |