From 8e46f3111b6ca3116b69c7e02e3f4b048a994a40 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 30 Sep 2008 14:18:38 +0000 Subject: [PATCH] Do not mangle if_oerrors of the underlying interface. This counter belongs solely to the driver. We don't lose any statistics with this change, because in a error case the drop counter on the interface output queue is always incremented. Reviewed by: thompsa --- sys/net/if_lagg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index f3a586a7c76e..54c4594be322 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -1373,8 +1373,6 @@ lagg_enqueue(struct ifnet *ifp, struct mbuf *m) int error = 0; IFQ_HANDOFF(ifp, m, error); - if (error) - ifp->if_oerrors++; return (error); }