From owner-freebsd-net@freebsd.org Wed Sep 28 15:55:29 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BE86C01136 for ; Wed, 28 Sep 2016 15:55:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 55D1B105B for ; Wed, 28 Sep 2016 15:55:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D3E531FE023; Wed, 28 Sep 2016 17:55:26 +0200 (CEST) Subject: Re: netstat counts input traffic twice To: Ben RUBSON , FreeBSD Net References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> From: Hans Petter Selasky Message-ID: <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> Date: Wed, 28 Sep 2016 18:00:18 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:55:29 -0000 On 09/28/16 17:48, Ben RUBSON wrote: > >> On 28 Sep 2016, at 16:01, Hans Petter Selasky wrote: >> >> On 09/23/16 19:59, Ben RUBSON wrote: >>> netstat -b -I mlxen1 >> >> Hi Ben, >> >> Does the attached patch make any difference? >> >> --HPS >> > > Hi HPS, > > # netstat -w 1 -i mlxen1 > input (Total) output > packets errs idrops bytes packets errs bytes colls > 3 0 0 156 2 0 304 0 > 13802 0 0 127953064 7091 0 368956 0 > 69634 0 0 643667952 36098 0 1877204 0 > 78299 0 0 724143932 41008 0 2132524 0 > 77700 0 0 717102432 40430 0 2102468 0 > 80672 0 0 742520072 41880 0 2177868 0 > 75676 0 0 697621964 39367 0 2047172 0 > 78923 0 0 727609020 40921 0 2128000 0 > 79346 0 0 730241416 40879 0 2125816 0 > 79342 0 0 730034956 40867 0 2125204 0 > 80737 0 0 743042220 41592 0 2162892 0 > 16795 0 0 154340716 8652 0 450096 0 > 1 0 0 52 1 0 160 0 > Hi Ben, Is this a regression issue from 10.x ? Does other network drivers exhibit the same behaviour? With your instructions I should be able to reproduce and fix this issue. --HPS