gen_stats: Add gnet_stats_add_queue().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 16 Oct 2021 08:49:03 +0000 (10:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 11:54:41 +0000 (12:54 +0100)
commit448e163f8b9b2dab4c07c47c9e35c9116dec9489
tree7dd071c44d664e6006a83fae0c24d00a9b880ac6
parentfbf307c89eb08c51da4dd039f68c19afbcf5949d
gen_stats: Add gnet_stats_add_queue().

This function will replace __gnet_stats_copy_queue(). It reads all
arguments and adds them into the passed gnet_stats_queue argument.
In contrast to __gnet_stats_copy_queue() it also copies the qlen member.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gen_stats.h
net/core/gen_stats.c