From: Alexander Duyck Date: Thu, 30 Apr 2015 21:53:59 +0000 (-0700) Subject: etherdev: Use skb->data to retrieve Ethernet header instead of eth_hdr X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~385^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610986e7262624e2dd29ad8dea05b4e1ac3f07fb;p=pandora-kernel.git etherdev: Use skb->data to retrieve Ethernet header instead of eth_hdr Avoid recomputing the Ethernet header location and instead just use the pointer provided by skb->data. The problem with using eth_hdr is that the compiler wasn't smart enough to realize that skb->head + skb->mac_header was the same thing as skb->data before it added ETH_HLEN. By just caching it off before calling skb_pull_inline we can avoid a few unnecessary instructions. Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed