diff options
| author | Willem de Bruijn <willemb@google.com> | 2017-07-31 08:15:47 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-08-01 16:07:10 -0700 |
| commit | c613c209c3f351d47158f728271d0c73b6dd24c6 (patch) | |
| tree | f048d98774aea477107068c66dde6793dcedaf0b /scripts/objdiff | |
| parent | 1ae39d658d0269a91baf2b85074a66d6be7a37d9 (diff) | |
| download | cachepc-linux-c613c209c3f351d47158f728271d0c73b6dd24c6.tar.gz cachepc-linux-c613c209c3f351d47158f728271d0c73b6dd24c6.zip | |
net: add skb_frag_foreach_page and use with kmap_atomic
Skb frags may contain compound pages. Various operations map frags
temporarily using kmap_atomic, but this function works on single
pages, not whole compound pages. The distinction is only relevant
for high mem pages that require temporary mappings.
Introduce a looping mechanism that for compound highmem pages maps
one page at a time, does not change behavior on other pages.
Use the loop in the kmap_atomic callers in net/core/skbuff.c.
Verified by triggering skb_copy_bits with
tcpdump -n -c 100 -i ${DEV} -w /dev/null &
netperf -t TCP_STREAM -H ${HOST}
and by triggering __skb_checksum with
ethtool -K ${DEV} tx off
repeated the tests with looping on a non-highmem platform
(x86_64) by making skb_frag_must_loop always return true.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
