From: WANG Cong Date: Fri, 10 Jan 2014 00:14:02 +0000 (-0800) Subject: net_sched: optimize tcf_match_indev() X-Git-Tag: v3.14-rc1~94^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2519a602c273c5254781bc55b6e678a17e469a12;p=pandora-kernel.git net_sched: optimize tcf_match_indev() tcf_match_indev() is called in fast path, it is not wise to search for a netdev by ifindex and then compare by its name, just compare the ifindex. Also, dev->name could be changed by user-space, therefore the match would be always fail, but dev->ifindex could be consistent. BTW, this will also save some bytes from the core struct of u32. Cc: Jamal Hadi Salim Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- Reading git-diff-tree failed