aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-04-20 13:01:44 -0700
committerDavid S. Miller <[email protected]>2021-04-20 16:54:40 -0700
commitf5d7872a8b8a3176e65dc6f7f0705ce7e9a699e6 (patch)
tree91e6eeebf094dc150d16a3ff053dd7ef89611e14 /tools/perf/scripts/python/net_dropmonitor.py
parentb8c55ce266dee09b0e359ff9af885eb94e11480a (diff)
virtio-net: restrict build_skb() use to some arches
build_skb() is supposed to be followed by skb_reserve(skb, NET_IP_ALIGN), so that IP headers are word-aligned. (Best practice is to reserve NET_IP_ALIGN+NET_SKB_PAD, but the NET_SKB_PAD part is only a performance optimization if tunnel encaps are added.) Unfortunately virtio_net has not provisioned this reserve. We can only use build_skb() for arches where NET_IP_ALIGN == 0 We might refine this later, with enough testing. Fixes: fb32856b16ad ("virtio-net: page_to_skb() use build_skb when there's sufficient tailroom") Signed-off-by: Eric Dumazet <[email protected]> Reported-by: Guenter Roeck <[email protected]> Cc: Xuan Zhuo <[email protected]> Cc: Jason Wang <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions