From owner-svn-src-head@FreeBSD.ORG Sun Sep 28 07:43:39 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38AD85D9; Sun, 28 Sep 2014 07:43:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25C42F4C; Sun, 28 Sep 2014 07:43:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8S7hdB9077483; Sun, 28 Sep 2014 07:43:39 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8S7hdXs077482; Sun, 28 Sep 2014 07:43:39 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201409280743.s8S7hdXs077482@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Sun, 28 Sep 2014 07:43:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r272242 - head/sys/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2014 07:43:39 -0000 Author: glebius Date: Sun Sep 28 07:43:38 2014 New Revision: 272242 URL: http://svnweb.freebsd.org/changeset/base/272242 Log: Convert to if_inc_counter() last remnantes of bare access to struct ifnet counters. Modified: head/sys/net/if_lagg.c Modified: head/sys/net/if_lagg.c ============================================================================== --- head/sys/net/if_lagg.c Sun Sep 28 07:40:26 2014 (r272241) +++ head/sys/net/if_lagg.c Sun Sep 28 07:43:38 2014 (r272242) @@ -1485,7 +1485,7 @@ lagg_transmit(struct ifnet *ifp, struct if (sc->sc_proto == LAGG_PROTO_NONE || sc->sc_count == 0) { LAGG_RUNLOCK(sc, &tracker); m_freem(m); - ifp->if_oerrors++; + if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); return (ENXIO); } @@ -1495,7 +1495,7 @@ lagg_transmit(struct ifnet *ifp, struct LAGG_RUNLOCK(sc, &tracker); if (error != 0) - ifp->if_oerrors++; + if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); return (error); }