diff options
| author | Sven Wegener <sven.wegener@webde.de> | 2007-08-24 17:14:01 +0200 |
|---|---|---|
| committer | Sven Wegener <sven.wegener@webde.de> | 2009-01-16 12:11:37 +0100 |
| commit | aa0c3972a4a35b8a92d30b63bbe2e9d3afc624a9 (patch) | |
| tree | f1881b37d37711193551e5f630bfa4412e51546a /include | |
| parent | 3fa8749e584b55f1180411ab1b51117190bac1e5 (diff) | |
ipvs: Account outgoing bytes for DR and TUN servicesipvs/droutbytes
We don't see outgoing packets for DR and TUN services, but for TCP we
can account the outgoing bytes based on the ACK packets coming from the
client.
We hijack the out_seq struct to track the sequence number. The structure
is only used for NAT and we can safe a couple of bytes in the ip_vs_conn
structure to prevent it from growing from 128 bytes to 256 bytes with
SLAB_HWCACHE_ALIGN and certain configuration options.
Signed-off-by: Sven Wegener <sven.wegener@webde.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/ip_vs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 7312c3dd309f..d63f22a683ed 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -643,6 +643,9 @@ extern int sysctl_ip_vs_expire_nodest_conn; extern int sysctl_ip_vs_expire_quiescent_template; extern int sysctl_ip_vs_sync_threshold[2]; extern int sysctl_ip_vs_nat_icmp_send; +extern int sysctl_ip_vs_account_dr_outbytes_destination; +extern int sysctl_ip_vs_account_dr_outbytes_service; +extern int sysctl_ip_vs_account_dr_outbytes_global; extern struct ip_vs_stats ip_vs_stats; extern const struct ctl_path net_vs_ctl_path[]; |
