Re: [PATCH RFC net-next v1 5/5] net: devmem: Implement TX path

From: David Ahern
Date: Sat Dec 28 2024 - 14:28:35 EST


On 12/20/24 5:42 PM, Mina Almasry wrote:
> diff --git a/include/uapi/linux/uio.h b/include/uapi/linux/uio.h
> index 649739e0c404..41490cde95ad 100644
> --- a/include/uapi/linux/uio.h
> +++ b/include/uapi/linux/uio.h
> @@ -38,6 +38,11 @@ struct dmabuf_token {
> __u32 token_count;
> };
>
> +struct dmabuf_tx_cmsg {
> + __u32 dmabuf_id;

I believe you need to make sure the u64 is properly aligned:

__u32 unused; // and verify it is set to 0

> + __u64 dmabuf_offset;
> +};
> +
> /*
> * UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
> */