From: Eric Dumazet Date: Thu, 17 Nov 2011 03:13:26 +0000 (+0000) Subject: net: use jump_label to shortcut RPS if not setup X-Git-Tag: v3.3-rc1~182^2~543 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adc9300e78e6091a7eaa1821213836379d4dbaa8;p=pandora-kernel.git net: use jump_label to shortcut RPS if not setup Most machines dont use RPS/RFS, and pay a fair amount of instructions in netif_receive_skb() / netif_rx() / get_rps_cpu() just to discover RPS/RFS is not setup. Add a jump_label named rps_needed. If no device rps_map or global rps_sock_flow_table is setup, netif_receive_skb() / netif_rx() do a single instruction instead of many ones, including conditional jumps. jmp +0 (if CONFIG_JUMP_LABEL=y) Signed-off-by: Eric Dumazet CC: Tom Herbert Signed-off-by: David S. Miller --- Reading git-diff-tree failed