mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 09:21:05 +00:00
ss: Make slabstat_ids local to get_slabstat()
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
95eafe438a
commit
b3535dd61d
16
misc/ss.c
16
misc/ss.c
@ -601,21 +601,19 @@ struct slabstat {
|
||||
|
||||
static struct slabstat slabstat;
|
||||
|
||||
static const char *slabstat_ids[] = {
|
||||
|
||||
"sock",
|
||||
"tcp_bind_bucket",
|
||||
"tcp_tw_bucket",
|
||||
"tcp_open_request",
|
||||
"skbuff_head_cache",
|
||||
};
|
||||
|
||||
static int get_slabstat(struct slabstat *s)
|
||||
{
|
||||
char buf[256];
|
||||
FILE *fp;
|
||||
int cnt;
|
||||
static int slabstat_valid;
|
||||
static const char * const slabstat_ids[] = {
|
||||
"sock",
|
||||
"tcp_bind_bucket",
|
||||
"tcp_tw_bucket",
|
||||
"tcp_open_request",
|
||||
"skbuff_head_cache",
|
||||
};
|
||||
|
||||
if (slabstat_valid)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user