svn commit: r306954 - stable/11/sys/ofed/drivers/net/mlx4
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Oct 10 11:42:27 UTC 2016
Author: hselasky
Date: Mon Oct 10 11:42:25 2016
New Revision: 306954
URL: https://svnweb.freebsd.org/changeset/base/306954
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/11/sys/ofed/drivers/net/mlx4/en_netdev.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/ofed/drivers/net/mlx4/en_netdev.c
==============================================================================
--- stable/11/sys/ofed/drivers/net/mlx4/en_netdev.c Mon Oct 10 11:40:52 2016 (r306953)
+++ stable/11/sys/ofed/drivers/net/mlx4/en_netdev.c Mon Oct 10 11:42:25 2016 (r306954)
@@ -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-stable-11
mailing list