aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorAlexander Duyck <[email protected]>2015-04-30 14:53:48 -0700
committerDavid S. Miller <[email protected]>2015-05-03 22:30:36 -0400
commit849b920e17a2b1e9a3c912ca960dc667d27985e8 (patch)
tree022462df37208a5eba25b4ad59a2c18b846aa5c3 /tools/perf/scripts/python/event_analyzing_sample.py
parent82a584b7cd366511a22e37675b029cf2fb58e291 (diff)
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions