kernel/include/net/dst_ops.h
.. .. @@ -53,9 +53,11 @@ 53 53 return percpu_counter_sum_positive(&dst->pcpuc_entries); 54 54 } 55 55 56 +#define DST_PERCPU_COUNTER_BATCH 3256 57 static inline void dst_entries_add(struct dst_ops *dst, int val) 57 58 { 58 - percpu_counter_add(&dst->pcpuc_entries, val);59 + percpu_counter_add_batch(&dst->pcpuc_entries, val,60 + DST_PERCPU_COUNTER_BATCH);59 61 } 60 62 61 63 static inline int dst_entries_init(struct dst_ops *dst)