🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Jeremy Kerr Wed, 25 Nov 2026 00:39
Re: [PATCH v3 3/3] net: mctp i3c: clamp transfer lengths to the controller limits
#22216
Author: Jeremy Kerr
Date: Wed, 25 Nov 2026 00:39
33 lines
9541 bytes
Hi Shubham,

> mctp_i3c_setup() takes the maximum read and write lengths straight from
> GETMRL and GETMWL. Those describe the endpoint alone, so on a controller
> with a smaller limit every read can be built too large and rejected.
> Transmit packets can similarly reach the controller even when they are
> larger than its transmit buffer. The receive path also allocates an skb
> for data the hardware can never deliver.
> 
> Use i3c_device_get_max_read_xfer_bytes() and
> i3c_device_get_max_write_xfer_bytes() instead, which return the smaller
> of the endpoint and controller limits.
> 
> Behaviour is unchanged when neither reports a limit, as the helpers
> return 0 exactly as the GETMRL and GETMWL fields do today.
> 
> Signed-off-by: Shubham Patil <shubhamsanjay.patil@amd.com>

Looks good, thanks!

For the MCTP side of things:

Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>

Since this depends on the new i3c helpers, which (I assume) would be
going through the i3c tree, I assume the whole series should stay
together?

Cheers,


Jeremy
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads