Re: [RFC PATCH 06/10] net: add SO_DEVMEM_DONTNEED setsockopt to release RX pages

2023-07-16 Thread Mina Almasry
On Sun, Jul 16, 2023 at 4:57 PM Andy Lutomirski wrote: > > On 7/10/23 15:32, Mina Almasry wrote: > > Add an interface for the user to notify the kernel that it is done reading > > the NET_RX dmabuf pages returned as cmsg. The kernel will drop the > > reference on the NET_RX pages to make them avai

Re: [RFC PATCH 06/10] net: add SO_DEVMEM_DONTNEED setsockopt to release RX pages

2023-07-16 Thread Andy Lutomirski
On 7/10/23 15:32, Mina Almasry wrote: Add an interface for the user to notify the kernel that it is done reading the NET_RX dmabuf pages returned as cmsg. The kernel will drop the reference on the NET_RX pages to make them available for re-use. Signed-off-by: Mina Almasry --- +

[RFC PATCH 06/10] net: add SO_DEVMEM_DONTNEED setsockopt to release RX pages

2023-07-10 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the NET_RX dmabuf pages returned as cmsg. The kernel will drop the reference on the NET_RX pages to make them available for re-use. Signed-off-by: Mina Almasry --- include/uapi/asm-generic/socket.h | 1 + include/uapi/li