Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2016 11:40:52 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r306953 - stable/10/sys/dev/mlx5/mlx5_en
Message-ID:  <201610101140.u9ABeqIU044859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610101140.u9ABeqIU044859>