forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
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)