Re: [PATCH net-next 2/2] tuntap: free XDP dropped packets in a batch

2018-11-17 Thread David Miller
From: Jason Wang Date: Thu, 15 Nov 2018 17:43:10 +0800 > 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

[PATCH net-next 2/2] tuntap: free XDP dropped packets in a batch

2018-11-15 Thread Jason Wang
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%