]> git.proxmox.com Git - mirror_kronosnet.git/commit
[stats] allow knet_handle_get_stats to operate in a readlock context
authorFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 5 Feb 2020 10:04:38 +0000 (11:04 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Fri, 28 Feb 2020 05:48:34 +0000 (06:48 +0100)
commitac4cd61d17a1c9d8241ebd80aadd62b69e50a4fb
tree796e7fb3bbd0d33b7f54d6f85ab383c184851e50
parent9c20173d05578dfaa0dd5807d555d29b8d2f1c94
[stats] allow knet_handle_get_stats to operate in a readlock context

- add global stat mutex lock to protect stats updates
- use global stat mutex lock across all the threads
- fix up some minor bugs:
  - update RX crypto stats only when crypto is enabled
  - update compress and crypto stats in a consistent fashion

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
libknet/handle.c
libknet/internals.h
libknet/threads_heartbeat.c
libknet/threads_pmtud.c
libknet/threads_rx.c
libknet/threads_tx.c