Skip to content

Commit 73bf685

Browse files
lkundrakyuwata
authored andcommittedOct 14, 2022
udev/rules: add by-path and by-ibdev links to infiniband verbs
The uverbs devices are sequentially numbered and are not guarranteed to stay stable across reboot. At least one good person was disappointed by this, because they couldn't find their device: https://bugzilla.redhat.com/show_bug.cgi?id=2036515 Let's add a few helpful links.
1 parent aaf4325 commit 73bf685

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎rules.d/60-infiniband.rules

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# do not edit this file, it will be overwritten on update
2+
3+
ACTION=="remove", GOTO="infiniband_end"
4+
SUBSYSTEM!="infiniband_verbs", GOTO="infiniband_end"
5+
KERNEL!="uverbs*", GOTO="infiniband_end"
6+
7+
IMPORT{builtin}="path_id"
8+
9+
ENV{ID_PATH}=="?*", SYMLINK+="infiniband/by-path/$env{ID_PATH}"
10+
ATTR{ibdev}=="?*", SYMLINK+="infiniband/by-ibdev/uverbs-$attr{ibdev}"
11+
12+
LABEL="infiniband_end"

0 commit comments

Comments
 (0)
Please sign in to comment.