forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 093a6c67005148ae32a5c9e4553491b9f5c2457b
kernel/include/net/dst_ops.h
....@@ -53,9 +53,11 @@
5353 return percpu_counter_sum_positive(&dst->pcpuc_entries);
5454 }
5555
56
+#define DST_PERCPU_COUNTER_BATCH 32
5657 static inline void dst_entries_add(struct dst_ops *dst, int val)
5758 {
58
- percpu_counter_add(&dst->pcpuc_entries, val);
59
+ percpu_counter_add_batch(&dst->pcpuc_entries, val,
60
+ DST_PERCPU_COUNTER_BATCH);
5961 }
6062
6163 static inline int dst_entries_init(struct dst_ops *dst)