Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-12 Thread Jason Wang
l.org; > > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > > > Subject: Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support > > > > On Mon, Mar 4, 2024 at 9:45 PM wangyunjian > > wrote: > > > > > > > > > > >

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-11 Thread wangyunjian
.com; maciej.fijalkow...@intel.com; > jonathan.le...@gmail.com; da...@davemloft.net; b...@vger.kernel.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; k...@vger.kernel.org; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > Subject: Re: [PATCH net-next v2 3

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-10 Thread Jason Wang
l.org; > > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > > > Subject: Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support > > > > On Fri, Mar 01, 2024 at 11:45:52AM +, wangyunjian wrote: > > > > -Original Message---

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-05 Thread Jason Wang
On Sat, Mar 2, 2024 at 2:40 AM Willem de Bruijn wrote: > > Maciej Fijalkowski wrote: > > On Wed, Feb 28, 2024 at 07:05:56PM +0800, Yunjian Wang wrote: > > > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > > > which can significantly reduce CPU utilization for XDP programs.

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-05 Thread Jason Wang
nux.dev; xudingke ; liwei (DT) > > > > Subject: Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support > > > > On Wed, Feb 28, 2024 at 7:06 PM Yunjian Wang > > wrote: > > > > > > This patch set allows TUN to support the AF_XDP Tx zero-copy featur

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-04 Thread wangyunjian
.com; maciej.fijalkow...@intel.com; > jonathan.le...@gmail.com; da...@davemloft.net; b...@vger.kernel.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; k...@vger.kernel.org; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > Subject: Re: [PATCH net-next v2 3

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-04 Thread wangyunjian
alkow...@intel.com; > jonathan.le...@gmail.com; da...@davemloft.net; b...@vger.kernel.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; k...@vger.kernel.org; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > Subject: Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy suppo

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-03 Thread Jason Wang
On Wed, Feb 28, 2024 at 7:06 PM Yunjian Wang wrote: > > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > which can significantly reduce CPU utilization for XDP programs. > > Since commit fc72d1d54dd9 ("tuntap: XDP transmission"), the pointer > ring has been utilized to

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Willem de Bruijn
Maciej Fijalkowski wrote: > On Wed, Feb 28, 2024 at 07:05:56PM +0800, Yunjian Wang wrote: > > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > > which can significantly reduce CPU utilization for XDP programs. > > Why no Rx ZC support though? What will happen if I try

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Maciej Fijalkowski
On Wed, Feb 28, 2024 at 07:05:56PM +0800, Yunjian Wang wrote: > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > which can significantly reduce CPU utilization for XDP programs. Why no Rx ZC support though? What will happen if I try rxdrop xdpsock against tun with this

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Michael S. Tsirkin
t; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > > > Subject: Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support > > > > On Wed, 2024-02-28 at 19:05 +0800, Yunjian Wang wrote: > > > @@ -2661,6 +2776,54 @@ static int tun_ptr_peek_l

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread wangyunjian
m; maciej.fijalkow...@intel.com; > jonathan.le...@gmail.com; da...@davemloft.net > Cc: b...@vger.kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; k...@vger.kernel.org; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > Subject: Re: [PATCH net-next v2 3

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-02-29 Thread kernel test robot
://lore.kernel.org/r/1709118356-133960-1-git-send-email-wangyunjian%40huawei.com patch subject: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support config: microblaze-randconfig-r131-20240229 (https://download.01.org/0day-ci/archive/20240229/202402292345.a49gfjlj-...@intel.com/config) compiler

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-02-29 Thread wangyunjian
m; maciej.fijalkow...@intel.com; > jonathan.le...@gmail.com; da...@davemloft.net > Cc: b...@vger.kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; k...@vger.kernel.org; > virtualizat...@lists.linux.dev; xudingke ; liwei (DT) > > Subject: Re: [PATCH net-next v2 3

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-02-29 Thread Paolo Abeni
On Wed, 2024-02-28 at 19:05 +0800, Yunjian Wang wrote: > @@ -2661,6 +2776,54 @@ static int tun_ptr_peek_len(void *ptr) > } > } > > +static void tun_peek_xsk(struct tun_file *tfile) > +{ > + struct xsk_buff_pool *pool; > + u32 i, batch, budget; > + void *frame; > + > + if

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-02-29 Thread kernel test robot
://lore.kernel.org/r/1709118356-133960-1-git-send-email-wangyunjian%40huawei.com patch subject: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support config: i386-randconfig-012-20240229 (https://download.01.org/0day-ci/archive/20240229/202402291828.g9c5tw50-...@intel.com/config) compiler: gcc-7 (Ubuntu

[PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-02-28 Thread Yunjian Wang
This patch set allows TUN to support the AF_XDP Tx zero-copy feature, which can significantly reduce CPU utilization for XDP programs. Since commit fc72d1d54dd9 ("tuntap: XDP transmission"), the pointer ring has been utilized to queue different types of pointers by encoding the type into the