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
0176ca2ed5
commit
478c1a9932
@ -2903,6 +2903,7 @@ mlx5e_create_ifp(struct mlx5_core_dev *mdev)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user