aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2018-11-15 17:43:10 +0800
committerDavid S. Miller <[email protected]>2018-11-17 12:00:42 -0800
commitf9e06c45cb28beb30a6a474952ead7da2b8940f3 (patch)
tree79fab6c861635c5e1ce325de2e867481ad83a61c /tools/perf/scripts/python
parente4dab1e6ea64376ebd3b59281ecaaeb788116be3 (diff)
tuntap: free XDP dropped packets in a batch
Thanks to the batched XDP buffs through msg_control. Instead of calling put_page() for each page which involves a atomic operation, let's batch them by record the last page that needs to be freed and its refcnt count and free them in a batch. Testpmd(virtio-user + vhost_net) + XDP_DROP shows 3.8% improvement. Before: 4.71Mpps After : 4.89Mpps Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions