diff options
| author | Jason Wang <[email protected]> | 2018-11-15 17:43:10 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-17 12:00:42 -0800 |
| commit | f9e06c45cb28beb30a6a474952ead7da2b8940f3 (patch) | |
| tree | 79fab6c861635c5e1ce325de2e867481ad83a61c /tools/perf/scripts/python | |
| parent | e4dab1e6ea64376ebd3b59281ecaaeb788116be3 (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