From 1e07127dc20eeb1970bb61878d0d879b1e833e12 Mon Sep 17 00:00:00 2001 From: Jeffrey Chu Date: Thu, 12 Dec 2024 14:29:42 +0800 Subject: [PATCH] Update class_infiniband.go Signed-off-by: Jeffrey Chu --- sysfs/class_infiniband.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysfs/class_infiniband.go b/sysfs/class_infiniband.go index 7892c69a..7edb9eb2 100644 --- a/sysfs/class_infiniband.go +++ b/sysfs/class_infiniband.go @@ -279,8 +279,8 @@ func (fs FS) parseInfiniBandPort(name string, port string) (*InfiniBandPort, err return nil, fmt.Errorf("could not parse rate file in %q: %w", portPath, err) } - // Intel irdma module does not expose /sys/class/infiniband//ports//counters - if !strings.HasPrefix(ibp.Name, "irdma") { + // Intel irdma and Broadcom RoCE does not expose /sys/class/infiniband//ports//counters + if !strings.HasPrefix(ibp.Name, "irdma") && !strings.HasPrefix(ibp.Name, "bnxt_re") { counters, err := parseInfiniBandCounters(portPath) if err != nil { return nil, err