nvmf/rdma: apply TOS on listen and accept - #4
Merged
Conversation
Lets nvmf_create_transport set the IPv4 TOS / IPv6 TCLASS on RDMA listen IDs and accepted QPs so replica return traffic can share the initiator's DSCP class. 0 keeps the rdma-core default. Co-authored-by: Cursor <cursoragent@cursor.com>
JSON decode, rdma_set_option on listen/accept, and dump_opts so the nvmf RDMA TOS path cannot land untested. 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
tostonvmf_create_transportfor the RDMA transport (IPv4 TOS / IPv6 TCLASS).rdma_listen()and on each accepted QP beforerdma_accept(), so replica return traffic can share the initiator's DSCP class.0keeps the rdma-core default (untagged).Test plan
--with-rdma=mlx5_dvand confirmnvmf_create_transportacceptstos.nvmf_get_transportsreports the configuredtos.tos=96(priority 3), outbound target packets are DSCP 24; withtos=0they are untagged.Made with Cursor