aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexander Duyck <[email protected]>2010-06-02 12:24:37 +0000
committerDavid S. Miller <[email protected]>2010-06-05 02:23:16 -0700
commitb78462ebc6a4ef9074aa80abebcdd470dc5f0ce0 (patch)
treefba32dab1e3dca2c5bb5b7d73a64a77c2b6872e8 /tools/perf/scripts/python
parent55c95e738da85373965cb03b4f975d0fd559865b (diff)
skbuff: add check for non-linear to warn_if_lro and needs_linearize
We can avoid an unecessary cache miss by checking if the skb is non-linear before accessing gso_size/gso_type in skb_warn_if_lro, the same can also be done to avoid a cache miss on nr_frags if data_len is 0. Signed-off-by: Alexander Duyck <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions