From: Eric Dumazet Date: Sat, 29 Aug 2009 06:52:01 +0000 (-0700) Subject: net: ip_rt_send_redirect() optimization X-Git-Tag: v2.6.32-rc1~703^2~252 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30038fc61adfdab162b1966e34261f06eda67f02;p=pandora-kernel.git net: ip_rt_send_redirect() optimization While doing some forwarding benchmarks, I noticed ip_rt_send_redirect() is rather expensive, even if send_redirects is false for the device. Fix is to avoid two atomic ops, we dont really need to take a reference on in_dev Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed