From: Alexander Duyck Date: Thu, 30 Apr 2015 21:53:48 +0000 (-0700) Subject: etherdev: Avoid unnecessary byte swap in check for Ethertype X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~385^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849b920e17a2b1e9a3c912ca960dc667d27985e8;p=pandora-kernel.git etherdev: Avoid unnecessary byte swap in check for Ethertype This change takes advantage of the fact that ETH_P_802_3_MIN is aligned to 512 so as a result we can actually ignore the lower 8b when comparing the Ethertype to ETH_P_802_3_MIN. This allows us to avoid a byte swap by simply masking the value and comparing it to the byte swapped value for ETH_P_802_3_MIN. Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed