Author: hselasky Date: Thu Sep 29 16:36:32 2016 New Revision: 306454 URL: https://svnweb.freebsd.org/changeset/base/306454
Log: Set hardware stats flag to avoid double counting the number of incoming bytes. Found by: Ben RUBSON <ben.rub...@gmail.com> Sponsored by: Mellanox Technologies MFC after: 1 week Modified: head/sys/ofed/drivers/net/mlx4/en_netdev.c Modified: head/sys/ofed/drivers/net/mlx4/en_netdev.c ============================================================================== --- head/sys/ofed/drivers/net/mlx4/en_netdev.c Thu Sep 29 16:35:52 2016 (r306453) +++ head/sys/ofed/drivers/net/mlx4/en_netdev.c Thu Sep 29 16:36:32 2016 (r306454) @@ -2165,6 +2165,7 @@ int mlx4_en_init_netdev(struct mlx4_en_d dev->if_capabilities |= IFCAP_VLAN_HWCSUM | IFCAP_VLAN_HWFILTER; dev->if_capabilities |= IFCAP_LINKSTATE | IFCAP_JUMBO_MTU; dev->if_capabilities |= IFCAP_LRO; + dev->if_capabilities |= IFCAP_HWSTATS; if (mdev->LSO_support) dev->if_capabilities |= IFCAP_TSO4 | IFCAP_TSO6 | IFCAP_VLAN_HWTSO; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"