aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-09-29 16:36:32 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-09-29 16:36:32 +0000
commit499b089076588fc488a9dbae4a439437563c0d74 (patch)
tree486cf9d81f610c6b5e8ea9f85f37160922a3a1e4 /sys/ofed
parent478c1a99329bc79173da3bd652016372eadd0b9b (diff)
downloadsrc-499b089076588fc488a9dbae4a439437563c0d74.tar.gz
src-499b089076588fc488a9dbae4a439437563c0d74.zip
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
Notes
Notes: svn path=/head/; revision=306454
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/drivers/net/mlx4/en_netdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ofed/drivers/net/mlx4/en_netdev.c b/sys/ofed/drivers/net/mlx4/en_netdev.c
index 896b782a9d44..26a0c6ce7336 100644
--- a/sys/ofed/drivers/net/mlx4/en_netdev.c
+++ b/sys/ofed/drivers/net/mlx4/en_netdev.c
@@ -2165,6 +2165,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
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;