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
This commit is contained in:
parent
478c1a9932
commit
499b089076
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306454
@ -2165,6 +2165,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user