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

rollandf / sriov-network-operator / 28796165973

06 Jul 2026 01:44PM UTC coverage: 62.253% (+0.06%) from 62.196%
28796165973

push

github

rollandf
mellanox: enable DDI on VFs via VFConfigHook

Add a VFConfigHook extension point to SriovInterface that vendor plugins
can register to inject per-VF logic after unbind. The Mellanox plugin
registers MellanoxVFHook, which enables DDI (Data Direct Interface) on
VFs whose PF is configured with flow_steering_mode=hmfs (Spectrum-X).

The hook loads the fwctl/mlx5_fwctl kernel modules if absent, then calls
doca_mgmt_data_direct set. Unsupported NICs (no fwctl sysfs entry or
firmware rejection) are soft-skipped without failing the SR-IOV flow.

doca_mgmt_data_direct is compiled from the DOCA samples bundled in the
base image and copied into the NVIDIA config-daemon container image.
No CRD changes are required; the existing flow_steering_mode=hmfs
devlink param serves as the DDI opt-in signal.

Signed-off-by: Fred Rolland <frolland@nvidia.com>

25 of 143 new or added lines in 5 files covered. (17.48%)

818 existing lines in 7 files now uncovered.

10100 of 16224 relevant lines covered (62.25%)

0.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.49
/controllers/generic_network_controller.go


Source Not Available

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