From owner-freebsd-net@freebsd.org Thu Sep 29 09:04:54 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 E287AC00F6F for ; Thu, 29 Sep 2016 09:04:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 A536B9D7 for ; Thu, 29 Sep 2016 09:04:54 +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 8D32C1FE022; Thu, 29 Sep 2016 11:04:45 +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> <4f5a88f4-03e7-482f-b963-ab65eeee0136@selasky.org> From: Hans Petter Selasky Message-ID: Date: Thu, 29 Sep 2016 11:09:38 +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: multipart/mixed; boundary="------------13CE4254852BBDE48A02D784" 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: Thu, 29 Sep 2016 09:04:55 -0000 This is a multi-part message in MIME format. --------------13CE4254852BBDE48A02D784 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, Can you revert the previouis patch try the new attached patch on 10.x and 11.x. It should fix the issue. --HPS --------------13CE4254852BBDE48A02D784 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_netdev.c =================================================================== --- sys/ofed/drivers/net/mlx4/en_netdev.c (revision 306255) +++ sys/ofed/drivers/net/mlx4/en_netdev.c (working copy) @@ -2165,6 +2165,7 @@ dev->if_capabilities |= IFCAP_VLAN_HWCSUM | IFCAP_VLAN_HWFILTER; dev->if_capabilities |= IFCAP_LINKSTATE | IFCAP_JUMBO_MTU; dev->if_capabilities |= IFCAP_LRO; + dev->if_capabilities |= IFCAP_HWSTATS; if (mdev->LSO_support) dev->if_capabilities |= IFCAP_TSO4 | IFCAP_TSO6 | IFCAP_VLAN_HWTSO; --------------13CE4254852BBDE48A02D784--