Skip to content

Conversation

SeppoTakalo
Copy link
Contributor

@SeppoTakalo SeppoTakalo commented Oct 10, 2025

Define CMUX_HEADER_SIZE macro that is 6 or 7 bytes depending on
MTU.

Remove the previous CMUX_FRAME_SIZE_MAX that was a bit misleading
as it meant only the header size without data and was fixed to 7 bytes.

Redefine new macros CMUX_FRAME_SIZE_MAX and CMUX_FRAME_SIZE_MIN which
are actually frame sizes with data included.

@SeppoTakalo
Copy link
Contributor Author

Just realized that after #96897 the header size is also referenced in the header, so I moved the macros to header.

So CMUX length value in frame is only 1 byte as long as MTU is less or equal to 127. Then total size of header is 6 bytes, not 7 as assumed.

Copy link
Contributor

@tomi-font tomi-font left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/missleading/misleading
without a data

Define CMUX_HEADER_SIZE macro that is 6 or 7 bytes depending on
MTU.

Remove the previous CMUX_FRAME_SIZE_MAX that was a bit misleading
as it meant only the header size without data and was fixed to 7 bytes.

Redefine new macros CMUX_FRAME_SIZE_MAX and CMUX_FRAME_SIZE_MIN which
are actually frame sizes with data included.

Signed-off-by: Seppo Takalo <[email protected]>
@SeppoTakalo
Copy link
Contributor Author

Fixed the wording in commit message as suggested by Tomi.

Copy link

@jhedberg jhedberg merged commit 9d93594 into zephyrproject-rtos:main Oct 14, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants