Re: [PATCH] tap: introduce IFF_NAPI

2023-05-31 Thread Jason Wang
On Wed, May 31, 2023 at 9:46 PM Jon Kohler wrote: > > > > > On May 31, 2023, at 1:27 AM, Jason Wang wrote: > > > > On Wed, May 31, 2023 at 11:55 AM Jason Wang wrote: > >> > >> On Wed, May 31, 2023 at 11:47 AM Jon Kohler wrote: > >>> > >>> > >>> > On May 30, 2023, at 11:35 PM, Jason Wang

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-31 Thread Jon Kohler
> On May 31, 2023, at 1:27 AM, Jason Wang wrote: > > On Wed, May 31, 2023 at 11:55 AM Jason Wang wrote: >> >> On Wed, May 31, 2023 at 11:47 AM Jon Kohler wrote: >>> >>> >>> On May 30, 2023, at 11:35 PM, Jason Wang wrote: On Wed, May 31, 2023 at 11:32 AM Jason Wang

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jason Wang
On Wed, May 31, 2023 at 11:55 AM Jason Wang wrote: > > On Wed, May 31, 2023 at 11:47 AM Jon Kohler wrote: > > > > > > > > > On May 30, 2023, at 11:35 PM, Jason Wang wrote: > > > > > > On Wed, May 31, 2023 at 11:32 AM Jason Wang wrote: > > >> > > >> On Wed, May 31, 2023 at 11:17 AM Jon Kohler

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jason Wang
On Wed, May 31, 2023 at 11:47 AM Jon Kohler wrote: > > > > > On May 30, 2023, at 11:35 PM, Jason Wang wrote: > > > > On Wed, May 31, 2023 at 11:32 AM Jason Wang wrote: > >> > >> On Wed, May 31, 2023 at 11:17 AM Jon Kohler wrote: > >>> > >>> If kernel supports IFF_NAPI, lets use it, which is

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jon Kohler
> On May 30, 2023, at 11:35 PM, Jason Wang wrote: > > On Wed, May 31, 2023 at 11:32 AM Jason Wang wrote: >> >> On Wed, May 31, 2023 at 11:17 AM Jon Kohler wrote: >>> >>> If kernel supports IFF_NAPI, lets use it, which is especially useful >>> on kernels containing fb3f903769e8 ("tun:

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jason Wang
On Wed, May 31, 2023 at 11:32 AM Jason Wang wrote: > > On Wed, May 31, 2023 at 11:17 AM Jon Kohler wrote: > > > > If kernel supports IFF_NAPI, lets use it, which is especially useful > > on kernels containing fb3f903769e8 ("tun: support NAPI for packets > > received from batched XDP buffs"), as

Re: [PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jason Wang
On Wed, May 31, 2023 at 11:17 AM Jon Kohler wrote: > > If kernel supports IFF_NAPI, lets use it, which is especially useful > on kernels containing fb3f903769e8 ("tun: support NAPI for packets > received from batched XDP buffs"), as IFF_NAPI allows the > vhost_tx_batch path to use NAPI on XDP

[PATCH] tap: introduce IFF_NAPI

2023-05-30 Thread Jon Kohler
If kernel supports IFF_NAPI, lets use it, which is especially useful on kernels containing fb3f903769e8 ("tun: support NAPI for packets received from batched XDP buffs"), as IFF_NAPI allows the vhost_tx_batch path to use NAPI on XDP buffs. Benchmark w/ iperf -c (remote srv) -P (thread count) -l