Date: Mon, 10 Oct 2016 11:38:55 +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-11@freebsd.org Subject: svn commit: r306952 - stable/11/sys/dev/mlx5/mlx5_en Message-ID: <201610101138.u9ABctto044708@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610101138.u9ABctto044708>