lkml.org 
[lkml]   [2018]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next 2/2] tuntap: free XDP dropped packets in a batch
From
From: Jason Wang <jasowang@redhat.com>
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 a batch.
>
> Testpmd(virtio-user + vhost_net) + XDP_DROP shows 3.8% improvement.
>
> Before: 4.71Mpps
> After : 4.89Mpps
>
> Signed-off-by: Jason Wang <jasowang@redhat.com>

Applied.

\
 
 \ /
  Last update: 2018-11-17 21:02    [W:0.034 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site