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) in dst_entries_get_fast() argument
48 return percpu_counter_read_positive(&dst->pcpuc_entries); in dst_entries_get_fast()
51 static inline int dst_entries_get_slow(struct dst_ops *dst) in dst_entries_get_slow() argument
53 return percpu_counter_sum_positive(&dst->pcpuc_entries); in dst_entries_get_slow()
57 static inline void dst_entries_add(struct dst_ops *dst, int val) in dst_entries_add() argument
59 percpu_counter_add_batch(&dst->pcpuc_entries, val, in dst_entries_add()
63 static inline int dst_entries_init(struct dst_ops *dst) in dst_entries_init() argument
65 return percpu_counter_init(&dst->pcpuc_entries, 0, GFP_KERNEL); in dst_entries_init()
68 static inline void dst_entries_destroy(struct dst_ops *dst) in dst_entries_destroy() argument
70 percpu_counter_destroy(&dst->pcpuc_entries); in dst_entries_destroy()