diff options
| author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-01 00:53:59 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-05-04 05:30:36 +0300 |
| commit | 610986e7262624e2dd29ad8dea05b4e1ac3f07fb (patch) | |
| tree | 3f5fe450644b92d062c9e6f52a56e9e50bcec8f5 /tools/perf/scripts/python/netdev-times.py | |
| parent | d54385ce68cd18ab002b46f61246ad197cec92de (diff) | |
| download | linux-610986e7262624e2dd29ad8dea05b4e1ac3f07fb.tar.xz | |
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 <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
