From: Julian Anastasov Date: Thu, 21 Mar 2013 09:58:06 +0000 (+0200) Subject: ipvs: optimize dst usage for real server X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~235^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026ace060dfe29275d2188297a62fa37d6c1a02c;p=pandora-kernel.git ipvs: optimize dst usage for real server Currently when forwarding requests to real servers we use dst_lock and atomic operations when cloning the dst_cache value. As the dst_cache value does not change most of the time it is better to use RCU and to lock dst_lock only when we need to replace the obsoleted dst. For this to work we keep dst_cache in new structure protected by RCU. For packets to remote real servers we will use noref version of dst_cache, it will be valid while we are in RCU read-side critical section because now dst_release for replaced dsts will be invoked after the grace period. Packets to local real servers that are passed to local stack with NF_ACCEPT need a dst clone. Signed-off-by: Julian Anastasov Signed-off by: Hans Schillstrom Signed-off-by: Simon Horman --- Reading git-diff-tree failed