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

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2024-08-29 21:16:58 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2024/08/2727851
- Thread: https://ratatoskr.run/netdev/2024/08/2726407/t.md

```text
On Thu, 29 Aug 2024 06:01:16 +0000 Mina Almasry wrote:
> @@ -9376,6 +9376,9 @@ int dev_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
>  	if (!dev->netdev_ops->ndo_bpf)
>  		return -EOPNOTSUPP;
>  
> +	if (dev_get_min_mp_channel_count(dev))

there's an extack inside *bpf, would be good to add a message

> +		return -EBUSY;
> +
>  	return dev->netdev_ops->ndo_bpf(dev, bpf);
>  }
>  EXPORT_SYMBOL_GPL(dev_xdp_propagate);
> @@ -9408,6 +9411,9 @@ static int dev_xdp_install(struct net_device *dev, enum bpf_xdp_mode mode,
>  	struct netdev_bpf xdp;
>  	int err;
>  
> +	if (dev_get_min_mp_channel_count(dev))

ditto
```
