.. | .. |
---|
6 | 6 | #include <linux/socket.h> |
---|
7 | 7 | #include <linux/rtnetlink.h> |
---|
8 | 8 | #include <linux/pkt_sched.h> |
---|
9 | | -#include <net/net_seq_lock.h> |
---|
10 | 9 | |
---|
11 | 10 | /* Note: this used to be in include/uapi/linux/gen_stats.h */ |
---|
12 | 11 | struct gnet_stats_basic_packed { |
---|
.. | .. |
---|
43 | 42 | spinlock_t *lock, struct gnet_dump *d, |
---|
44 | 43 | int padattr); |
---|
45 | 44 | |
---|
46 | | -int gnet_stats_copy_basic(net_seqlock_t *running, |
---|
| 45 | +int gnet_stats_copy_basic(const seqcount_t *running, |
---|
47 | 46 | struct gnet_dump *d, |
---|
48 | 47 | struct gnet_stats_basic_cpu __percpu *cpu, |
---|
49 | 48 | struct gnet_stats_basic_packed *b); |
---|
50 | | -void __gnet_stats_copy_basic(net_seqlock_t *running, |
---|
| 49 | +void __gnet_stats_copy_basic(const seqcount_t *running, |
---|
51 | 50 | struct gnet_stats_basic_packed *bstats, |
---|
52 | 51 | struct gnet_stats_basic_cpu __percpu *cpu, |
---|
53 | 52 | struct gnet_stats_basic_packed *b); |
---|
54 | | -int gnet_stats_copy_basic_hw(net_seqlock_t *running, |
---|
| 53 | +int gnet_stats_copy_basic_hw(const seqcount_t *running, |
---|
55 | 54 | struct gnet_dump *d, |
---|
56 | 55 | struct gnet_stats_basic_cpu __percpu *cpu, |
---|
57 | 56 | struct gnet_stats_basic_packed *b); |
---|
.. | .. |
---|
71 | 70 | struct gnet_stats_basic_cpu __percpu *cpu_bstats, |
---|
72 | 71 | struct net_rate_estimator __rcu **rate_est, |
---|
73 | 72 | spinlock_t *lock, |
---|
74 | | - net_seqlock_t *running, struct nlattr *opt); |
---|
| 73 | + seqcount_t *running, struct nlattr *opt); |
---|
75 | 74 | void gen_kill_estimator(struct net_rate_estimator __rcu **ptr); |
---|
76 | 75 | int gen_replace_estimator(struct gnet_stats_basic_packed *bstats, |
---|
77 | 76 | struct gnet_stats_basic_cpu __percpu *cpu_bstats, |
---|
78 | 77 | struct net_rate_estimator __rcu **ptr, |
---|
79 | 78 | spinlock_t *lock, |
---|
80 | | - net_seqlock_t *running, struct nlattr *opt); |
---|
| 79 | + seqcount_t *running, struct nlattr *opt); |
---|
81 | 80 | bool gen_estimator_active(struct net_rate_estimator __rcu **ptr); |
---|
82 | 81 | bool gen_estimator_read(struct net_rate_estimator __rcu **ptr, |
---|
83 | 82 | struct gnet_stats_rate_est64 *sample); |
---|