From owner-freebsd-net@FreeBSD.ORG Thu Aug 20 16:53:59 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89DF7106564A for ; Thu, 20 Aug 2009 16:53:59 +0000 (UTC) (envelope-from manishv@lineratesystems.com) Received: from mail-vw0-f180.google.com (mail-vw0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 4D3808FC62 for ; Thu, 20 Aug 2009 16:53:58 +0000 (UTC) Received: by vws10 with SMTP id 10so40149vws.7 for ; Thu, 20 Aug 2009 09:53:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.16.146 with SMTP id o18mr3171vca.70.1250787238201; Thu, 20 Aug 2009 09:53:58 -0700 (PDT) In-Reply-To: <435336.24858.qm@web63908.mail.re1.yahoo.com> References: <5bc218350908191146j2a22f8dcrdecb0b67eedce5c2@mail.gmail.com> <435336.24858.qm@web63908.mail.re1.yahoo.com> Date: Thu, 20 Aug 2009 10:53:58 -0600 Message-ID: <5bc218350908200953p630d99c6u1538999b308c55f9@mail.gmail.com> From: Manish Vachharajani To: Barney Cordoba Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: Dropped vs. missed packets in the ixgbe driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2009 16:53:59 -0000 Oh whoops, sorry didn't see that. So the plot thickens. Why don't these errors show up in the netstat output I forwarded originally? Ierrs was 0 but the dmesg output clearly shows missed packets. Any thoughts on what is going on? Looking at the code, missed_rx should certainly get counted in the ierrors field as you said. Is the Ierrs in the netstat output some other counter? If so, how do I get the if_ierrors variable from the command line? Manish On Thu, Aug 20, 2009 at 6:49 AM, Barney Cordoba w= rote: > > > --- On Wed, 8/19/09, Manish Vachharajani wr= ote: > >> From: Manish Vachharajani >> Subject: Re: Dropped vs. missed packets in the ixgbe driver >> To: "Barney Cordoba" >> Cc: freebsd-net@freebsd.org >> Date: Wednesday, August 19, 2009, 2:46 PM >> Agreed, the errors are reported but >> missed packets are not.=A0 The >> question is, is the correct fix to just add stats.mpc[0] to >> if_ierrors >> in that line or to add it to if_iqdrops.=A0 The fix is >> easy once we >> agree on what the correct behavior is. >> >> Manish >> >> > Barney wrote: >> > >> > if you look in ixgbe_update_stats_counters at the >> bottom: >> > >> > =A0 =A0 =A0 =A0ifp->if_ierrors =3D missed_rx + >> adapter->stats.crcerrs + >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0adapter->stats.rlec; >> > >> > the errors are added in. >> > >> > BC > > Huh? missed_rx are the missed packets. So they are counted. > > BC > > > > > --=20 Manish Vachharajani Founder LineRate Systems manishv@lineratesystems.com (609)635-9531 M