[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181117.120110.1928716941460171365.davem@davemloft.net>
Date: Sat, 17 Nov 2018 12:01:10 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jasowang@...hat.com
Cc: mst@...hat.com, kvm@...r.kernel.org,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] tuntap: free XDP dropped packets in a
batch
From: Jason Wang <jasowang@...hat.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@...hat.com>
Applied.
Powered by blists - more mailing lists