OSDN Git Service

net/smc: Add SMC statistics support
authorGuvenc Gulce <guvenc@linux.ibm.com>
Wed, 16 Jun 2021 14:52:55 +0000 (16:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:54:02 +0000 (12:54 -0700)
commite0e4b8fa533858532f1b9ea9c6a4660d09beb37a
treedc04b676e1642f2333f69ad513152c0b999fecaa
parentfb0a1dacf2bef929bf047c5434bfb976ac6a93e6
net/smc: Add SMC statistics support

Add the ability to collect SMC statistics information. Per-cpu
variables are used to collect the statistic information for better
performance and for reducing concurrency pitfalls. The code that is
collecting statistic data is implemented in macros to increase code
reuse and readability.

Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/Makefile
net/smc/af_smc.c
net/smc/smc_core.c
net/smc/smc_rx.c
net/smc/smc_stats.c [new file with mode: 0644]
net/smc/smc_stats.h [new file with mode: 0644]
net/smc/smc_tx.c