Skip to content

no-pad: add toplevel -p option to disable frame padding#13

Open
jeso-mchp wants to merge 1 commit intomasterfrom
master.add-no-pad-option
Open

no-pad: add toplevel -p option to disable frame padding#13
jeso-mchp wants to merge 1 commit intomasterfrom
master.add-no-pad-option

Conversation

@jeso-mchp
Copy link
Copy Markdown
Contributor

This enables sending runt frames. This is useful for testing on NPI ports and frame injection where IFH is prepended, so the wire length is above 60 bytes, while the frame data may be below.

@jeso-mchp jeso-mchp requested review from igudich April 9, 2026 10:47
Comment on lines +233 to +235
NoPadGuard *gp = &g;
(void)gp; // suppress unused warning
NO_PAD = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can't get that. Why to use the guard at all? What does this pointer do? Some trick here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No this does not make any sense. The entire last part of this testcase is of little value, I will remove it. I see some general tests for padding also snuck into this patch, which was not the intention, so I will remove those as well!

This enables sending runt frames. This is useful for testing on NPI
ports and frame injection where IFH is prepended, so the wire length is
above 60 bytes, while the frame data may be below.
@jeso-mchp jeso-mchp force-pushed the master.add-no-pad-option branch from e0926f9 to 5b163e7 Compare April 10, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants