linux-hardened/net/ethernet
Alexander Duyck 849b920e17 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 <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-03 22:30:36 -04:00
..
eth.c etherdev: Avoid unnecessary byte swap in check for Ethertype 2015-05-03 22:30:36 -04:00
Makefile ipx: move peII functions 2012-07-19 10:48:00 -07:00