Lines Matching refs:dst
29 void (*update_pmtu)(struct dst_entry *dst, struct sock *sk,
32 void (*redirect)(struct dst_entry *dst, struct sock *sk,
35 struct neighbour * (*neigh_lookup)(const struct dst_entry *dst,
38 void (*confirm_neigh)(const struct dst_entry *dst,
46 static inline int dst_entries_get_fast(struct dst_ops *dst)
48 return percpu_counter_read_positive(&dst->pcpuc_entries);
51 static inline int dst_entries_get_slow(struct dst_ops *dst)
53 return percpu_counter_sum_positive(&dst->pcpuc_entries);
57 static inline void dst_entries_add(struct dst_ops *dst, int val)
59 percpu_counter_add_batch(&dst->pcpuc_entries, val,
63 static inline int dst_entries_init(struct dst_ops *dst)
65 return percpu_counter_init(&dst->pcpuc_entries, 0, GFP_KERNEL);
68 static inline void dst_entries_destroy(struct dst_ops *dst)
70 percpu_counter_destroy(&dst->pcpuc_entries);