Re: [net-next v41] mctp pcc: Implement MCTP over PCC Transport

From: Adam Young

Date: Tue May 12 2026 - 12:38:32 EST



On 5/12/26 00:07, Jeremy Kerr wrote:
Hi Adam,

Sorry, I should have been more explicit here.  I am not certain what is
going to happen with fragmentation, so I want to be protected against
future changes.
Nothing is going to happen with fragmentation. Your driver will only see
linear skbs in the ndo_start_xmit callback.

Adding the skb_linearize() there is unnecessary, and creates ambiguity
about the structure of the skbs that we're dealing with in that path.

OK, I get it now.  I was thinking that the Fragmentation was a likely part of the progression, as default MCTP packets are so small.



The check in validate_xmit_skb() is good, as it protects against the
current set up. So my option was to put a comment in here and hope both
changes happened together, or to just try and get this portion of the
driver solid against the change.
I'm not clear on what changes you're referring to here?

Future proofing.  Sounds like it is a non-issue.  Disregard.  I will remove the linearize call in a future revision.



And I thought that was what you were suggesting in the comment. The
original comment sounded more like an "here is an optimization" instead
of "this is important enough to kick back"
It's less of an optimisation, and more removing something that is
unneeded, and potentially confusing ("why is the driver doing this?")?

As for spacing, I get that there is a style, but it really should be
encoded in checkstyle.sh or something and automated.  My own tendency is
to put way too many spaces in to chunk things together, and I end up
going over-draconian on stripping them out to try and meet the expected
layout.
I'm not too fussed about the style at the level you have here, these are
suggestions to clean up if you're already re-rolling. My confusion is
that you had applied my feedback to one part of the code, but not to the
area I had commented on (which has the same style structure).

You also had some sashiko feedback on v40. I'm not sure whether all
items are relevant (I *think* you're OK for the first, for example), but
worth confirming:

https://sashiko.dev/#/patchset/20260508032953.337036-1-admiyo%40os.amperecomputing.com

Yeah, I saw those, and was processing through them.  I have found similar type issues running against Codex.

Some of the issues I found are due to the interactions with the PCC layer, and need to be addressed there.  It leads to some edge conditions that are, for me, impossible to produce right now. There is one change it suggests which I thought I had already made.

If those changes are going to cause significatnt changes, I will probably also integrate your suggestion on how to deal with IRQ-safe stats posting.



Cheers,


Jeremy