RE: [PATCH net-next v2 2/3] vhost_net: Call peek_len when using xdp

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 2/3]

Re: [PATCH net-next v2 2/3] vhost_net: Call peek_len when using xdp

2024-02-29 Thread Paolo Abeni
On Wed, 2024-02-28 at 19:05 +0800, Yunjian Wang wrote: > If TUN supports AF_XDP TX zero-copy, the XDP program will enqueue > packets to the XDP ring and wake up the vhost worker. This requires > the vhost worker to call peek_len(), which can be used to consume > XDP descriptors. > >