rdma/mlx5_dv: force RoCE IPv4 TOS 96 on RTR regardless of SL - #6
Merged
Merged
Conversation
Inferring traffic_class from ah_attr.sl was a no-op: mlx5_dv RTR AVs keep sl=0 while rdma_set_option only programs the SQ. Stamp TOS 96 / SL 3 (CS3) whenever IBV_QP_AV is present, and log the AV so a canary IM roll can prove the helper fired. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
traffic_classfromah_attr.sl. mlx5_dv RTR AVs keep sl=0 whilerdma_set_option(TOS)only programs the SQ, so the helper was a no-op and switch Q3 stayed frozen.IBV_QP_AVis present, force TOS 96 / SL 3 (CS3 / DSCP 24), matchingdataEngineRdmaPriorityClass v2=3. Do not addIBV_QP_AVif the kernel did not already supply a full AV.is_globalso a canary IM roll can prove the helper fired.Test plan
v26.05.0+linkpool.5, pin dep-versions, build IMv1.13.0-reset.14RoCE RTR TOS 96xe-1/1/5Q3 increments with ma5-11 writes; if not, check uplinks /xe-1/1/7(EVPN VXLAN)Made with Cursor