Date: Wed, 28 Sep 2016 16:01:51 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Ben RUBSON <ben.rubson@gmail.com>, FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: netstat counts input traffic twice Message-ID: <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> In-Reply-To: <94953762-4397-476D-AD61-A39914F27938@gmail.com> References: <94953762-4397-476D-AD61-A39914F27938@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------46696AE8FF0830D5F820E892
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
On 09/23/16 19:59, Ben RUBSON wrote:
> netstat -b -I mlxen1
Hi Ben,
Does the attached patch make any difference?
--HPS
--------------46696AE8FF0830D5F820E892
Content-Type: text/x-patch;
name="en_port.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="en_port.c.diff"
Index: sys/ofed/drivers/net/mlx4/en_port.c
===================================================================
--- sys/ofed/drivers/net/mlx4/en_port.c (revision 306255)
+++ sys/ofed/drivers/net/mlx4/en_port.c (working copy)
@@ -552,8 +552,6 @@
#if __FreeBSD_version >= 1100000
if (reset == 0) {
dev = mdev->pndev[port];
- if_inc_counter(dev, IFCOUNTER_IPACKETS,
- priv->pkstats.rx_packets - priv->pkstats_last.rx_packets);
if_inc_counter(dev, IFCOUNTER_OPACKETS,
priv->pkstats.tx_packets - priv->pkstats_last.tx_packets);
if_inc_counter(dev, IFCOUNTER_IBYTES,
--------------46696AE8FF0830D5F820E892--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6d052c64-2ca2-7839-c297-e764634be648>
