Kill unused IF_INPUT_ENQUEUE().
authormpi <mpi@openbsd.org>
Thu, 28 May 2015 11:57:33 +0000 (11:57 +0000)
committermpi <mpi@openbsd.org>
Thu, 28 May 2015 11:57:33 +0000 (11:57 +0000)
ok dlg@

sys/net/if_var.h

index c694565..52abb7e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_var.h,v 1.30 2015/05/26 11:39:07 mpi Exp $ */
+/*     $OpenBSD: if_var.h,v 1.31 2015/05/28 11:57:33 mpi Exp $ */
 /*     $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $  */
 
 /*
@@ -314,16 +314,6 @@ do {                                                                       \
        } while (!(m) && --if_dequeue_prio >= 0);                       \
 } while (/* CONSTCOND */0)
 
-#define        IF_INPUT_ENQUEUE(ifq, m)                                        \
-do {                                                                   \
-       if (IF_QFULL(ifq)) {                                            \
-               IF_DROP(ifq);                                           \
-               m_freem(m);                                             \
-               if_congestion();                                        \
-       } else                                                          \
-               IF_ENQUEUE(ifq, m);                                     \
-} while (/* CONSTCOND */0)
-
 #define        IF_PURGE(ifq)                                                   \
 do {                                                                   \
        struct mbuf *__m0;                                              \