summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-09-05 16:58:13 +0000
committerJakub Kicinski <kuba@kernel.org>2025-09-08 18:06:21 -0700
commit20d3d26815441d03a9a15114729faaa54957baba (patch)
tree3f52cc0cfd573c0377da492345ef63fc0bb475a1 /include
parentc73d583e7008336b1fa53275fa3f65aaaba00e6e (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip.h23
-rw-r--r--include/net/snmp.h5
2 files changed, 0 insertions, 28 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index a1624e8db1ab..380afb691c41 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -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; \
diff --git a/include/net/snmp.h b/include/net/snmp.h
index 4cb4326dfebe..584e70742e9b 100644
--- a/include/net/snmp.h
+++ b/include/net/snmp.h
@@ -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.
*/