svn commit: r306952 - stable/11/sys/dev/mlx5/mlx5_en

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


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

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>

Modified:
  stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon Oct 10 11:36:43 2016	(r306951)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon Oct 10 11:38:55 2016	(r306952)
@@ -2903,6 +2903,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 mailing list