Skip to content

Conversation

@mcgov
Copy link
Collaborator

@mcgov mcgov commented Jan 22, 2026

testpmd is apparently sensitive to the order of some flags. fixes an issue where the txpkt flag could be ignored.

testpmd is apparently sensitive to the order of some flags.
fixes an issue where the txpkt flag could be ignored.
@mcgov mcgov requested a review from LiliDeng as a code owner January 22, 2026 18:57
@microsoft microsoft deleted a comment from LiliDeng Jan 23, 2026
Copy link
Collaborator

@paxue paxue left a comment

Choose a reason for hiding this comment

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

I don't see any difference in this commit. Just added a comment, please double check

@mcgov
Copy link
Collaborator Author

mcgov commented Jan 27, 2026

I don't see any difference in this commit. Just added a comment, please double check

It's subtle; the order of the flags being passed to the application has changed. In this application the mbuf-size flag needs to be passed before the others, or their values will be ignored.

@paxue
Copy link
Collaborator

paxue commented Jan 27, 2026

I don't see any difference in this commit. Just added a comment, please double check

It's subtle; the order of the flags being passed to the application has changed. In this application the mbuf-size flag needs to be passed before the others, or their values will be ignored.

Please add a comment for reason in the code for this change, otherwise we don't know why we need to change the order.

Copy link
Collaborator

@paxue paxue left a comment

Choose a reason for hiding this comment

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

add the comment for reason why we need to change the order

f" --max-pkt-len={mtu} --txpkts={mtu} --tx-offloads=0x00008000"
f" --mbuf-size={mbuf_size}"
f" --max-pkt-len={mtu} --txpkts={mtu} "
"--tx-offloads=0x00008000" # enable multi-segment tx offload
Copy link
Collaborator

Choose a reason for hiding this comment

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

add comments for this magic value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants