From owner-freebsd-net@freebsd.org Fri Sep 23 18:51:00 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 11EEEBE78EA for ; Fri, 23 Sep 2016 18:51:00 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3A326B7 for ; Fri, 23 Sep 2016 18:50:59 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id w84so48142623wmg.1 for ; Fri, 23 Sep 2016 11:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=jBZ4sIDxrt+r/hCasvbip7yLeTV6MLpPFWnuLeygPTU=; b=KToYwVtV6XqqGtlET0OuwL08ek8PU5omejg4EUbAJWUiTchjE85OEyrCPuW6Y08moi K4pI5/ez92EolFdrftM6uQd3Gd3KI7NvYWEdfo4ZYVzqN5ZQk0tem2VN5+HV/P2qNfSB 1frJNRKs9Hwox2B0q5At0NW9CBXjVTzuZ8L9VWeHjyYt3aF7HfXQ1EaJUpNvZPaeolm/ bUdME/wpTH+4KBNdXb49XXMzEWLEE6naMj1FbE35HraeQ/R4pJi0DW1nhzFZNR/0HZLx NLLWJ2XpUwtGmuSFOP+8nY/d5LtAnpVA9cpoaM+28cUV1RyqAukQyJksWE02I6pgjEDT YZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=jBZ4sIDxrt+r/hCasvbip7yLeTV6MLpPFWnuLeygPTU=; b=k7y81/+z93C9ofwoci3VDJe/x/9DgE+dI3CnJ4B+lLXdhjKwgAdY3r0HHzzqaCy+Hs lAs8ZKVB25dfqiTeV9wn+373TemxxAvMdLEoYauCXctgrANw+Y8wFu/qLFV/Uys/kurO ujcmUX2Oq73yBTjrwNICf9bkJY3o/zh/8UURBYelHiNo/2+jJMx6R1BSeTCywn68d0Kw icKvr/BsvNslflrxDTSzOdWnSdwHJt/0JrnZwLpkqvXpca3mb5+Ou9mHDIgsEXKwdnbG GiMB1V45Rs+qC4rssNxYRx9K7kEH6QcjFb1exu5Po18AvsPBmiISzcZnMar3B/VNsJDD 68Zw== X-Gm-Message-State: AA6/9Rngw4ymyEUhU76CX00odekyfAPPuoIvG96F9yc5V5LUMsX13sZg2El+zuKqoJbhAQ== X-Received: by 10.28.35.65 with SMTP id j62mr3967160wmj.33.1474656657168; Fri, 23 Sep 2016 11:50:57 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id ab9sm8515598wjc.7.2016.09.23.11.50.56 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 11:50:56 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: <57E5782B.9050200@grosbein.net> Date: Fri, 23 Sep 2016 20:50:55 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <76C24E1F-BBF3-4F86-A879-8F9A8F7C48F2@gmail.com> References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <57E5782B.9050200@grosbein.net> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) 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: Fri, 23 Sep 2016 18:51:00 -0000 > On 23 Sep 2016, at 20:44, Eugene Grosbein wrote: >=20 > 24.09.2016 0:59, Ben RUBSON =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> Hello, >>=20 >> I found a strange issue where input traffic is counted twice, >> sometimes more. >=20 > Generally, this points to accounting bugs in the network device = driver. Thank you for your feedback Eugene. hw.mlxen1.stat.rx_bytes (the Mellanox sysctl) returns good statistics. However it does not mean there is not a bug somewhere else in the driver, you're right. I then put all the NIC info in my previous mail so that Mellanox team may help, and of course I would be glad to help.=