svn commit: r306454 - head/sys/ofed/drivers/net/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Thu Sep 29 16:36:33 UTC 2016


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 at 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;


More information about the svn-src-all mailing list