svn commit: r306953 - stable/10/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Oct 10 11:40:53 UTC 2016
Author: hselasky
Date: Mon Oct 10 11:40:52 2016
New Revision: 306953
URL: https://svnweb.freebsd.org/changeset/base/306953
Log:
MFC r306453:
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/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Mon Oct 10 11:38:55 2016 (r306952)
+++ stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Mon Oct 10 11:40:52 2016 (r306953)
@@ -2909,6 +2909,7 @@ mlx5e_create_ifp(struct mlx5_core_dev *m
ifp->if_capabilities |= IFCAP_LINKSTATE | IFCAP_JUMBO_MTU;
ifp->if_capabilities |= IFCAP_LRO;
ifp->if_capabilities |= IFCAP_TSO | IFCAP_VLAN_HWTSO;
+ ifp->if_capabilities |= IFCAP_HWSTATS;
/* set TSO limits so that we don't have to drop TX packets */
ifp->if_hw_tsomax = MLX5E_MAX_TX_PAYLOAD_SIZE - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
More information about the svn-src-stable-10
mailing list