Skip to content
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

SMI/GSI pair suggestion #1529

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mazorasaf
Copy link

This PR introduces a suggestion for the problem related to the SMI/GSI separation in XDR supported HCAs

Added 2 new methods to libibumad:
- umad_get_smi_gsi_pairs
- umad_get_smi_gsi_pairs_by_name

Also new strucure to represent smi/gsi pairs:
 - umad_ca_pair

Added 2 new method to libibmad:
- mad_rpc_open_port2
- mad_rpc_close_port2
mad_rpc_open_port2 will return a pointer to struct
ibmad_ports_pair that holds smi/gsi port items
that includes inside the relevant ca name and ibmad_port pointer.
Also there's a demonstration for how to use this new API in smpquery:
We're getting SMI/GSI details and need to pass the relevant ibmad_port/CA name to the required methods depending if it is using SMI/GSI calls.
For example:
resolve_portid_str is using inside a GMP calls so we're passing it the gsi name and gsi port
smp_query_via is using SMP calls so we're passing it the smi port

@mazorasaf mazorasaf force-pushed the smi_gsi_pair_suggestion branch 5 times, most recently from 1e79d43 to 29a5532 Compare December 11, 2024 15:43
 - umad_get_smi_gsi_pairs
 - umad_get_smi_gsi_pairs_by_name

Also new strucure to represent smi/gsi pairs:
 - umad_ca_pair

Signed-off-by: Asaf Mazor <[email protected]>
 - mad_rpc_open_port2
 - mad_rpc_close_port2
mad_rpc_open_port2 will return a pointer to struct
ibmad_ports_pair that holds smi/gsi port items
that includes inside the relevant ca name and ibmad_port pointer.

Signed-off-by: Asaf Mazor <[email protected]>
We're getting SMI/GSI details and need to pass the relevant ibmad_port/CA name to the required methods depending if it is using SMI/GSI calls.
For example:
resolve_portid_str is using inside a GMP calls
(in case  dest_type is not IB_DEST_DRSLID) so we're passing it the gsi name and gsi port
smp_query_via is using SMP calls so we're passing it the smi port

Signed-off-by: Asaf Mazor <[email protected]>
@mazorasaf mazorasaf force-pushed the smi_gsi_pair_suggestion branch from 29a5532 to 9bc7ec4 Compare December 12, 2024 12:55
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.

1 participant