Commit cff69b9
infiniband: do not make assumptions about counters based on HCA name (#678)
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 <daniel.swarbrick@gmail.com>
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>1 parent ee82f2f commit cff69b9
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
292 | | - | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
0 commit comments