Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2016 16:36:32 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306454 - head/sys/ofed/drivers/net/mlx4
Message-ID:  <201609291636.u8TGaWXk083370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Sep 29 16:36:32 2016
New Revision: 306454
URL: https://svnweb.freebsd.org/changeset/base/306454

Log:
  Set hardware stats flag to avoid double counting the number of incoming bytes.
  
  Found by:	Ben RUBSON <ben.rubson@gmail.com>
  Sponsored by:	Mellanox Technologies
  MFC after:	1 week

Modified:
  head/sys/ofed/drivers/net/mlx4/en_netdev.c

Modified: head/sys/ofed/drivers/net/mlx4/en_netdev.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/en_netdev.c	Thu Sep 29 16:35:52 2016	(r306453)
+++ head/sys/ofed/drivers/net/mlx4/en_netdev.c	Thu Sep 29 16:36:32 2016	(r306454)
@@ -2165,6 +2165,7 @@ int mlx4_en_init_netdev(struct mlx4_en_d
 	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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609291636.u8TGaWXk083370>