[PATCH v24 01/20] net: Introduce direct data placement tcp offload

Sagi Grimberg sagi at grimberg.me
Sun Apr 21 04:47:30 PDT 2024


> +int ulp_ddp_sk_add(struct net_device *netdev,
> +		   struct sock *sk,
> +		   struct ulp_ddp_config *config,
> +		   const struct ulp_ddp_ulp_ops *ops)
> +{
> +	int ret;
> +
> +	/* put in ulp_ddp_sk_del() */
> +	dev_hold(netdev);
> +
> +	config->io_cpu = sk->sk_incoming_cpu;
> +	ret = netdev->netdev_ops->ulp_ddp_ops->sk_add(netdev, sk, config);

Still don't understand why you need the io_cpu config if you are passing
the sk to the driver...



More information about the Linux-nvme mailing list