mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
net: snmp: remove SNMP_MIB_SENTINEL
No more user of SNMP_MIB_SENTINEL, we can remove it. Also remove snmp_get_cpu_field[64]_batch() helpers. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Link: https://patch.msgid.link/20250905165813.1470708-10-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c73d583e70
commit
20d3d26815
@ -326,18 +326,6 @@ static inline u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_o
|
||||
}
|
||||
#endif
|
||||
|
||||
#define snmp_get_cpu_field64_batch(buff64, stats_list, mib_statistic, offset) \
|
||||
{ \
|
||||
int i, c; \
|
||||
for_each_possible_cpu(c) { \
|
||||
for (i = 0; stats_list[i].name; i++) \
|
||||
buff64[i] += snmp_get_cpu_field64( \
|
||||
mib_statistic, \
|
||||
c, stats_list[i].entry, \
|
||||
offset); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define snmp_get_cpu_field64_batch_cnt(buff64, stats_list, cnt, \
|
||||
mib_statistic, offset) \
|
||||
{ \
|
||||
@ -351,17 +339,6 @@ static inline u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_o
|
||||
} \
|
||||
}
|
||||
|
||||
#define snmp_get_cpu_field_batch(buff, stats_list, mib_statistic) \
|
||||
{ \
|
||||
int i, c; \
|
||||
for_each_possible_cpu(c) { \
|
||||
for (i = 0; stats_list[i].name; i++) \
|
||||
buff[i] += snmp_get_cpu_field( \
|
||||
mib_statistic, \
|
||||
c, stats_list[i].entry); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define snmp_get_cpu_field_batch_cnt(buff, stats_list, cnt, mib_statistic) \
|
||||
{ \
|
||||
int i, c; \
|
||||
|
||||
@ -36,11 +36,6 @@ struct snmp_mib {
|
||||
.entry = _entry, \
|
||||
}
|
||||
|
||||
#define SNMP_MIB_SENTINEL { \
|
||||
.name = NULL, \
|
||||
.entry = 0, \
|
||||
}
|
||||
|
||||
/*
|
||||
* We use unsigned longs for most mibs but u64 for ipstats.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user