]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix tx_jumbo_packets counter in mlx5en(4).
authorhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:32:03 +0000 (10:32 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:32:03 +0000 (10:32 +0000)
commitd67cf46eeda9db09177632077fd9a949546e3f82
treecbdf499fd2dfcaab7e99375629e1a6b1515dbbce
parentaac38825f742a49c41e242662b3c1063a60d6c7a
Fix tx_jumbo_packets counter in mlx5en(4).

Instead of reading Ethernet RFC 2819 pXtoYoctets counters from
hardware which counts RX octets, count tx_stat_pXtoYoctets from
Ethernet extended counters which counts TX octets.

TX jumbo counters should be accumulated only after the PPCNT
counters were fetched from hardware with their latest value.

Submitted by: slavash@
MFC after: 3 days
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_main.c