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

SchSeba / ib-sriov-cni / 21545935772
26%
master: 26%

Build:
Build:
LAST BUILD BRANCH: fix_message_too_long
DEFAULT BRANCH: master
Ran 31 Jan 2026 02:31PM UTC
Jobs 1
Files 11
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:28PM UTC coverage: 25.645% (-0.6%) from 26.267%
21545935772

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" (EMSGSIZE) because the kernel's netlink response
exceeds the message limit. This happens because LinkByName requests all
VF info (including GUIDs) 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 ApplyVFConfig() and ResetVFConfig() to catch EMSGSIZE errors
  and fall back to LinkByNameForSetVf()
- Add path traversal protection for interface names

The fallback only triggers when the specific EMSGSIZE error occurs,
preserving normal behavior for devices with fewer VFs.

Signed-off-by: User <user@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

6 of 59 new or added lines in 2 files covered. (10.17%)

348 of 1357 relevant lines covered (25.64%)

0.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
22
0.0
0.0% pkg/types/mocks/NetlinkManager.go
31
49.47
-4.1% pkg/sriov/sriov.go
Jobs
ID Job ID Ran Files Coverage
1 21545935772.1 31 Jan 2026 02:30PM UTC 11
25.64
GitHub Action Run
Source Files on build 21545935772
  • Tree
  • List 11
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21545935772
  • d3a2de8d on github
  • Prev Build on master (#21545860150)
  • Next Build on fix_message_too_long (#21545954786)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc