Skip to content

Conversation

@mazorasaf
Copy link
Contributor

@mazorasaf mazorasaf commented Nov 13, 2025

Today libibumad rejects ports that are not ACTIVE during selection, which prevents users from targeting a specific port that is administratively DOWN. This change permits selecting a port in DOWN state when the user has explicitly specified the port and the device (e.g., by index/identifier).

Automatic port selection behavior is unchanged and will continue to prefer only ACTIVE ports. Validation of the requested port’s existence and basic attributes remains intact.

if user explicitly chose device name AND:

  • port number
  • port is 0 and device is switch
  • Only one port for device

we skip the verification of port state.

This is mainly done to suport opensm standalone feature

Fixes: be54b52 ("libibumad: Add new API to support SMI/GSI seperation")

… port

Today libibumad rejects ports that are not ACTIVE during selection, which
prevents users from targeting a specific port that is administratively DOWN.
This change permits selecting a port in DOWN state when the user has
explicitly specified the port and the device (e.g., by index/identifier).

Automatic port selection behavior is unchanged and will continue to prefer
only ACTIVE ports. Validation of the requested port’s existence and basic
attributes remains intact.

if user explicitly chose device name AND:
 - port number
 - port is 0 and device is switch
 - Only one port for device

we skip the verification of port state.

This is mainly done to suport opensm standalone feature

Fixes: be54b52 ("libibumad: Add new API to support SMI/GSI seperation")
Signed-off-by: Asaf Mazor <[email protected]>
@mazorasaf mazorasaf changed the title libibumad: allow choose port with state DOWN in case of explicit user… libibumad: allow choose port with state DOWN in case of explicit user port Nov 13, 2025
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