]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r347255:
authorhselasky <hselasky@FreeBSD.org>
Thu, 16 May 2019 17:17:12 +0000 (17:17 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 16 May 2019 17:17:12 +0000 (17:17 +0000)
commitc118e3097aa79e1438c2790a8aacd52f9072ee7c
tree5bc5ebbd8f22221a3b8f1be63bdef1556e1cb253
parentc1b013c7ca9fa146e07b489634e47af619734b0b
MFC r347255:
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@
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_main.c