From: Eric Dumazet Date: Thu, 11 Nov 2010 07:14:07 +0000 (+0000) Subject: net: get rid of rtable->idev X-Git-Tag: v2.6.38-rc1~476^2~599 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72cdd1d971c0deb1619c5c339270570c43647a78;p=pandora-kernel.git net: get rid of rtable->idev It seems idev field in struct rtable has no special purpose, but adding extra atomic ops. We hold refcounts on the device itself (using percpu data, so pretty cheap in current kernel). infiniband case is solved using dst.dev instead of idev->dev Removal of this field means routing without route cache is now using shared data, percpu data, and only potential contention is a pair of atomic ops on struct neighbour per forwarded packet. About 5% speedup on routing test. Signed-off-by: Eric Dumazet Cc: Herbert Xu Cc: Roland Dreier Cc: Sean Hefty Cc: Hal Rosenstock Signed-off-by: David S. Miller --- Reading git-diff-tree failed