Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2016 16:35:52 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306453 - head/sys/dev/mlx5/mlx5_en
Message-ID:  <201609291635.u8TGZqRs083301@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Sep 29 16:35:52 2016
New Revision: 306453
URL: https://svnweb.freebsd.org/changeset/base/306453

Log:
  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

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Thu Sep 29 16:29:49 2016	(r306452)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Thu Sep 29 16:35:52 2016	(r306453)
@@ -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);



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