.. | .. |
---|
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> |
---|
9 | 10 | |
---|
10 | 11 | struct gnet_stats_basic_cpu { |
---|
11 | 12 | struct gnet_stats_basic_packed bstats; |
---|
.. | .. |
---|
36 | 37 | spinlock_t *lock, struct gnet_dump *d, |
---|
37 | 38 | int padattr); |
---|
38 | 39 | |
---|
39 | | -int gnet_stats_copy_basic(const seqcount_t *running, |
---|
| 40 | +int gnet_stats_copy_basic(net_seqlock_t *running, |
---|
40 | 41 | struct gnet_dump *d, |
---|
41 | 42 | struct gnet_stats_basic_cpu __percpu *cpu, |
---|
42 | 43 | struct gnet_stats_basic_packed *b); |
---|
43 | | -void __gnet_stats_copy_basic(const seqcount_t *running, |
---|
| 44 | +void __gnet_stats_copy_basic(net_seqlock_t *running, |
---|
44 | 45 | struct gnet_stats_basic_packed *bstats, |
---|
45 | 46 | struct gnet_stats_basic_cpu __percpu *cpu, |
---|
46 | 47 | struct gnet_stats_basic_packed *b); |
---|
.. | .. |
---|
60 | 61 | struct gnet_stats_basic_cpu __percpu *cpu_bstats, |
---|
61 | 62 | struct net_rate_estimator __rcu **rate_est, |
---|
62 | 63 | spinlock_t *lock, |
---|
63 | | - seqcount_t *running, struct nlattr *opt); |
---|
| 64 | + net_seqlock_t *running, struct nlattr *opt); |
---|
64 | 65 | void gen_kill_estimator(struct net_rate_estimator __rcu **ptr); |
---|
65 | 66 | int gen_replace_estimator(struct gnet_stats_basic_packed *bstats, |
---|
66 | 67 | struct gnet_stats_basic_cpu __percpu *cpu_bstats, |
---|
67 | 68 | struct net_rate_estimator __rcu **ptr, |
---|
68 | 69 | spinlock_t *lock, |
---|
69 | | - seqcount_t *running, struct nlattr *opt); |
---|
| 70 | + net_seqlock_t *running, struct nlattr *opt); |
---|
70 | 71 | bool gen_estimator_active(struct net_rate_estimator __rcu **ptr); |
---|
71 | 72 | bool gen_estimator_read(struct net_rate_estimator __rcu **ptr, |
---|
72 | 73 | struct gnet_stats_rate_est64 *sample); |
---|