-
Notifications
You must be signed in to change notification settings - Fork 226
dpdk: mtu flag hotfix #4247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
dpdk: mtu flag hotfix #4247
Conversation
testpmd is apparently sensitive to the order of some flags. fixes an issue where the txpkt flag could be ignored.
paxue
left a comment
There was a problem hiding this 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
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. |
paxue
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
testpmd is apparently sensitive to the order of some flags. fixes an issue where the txpkt flag could be ignored.