• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SchSeba / sriov-network-operator-1 / 21545622043
63%
master: 64%

Build:
Build:
LAST BUILD BRANCH: conditions/nodestate
DEFAULT BRANCH: master
Ran 31 Jan 2026 02:14PM UTC
Jobs 1
Files 107
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jan 2026 02:04PM UTC coverage: 63.367% (+0.2%) from 63.171%
21545622043

push

github

SchSeba
Fix "message too long" error for InfiniBand devices with many VFs

When configuring InfiniBand devices with many VFs, LinkByName() can fail
with "message too long" because the kernel's netlink response exceeds the
~16KB message limit. This happens because LinkByName requests all VF info
(including GUIDs) via RTEXT_FILTER_VF, which generates very large messages
for IB devices.

This commit adds a fallback mechanism:
- Add LinkByNameForSetVf() method that reads minimal link info (name and
  index) directly from sysfs instead of using netlink
- Update configSriovVFDevices() to catch "message too long" errors and
  fall back to LinkByNameForSetVf()
- Add unit test covering the fallback scenario

The fallback only triggers when the specific "message too long" error
occurs, preserving normal behavior for Ethernet devices and IB devices
with fewer VFs.

Signed-off-by: Sebastian Sch <sebassch@gmail.com>

17 of 50 new or added lines in 3 files covered. (34.0%)

198 existing lines in 2 files now uncovered.

9206 of 14528 relevant lines covered (63.37%)

0.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
12.79
-4.4% pkg/host/internal/lib/netlink/netlink.go
11
65.02
-0.19% pkg/host/internal/sriov/sriov.go

Coverage Regressions

Lines Coverage ∆ File
142
65.02
-0.19% pkg/host/internal/sriov/sriov.go
56
12.79
-4.4% pkg/host/internal/lib/netlink/netlink.go
Jobs
ID Job ID Ran Files Coverage
1 21545622043.1 31 Jan 2026 02:14PM UTC 107
63.37
GitHub Action Run
Source Files on build 21545622043
  • Tree
  • List 107
  • Changed 9
  • Source Changed 3
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21545622043
  • 337dd2e8 on github
  • Prev Build on master (#20988142958)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc