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

2024-06-17 Thread Pavel Begunkov
On 6/13/24 02:35, Mina Almasry wrote: Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from

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

2024-06-14 Thread Markus Elfring
… > +++ b/net/core/netdev-genl.c … > int netdev_nl_bind_rx_doit(struct sk_buff *skb, struct genl_info *info) > { … > + rtnl_lock(); > + > + netdev = __dev_get_by_index(genl_info_net(info), ifindex); … > +err_unlock: > + rtnl_unlock(); > + return err; > } … Would you become inter

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

2024-06-12 Thread Mina Almasry
Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from mapping will be inserted into a genpool