[PATCH net-next v21 04/13] netdev: netdevice devmem allocator

2024-08-19 Thread Mina Almasry
ff-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v20: - Removed dma_addr field in dmabuf_genpool_chunk_owner not used in this patch (moved to later patch where it's used). v19: - Don't reset dma_addr on allocation/fr

[PATCH net-next v21 05/13] page_pool: devmem support

2024-08-19 Thread Mina Almasry
hether the underlying type is page or net_iov. Implement checks for net_iov in netmem helpers which delegate to mm APIs, to ensure net_iov are never passed to the mm stack. Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v19: - Move page_pool_set_dma_addr(_netmem) to page_pool_priv.h - D

[PATCH net-next v21 06/13] memory-provider: dmabuf devmem memory provider

2024-08-19 Thread Mina Almasry
is omitted for simplicity & p.order != 0. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v21: - Provide empty definitions of functions moved to page_pool_priv.h, so that the build still succeeds when CONFIG_PAGE_

[PATCH net-next v21 07/13] net: support non paged skb frags

2024-08-19 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return se

[PATCH net-next v21 08/13] net: add support for skbs with unreadable frags

2024-08-19 Thread Mina Almasry
ags of devmem skbs and avoid coalescing devmem skbs with non devmem skbs. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v16: - Fix unreadable handling in skb_split_no_header() (Eric). v11: - drop excessive checks for

[PATCH net-next v21 09/13] tcp: RX path for devmem TCP

2024-08-19 Thread Mina Almasry
er_frags, and each page passed to userspace is get_page()'d. This reference is dropped once the userspace indicates that it is done reading this page. All pages are released when the socket is destroyed. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Re

[PATCH net-next v21 10/13] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-08-19 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry

[PATCH net-next v21 11/13] net: add devmem TCP documentation

2024-08-19 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya Reviewed-by: Donald Hunter --- v16: - Add documentation on unbinding the NIC from dmabuf (Donald). - Add note that any dmabuf should work (Donald). v9: https

[PATCH net-next v21 12/13] selftests: add ncdevmem, netcat for devmem TCP

2024-08-19 Thread Mina Almasry
, ncdevmem has a validation mode, where it sends a specific pattern and validates this pattern on the receiver side to ensure data integrity. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v20: - Remove unnecessary sleep(1) - Add test to ensure dmabuf binding fails if header split is

[PATCH net-next v21 13/13] netdev: add dmabuf introspection

2024-08-19 Thread Mina Almasry
7;inflight': 1023, 'inflight-mem': 4190208}, And queue stats: $ ./cli.py --spec ../netlink/specs/netdev.yaml --dump queue-get ... {'dmabuf': 10, 'id': 8, 'ifindex': 3, 'type': 'rx'}, {'dmabuf': 10, 'id': 9,

Re: [PATCH net-next v19 03/13] netdev: support binding dma-buf to netdevice

2024-08-20 Thread Mina Almasry
On Tue, Aug 20, 2024 at 11:19 AM Jakub Kicinski wrote: > > On Tue, 20 Aug 2024 00:01:02 -0400 Mina Almasry wrote: > > Took a bit of a look here. Forgive me, I'm not that familiar with XDP > > and virtual interfaces, so I'm a bit unsure what to do here. > >

Re: [PATCH net-next v19 03/13] netdev: support binding dma-buf to netdevice

2024-08-21 Thread Mina Almasry
On Wed, Aug 21, 2024 at 5:15 AM Taehee Yoo wrote: > > On Tue, Aug 20, 2024 at 1:01 PM Mina Almasry wrote: > > > > On Mon, Aug 19, 2024 at 6:53 PM Jakub Kicinski wrote: > > > > > > On Mon, 19 Aug 2024 00:44:27 +0900 Taehee Yoo wrote: > > > > &g

Re: [PATCH v1] selftests/mm: fix charge_reserved_hugetlb.sh test

2024-08-21 Thread Mina Almasry
lbfs.c > unconditionally tries to cleanup using shmdt(), even when we only > mmap()'ed a hugetlb file. Even worse, shmaddr is never even set for the > SHM case. Fix that as well. > > With this change it seems to work as expected. > > Fixes: 29750f71a9b4 ("hugetlb_cgroup: ad

[PATCH net-next v22 00/13] Device Memory TCP

2024-08-24 Thread Mina Almasry
IC: GVE with header split & RSS & flow steering support. Cc: Pavel Begunkov Cc: David Wei Cc: Jason Gunthorpe Cc: Yunsheng Lin Cc: Shailend Chand Cc: Harshitha Ramamurthy Cc: Shakeel Butt Cc: Jeroen de Borst Cc: Praveen Kaligineedi Cc: Bagas Sanjaya Cc: Steven Rostedt Cc: Christoph Hel

[PATCH net-next v22 01/13] netdev: add netdev_rx_queue_restart()

2024-08-24 Thread Mina Almasry
ff-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v18: - Add more color to commit message (Xuan Zhuo). v17: - Use ASSERT_RTNL() (Jakub). v13: - Add reviewed-by from Pavel (thanks!) - Fixed comment (Pavel) v11: - Fix not checking dev->queue_mgmt_ops (Pavel

[PATCH net-next v22 02/13] net: netdev netlink api to bind dma-buf to a net device

2024-08-24 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry Reviewed-by: Donald Hunter Reviewed-by: Jakub Kicinski --- v16: - Use subset-of: queue queue-id instead

[PATCH net-next v22 03/13] netdev: support binding dma-buf to netdevice

2024-08-24 Thread Mina Almasry
The netdev_dmabuf_binding struct is refcounted, and releases its resources only when all the refs are released. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov # excluding netlink Acked-by: Daniel Vetter --- v22: - Disable binding xdp t

[PATCH net-next v22 04/13] netdev: netdevice devmem allocator

2024-08-24 Thread Mina Almasry
ff-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v20: - Removed dma_addr field in dmabuf_genpool_chunk_owner not used in this patch (moved to later patch where it's used). v19: - Don't reset dma_addr on allocation/fr

[PATCH net-next v22 05/13] page_pool: devmem support

2024-08-24 Thread Mina Almasry
hether the underlying type is page or net_iov. Implement checks for net_iov in netmem helpers which delegate to mm APIs, to ensure net_iov are never passed to the mm stack. Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v19: - Move page_pool_set_dma_addr(_netmem) to page_pool_priv.h - D

[PATCH net-next v22 06/13] memory-provider: dmabuf devmem memory provider

2024-08-24 Thread Mina Almasry
is omitted for simplicity & p.order != 0. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v21: - Provide empty definitions of functions moved to page_pool_priv.h, so that the build still succeeds when CONFIG_PAGE_

[PATCH net-next v22 07/13] net: support non paged skb frags

2024-08-24 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return se

[PATCH net-next v22 11/13] net: add devmem TCP documentation

2024-08-24 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya Reviewed-by: Donald Hunter --- v16: - Add documentation on unbinding the NIC from dmabuf (Donald). - Add note that any dmabuf should work (Donald). v9: https

[PATCH net-next v22 10/13] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-08-24 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry

[PATCH net-next v22 08/13] net: add support for skbs with unreadable frags

2024-08-24 Thread Mina Almasry
ags of devmem skbs and avoid coalescing devmem skbs with non devmem skbs. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v16: - Fix unreadable handling in skb_split_no_header() (Eric). v11: - drop excessive checks for

[PATCH net-next v22 09/13] tcp: RX path for devmem TCP

2024-08-24 Thread Mina Almasry
er_frags, and each page passed to userspace is get_page()'d. This reference is dropped once the userspace indicates that it is done reading this page. All pages are released when the socket is destroyed. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Re

[PATCH net-next v22 13/13] netdev: add dmabuf introspection

2024-08-24 Thread Mina Almasry
7;inflight': 1023, 'inflight-mem': 4190208}, And queue stats: $ ./cli.py --spec ../netlink/specs/netdev.yaml --dump queue-get ... {'dmabuf': 10, 'id': 8, 'ifindex': 3, 'type': 'rx'}, {'dmabuf': 10, 'id': 9,

[PATCH net-next v22 12/13] selftests: add ncdevmem, netcat for devmem TCP

2024-08-24 Thread Mina Almasry
, ncdevmem has a validation mode, where it sends a specific pattern and validates this pattern on the receiver side to ensure data integrity. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v22: - Add run_command helper. It reduces boiler plate and prints the commands it is running

Re: [PATCH net-next v22 04/13] netdev: netdevice devmem allocator

2024-08-28 Thread Mina Almasry
On Tue, Aug 27, 2024 at 7:15 PM Jakub Kicinski wrote: > > On Sun, 25 Aug 2024 04:15:02 +0000 Mina Almasry wrote: > > +void net_devmem_free_dmabuf(struct net_iov *niov) > > +{ > > + struct net_devmem_dmabuf_binding *binding = net_iov_binding(niov); > >

Re: [PATCH net-next RFC] selftests/net: integrate packetdrill with ksft

2024-08-28 Thread Mina Almasry
On Tue, Aug 27, 2024 at 12:34 PM Willem de Bruijn wrote: > > From: Willem de Bruijn > > Lay the groundwork to import into kselftests the over 150 packetdrill > TCP/IP conformance tests on github.com/google/packetdrill. > > Florian recently added support for packetdrill tests in nf_conntrack, > in

[PATCH net-next v23 00/13] Device Memory TCP

2024-08-28 Thread Mina Almasry
f provider. ** Test Setup Kernel: net-next with this series and memory provider API cherry-picked locally. Hardware: Google Cloud A3 VMs. NIC: GVE with header split & RSS & flow steering support. Cc: Pavel Begunkov Cc: David Wei Cc: Jason Gunthorpe Cc: Yunsheng Lin Cc: Shailend Chan

[PATCH net-next v23 01/13] netdev: add netdev_rx_queue_restart()

2024-08-28 Thread Mina Almasry
ff-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v18: - Add more color to commit message (Xuan Zhuo). v17: - Use ASSERT_RTNL() (Jakub). v13: - Add reviewed-by from Pavel (thanks!) - Fixed comment (Pavel) v11: - Fix not checking dev->queue_mgmt_ops (Pavel

[PATCH net-next v23 02/13] net: netdev netlink api to bind dma-buf to a net device

2024-08-28 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry Reviewed-by: Donald Hunter Reviewed-by: Jakub Kicinski --- v16: - Use subset-of: queue queue-id instead

[PATCH net-next v23 03/13] netdev: support binding dma-buf to netdevice

2024-08-28 Thread Mina Almasry
The netdev_dmabuf_binding struct is refcounted, and releases its resources only when all the refs are released. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov # excluding netlink Acked-by: Daniel Vetter --- v23: - Create CONFIG_NET_DE

[PATCH net-next v23 04/13] netdev: netdevice devmem allocator

2024-08-28 Thread Mina Almasry
ff-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v23: - WARN_ON when we don't see the dma_addr in the gen_pool (Jakub) v20: - Removed dma_addr field in dmabuf_genpool_chunk_owner not used in th

[PATCH net-next v23 05/13] page_pool: devmem support

2024-08-28 Thread Mina Almasry
hether the underlying type is page or net_iov. Implement checks for net_iov in netmem helpers which delegate to mm APIs, to ensure net_iov are never passed to the mm stack. Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov Acked-by: Jakub Kicinski --- v23: - Fix comment on netmem_is_perf_

[PATCH net-next v23 06/13] memory-provider: dmabuf devmem memory provider

2024-08-28 Thread Mina Almasry
is omitted for simplicity & p.order != 0. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v23: - Sort includes (Jakub) - Add missing linux/mm.h include found after sorting. v21: - Provide empty definitions of fu

[PATCH net-next v23 07/13] net: support non paged skb frags

2024-08-28 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return se

[PATCH net-next v23 08/13] net: add support for skbs with unreadable frags

2024-08-28 Thread Mina Almasry
ags of devmem skbs and avoid coalescing devmem skbs with non devmem skbs. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v16: - Fix unreadable handling in skb_split_no_header() (Eric). v11: - drop excessive checks for

[PATCH net-next v23 09/13] tcp: RX path for devmem TCP

2024-08-28 Thread Mina Almasry
er_frags, and each page passed to userspace is get_page()'d. This reference is dropped once the userspace indicates that it is done reading this page. All pages are released when the socket is destroyed. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Re

[PATCH net-next v23 10/13] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-08-28 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry

[PATCH net-next v23 11/13] net: add devmem TCP documentation

2024-08-28 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya Reviewed-by: Donald Hunter --- v16: - Add documentation on unbinding the NIC from dmabuf (Donald). - Add note that any dmabuf should work (Donald). v9: https

[PATCH net-next v23 13/13] netdev: add dmabuf introspection

2024-08-28 Thread Mina Almasry
7;inflight': 1023, 'inflight-mem': 4190208}, And queue stats: $ ./cli.py --spec ../netlink/specs/netdev.yaml --dump queue-get ... {'dmabuf': 10, 'id': 8, 'ifindex': 3, 'type': 'rx'}, {'dmabuf': 10, 'id': 9,

[PATCH net-next v23 12/13] selftests: add ncdevmem, netcat for devmem TCP

2024-08-28 Thread Mina Almasry
, ncdevmem has a validation mode, where it sends a specific pattern and validates this pattern on the receiver side to ensure data integrity. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v22: - Add run_command helper. It reduces boiler plate and prints the commands it is running

Re: [PATCH net-next v23 03/13] netdev: support binding dma-buf to netdevice

2024-08-29 Thread Mina Almasry
> +#include > #include > ... > > +#include > #include > Darn, I went too overboard with sorting of includes. ynl-regen.sh wants these in the reverse order, which is unsorted. I'll fix it in the next iteration, and I added this check as well to my presubmits. BTW I submitted 2 iterations al

Re: [PATCH net-next v23 03/13] netdev: support binding dma-buf to netdevice

2024-08-29 Thread Mina Almasry
On Thu, Aug 29, 2024 at 2:24 PM Vadim Fedorenko wrote: > > On 29/08/2024 22:08, Jakub Kicinski wrote: > > On Thu, 29 Aug 2024 06:01:16 + Mina Almasry wrote: > >> +err = genlmsg_reply(rsp, info); > >> +if (err) > >> +got

[PATCH net-next v24 09/13] tcp: RX path for devmem TCP

2024-08-30 Thread Mina Almasry
er_frags, and each page passed to userspace is get_page()'d. This reference is dropped once the userspace indicates that it is done reading this page. All pages are released when the socket is destroyed. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Re

[PATCH net-next v24 07/13] net: support non paged skb frags

2024-08-30 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return se

[PATCH net-next v24 04/13] netdev: netdevice devmem allocator

2024-08-30 Thread Mina Almasry
ff-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v23: - WARN_ON when we don't see the dma_addr in the gen_pool (Jakub) v20: - Removed dma_addr field in dmabuf_genpool_chunk_owner not used in th

[PATCH net-next v24 03/13] netdev: support binding dma-buf to netdevice

2024-08-30 Thread Mina Almasry
The netdev_dmabuf_binding struct is refcounted, and releases its resources only when all the refs are released. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov # excluding netlink Acked-by: Daniel Vetter --- v24: - Fix a coupl

[PATCH net-next v24 00/13] Device Memory TCP

2024-08-30 Thread Mina Almasry
dependency on a specific dmabuf provider. ** Test Setup Kernel: net-next with this series and memory provider API cherry-picked locally. Hardware: Google Cloud A3 VMs. NIC: GVE with header split & RSS & flow steering support. Cc: Pavel Begunkov Cc: David Wei Cc: Jason Gunthorpe Cc: Y

[PATCH net-next v24 01/13] netdev: add netdev_rx_queue_restart()

2024-08-30 Thread Mina Almasry
ff-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v18: - Add more color to commit message (Xuan Zhuo). v17: - Use ASSERT_RTNL() (Jakub). v13: - Add reviewed-by from Pavel (thanks!) - Fixed comment (Pavel) v11: - Fix not checking dev->queue_mgmt_ops (Pavel

[PATCH net-next v24 11/13] net: add devmem TCP documentation

2024-08-30 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya Reviewed-by: Donald Hunter --- v16: - Add documentation on unbinding the NIC from dmabuf (Donald). - Add note that any dmabuf should work (Donald). v9: https

[PATCH net-next v24 10/13] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-08-30 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry

[PATCH net-next v24 13/13] netdev: add dmabuf introspection

2024-08-30 Thread Mina Almasry
7;inflight': 1023, 'inflight-mem': 4190208}, And queue stats: $ ./cli.py --spec ../netlink/specs/netdev.yaml --dump queue-get ... {'dmabuf': 10, 'id': 8, 'ifindex': 3, 'type': 'rx'}, {'dmabuf': 10, 'id': 9, &

[PATCH net-next v24 02/13] net: netdev netlink api to bind dma-buf to a net device

2024-08-30 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry Reviewed-by: Donald Hunter Reviewed-by: Jakub Kicinski --- v16: - Use subset-of: queue queue-id instead

[PATCH net-next v24 12/13] selftests: add ncdevmem, netcat for devmem TCP

2024-08-30 Thread Mina Almasry
, ncdevmem has a validation mode, where it sends a specific pattern and validates this pattern on the receiver side to ensure data integrity. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v24: - Add *.d to .gitignore, to stop tracking this file the build generates: ``` git status

[PATCH net-next v24 06/13] memory-provider: dmabuf devmem memory provider

2024-08-30 Thread Mina Almasry
is omitted for simplicity & p.order != 0. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v23: - Sort includes (Jakub) - Add missing linux/mm.h include found after sorting. v21: - Provide empty definitions of fu

[PATCH net-next v24 05/13] page_pool: devmem support

2024-08-30 Thread Mina Almasry
hether the underlying type is page or net_iov. Implement checks for net_iov in netmem helpers which delegate to mm APIs, to ensure net_iov are never passed to the mm stack. Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov Acked-by: Jakub Kicinski --- v23: - Fix comment on netmem_is_perf_

[PATCH net-next v24 08/13] net: add support for skbs with unreadable frags

2024-08-30 Thread Mina Almasry
ags of devmem skbs and avoid coalescing devmem skbs with non devmem skbs. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v16: - Fix unreadable handling in skb_split_no_header() (Eric). v11: - drop excessive checks for

Re: [PATCH net-next] selftests: drv-net: remove an unnecessary libmnl include

2025-02-07 Thread Mina Almasry
gned-off-by: Jakub Kicinski Whoops, sorry about that. Reviewed-by: Mina Almasry -- Thanks, Mina

Re: [PATCH v3 net 7/8] net: devmem: do not WARN conditionally after netdev_rx_queue_restart()

2025-03-09 Thread Mina Almasry
face is down so queue reset is not needed. > So, it should not warn if the return value is -ENETDOWN. > > Signed-off-by: Taehee Yoo Reviewed-by: Mina Almasry

Re: [PATCH v3 net 2/8] eth: bnxt: return fail if interface is down in bnxt_queue_mem_alloc()

2025-03-09 Thread Mina Almasry
c5/0x240 > net_devmem_bind_dmabuf_to_queue+0xf8/0x200 > netdev_nl_bind_rx_doit+0x3a7/0x450 > genl_family_rcv_msg_doit+0xd9/0x130 > genl_rcv_msg+0x184/0x2b0 > ? __pfx_netdev_nl_bind_rx_doit+0x10/0x10 > ? __pfx_genl_rcv_msg+0x10/0x10 > netlink_rcv_skb+0x54/0x100 &g

<    1   2   3   4   5