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

infiniband: do not make assumptions about counters based on HCA name #678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dswarbrick
Copy link
Contributor

Some users have reported cases of systemd "predictable network interface naming" apparently also renaming the HCA device. This means we can no longer make assumptions about which counter(s) should be present based on the HCA name (i.e., irdma*, mlx5_*). The previous approach was quite brittle anyway, since there will undoubtedly be other IB / RoCE drivers in future which implement the hw_counters directory (but not the older counters directory).

Some users have reported cases of systemd "predictable network interface
naming" apparently also renaming the HCA device. This means we can no
longer make assumptions about which counter(s) should be present based
on the HCA name (i.e., irdma*, mlx5_*). The previous approach was quite
brittle anyway, since there will undoubtedly be other IB / RoCE drivers
in future which implement the hw_counters directory (but not the older
counters directory).

Signed-off-by: Daniel Swarbrick <[email protected]>
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, LGTM

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.

3 participants