svn commit: r306955 - stable/10/sys/ofed/drivers/net/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Mon Oct 10 11:43:56 UTC 2016


Author: hselasky
Date: Mon Oct 10 11:43:55 2016
New Revision: 306955
URL: https://svnweb.freebsd.org/changeset/base/306955

Log:
  MFC r306454:
  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

Modified:
  stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c
==============================================================================
--- stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c	Mon Oct 10 11:42:25 2016	(r306954)
+++ stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c	Mon Oct 10 11:43:55 2016	(r306955)
@@ -2166,6 +2166,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-stable-10 mailing list