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

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

Build:
Build:
LAST BUILD BRANCH: conditions/nodestate
DEFAULT BRANCH: master
Ran 31 Jan 2026 01:51PM UTC
Files 107
Run time 2s
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 01:40PM UTC coverage: 63.221% (+0.05%) from 63.171%
21545342910.1

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>

9179 of 14519 relevant lines covered (63.22%)

0.7 hits per line

Source Files on job 21545342910.1
  • Tree
  • List 107
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21545342910
  • c0fe6418 on github
  • Prev Job for on support_ib_netlink (#20988142958.1)
  • Next Job for on support_ib_netlink (#21545435651.1)
  • 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