]> www.infradead.org Git - users/hch/misc.git/commit
net/smc: introduce statistics for allocated ringbufs of link group
authorWen Gu <guwen@linux.alibaba.com>
Wed, 14 Aug 2024 13:08:26 +0000 (21:08 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 Aug 2024 09:38:23 +0000 (11:38 +0200)
commitd386d59b7c1a39112ca875327339ed519df2b96c
treee2530046c766a132324e5b4b6c0da722e5b769f8
parentdca9d62a0d7684a5510645ba05960529c5066457
net/smc: introduce statistics for allocated ringbufs of link group

Currently we have the statistics on sndbuf/RMB sizes of all connections
that have ever been on the link group, namely smc_stats_memsize. However
these statistics are incremental and since the ringbufs of link group
are allowed to be reused, we cannot know the actual allocated buffers
through these. So here introduces the statistic on actual allocated
ringbufs of the link group, it will be incremented when a new ringbuf is
added into buf_list and decremented when it is deleted from buf_list.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/uapi/linux/smc.h
net/smc/smc_core.c
net/smc/smc_core.h