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

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

Build:
Build:
LAST BUILD BRANCH: fix_message_too_long
DEFAULT BRANCH: master
Repo Added 20 May 2024 07:42AM UTC
Token 29JiCJ3iPwCegGU5diCpsNfTmRMF7m0po regen
Build 105 Last
Files 11
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

LAST BUILD ON BRANCH fix_message_too_long
branch: fix_message_too_long
CHANGE BRANCH
x
Reset
Sync Branches
  • fix_message_too_long
  • allow_golang_flags_config
  • fix_unittest
  • master
  • multiple_bumps
  • update_gitignore
  • update_go_mod_version

31 Jan 2026 02:31PM UTC coverage: 25.645% (-0.6%) from 26.267%
21545954786

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: Sebastian Sch <sebassch@gmail.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

Relevant lines Covered
Build:
Build:
1357 RELEVANT LINES 348 COVERED LINES
0.93 HITS PER LINE
Source Files on fix_message_too_long
  • Tree
  • List 11
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21545954786 fix_message_too_long 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 ha... push 31 Jan 2026 02:32PM UTC SchSeba github
25.64
21545935772 fix_message_too_long 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 ha... push 31 Jan 2026 02:30PM UTC SchSeba github
25.64
See All Builds (105)

Badge your Repo: ib-sriov-cni

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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