19 #define KMSG_COMPONENT "IPVS"
20 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
22 #include <linux/kernel.h>
24 #include <linux/types.h>
26 #include <linux/sysctl.h>
27 #include <linux/list.h>
66 __u64 inbytes, outbytes;
72 start = u64_stats_fetch_begin(&s->
syncp);
73 inbytes = s->
ustats.inbytes;
74 outbytes = s->
ustats.outbytes;
75 }
while (u64_stats_fetch_retry(&s->
syncp, start));
83 start = u64_stats_fetch_begin(&s->
syncp);
86 }
while (u64_stats_fetch_retry(&s->
syncp, start));
92 static void estimation_timer(
unsigned long arg)
97 u32 n_inpkts, n_outpkts;
98 u64 n_inbytes, n_outbytes;
100 struct net *
net = (
struct net *)arg;
103 ipvs = net_ipvs(net);
110 n_conns = s->
ustats.conns;
111 n_inpkts = s->
ustats.inpkts;
112 n_outpkts = s->
ustats.outpkts;
113 n_inbytes = s->
ustats.inbytes;
114 n_outbytes = s->
ustats.outbytes;
136 spin_unlock(&s->
lock);
147 INIT_LIST_HEAD(&est->
list);
188 dst->
cps = (e->
cps + 0x1FF) >> 10;