Skip to content

vif-plug-representor: add VF MAC programming#18

Open
dshcherb wants to merge 5 commits into
ovn-org:mainfrom
dshcherb:2026-02-vf-mac-programming
Open

vif-plug-representor: add VF MAC programming#18
dshcherb wants to merge 5 commits into
ovn-org:mainfrom
dshcherb:2026-02-vf-mac-programming

Conversation

@dshcherb

Copy link
Copy Markdown
Member

Add VF MAC programming support over devlink using VF representors and unit test coverage (tested functionally on a BF3 DPU).

  • VF MAC is programmed through DEVLINK_CMD_PORT_SET
  • The logical port MAC is used for as the VF MAC
  • Async updates and retries are handled
  • Unit test coverage for various paths

Add VF MAC programming support over devlink using VF representors and
unit test coverage (tested functionally on a BF3 DPU).

* VF MAC is programmed through DEVLINK_CMD_PORT_SET
* The logical port MAC is used for as the VF MAC
* Async updates and retries are handled
* Unit test coverage for various paths
Comment thread Documentation/topics/vif-plug-providers/vif-plug-representor.rst Outdated
@dshcherb dshcherb requested a review from dimaqq February 21, 2026 00:30

@fnordahl fnordahl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you for the contribution.

LGTM!

@fnordahl

Copy link
Copy Markdown
Member

@dshcherb could use a rebase though.

@fnordahl fnordahl self-requested a review March 20, 2026 15:29
@dshcherb

Copy link
Copy Markdown
Member Author

Done, thanks a lot for the review!

The 7 vf-mac-* subcommands were registered in the ovstest dispatch
table but had no autotest wrappers, so they were never exercised in CI.
When a VF representor appears at runtime the rename check fires before
MAC programming, leaving the VF with its default MAC if OVN claims the
port before the rename completes.  Move the MAC programming call before
the rename guard. Devlink port index is used rather than the netdev
name so it is safe to issue while a rename is pending.
@dshcherb

Copy link
Copy Markdown
Member Author

@fnordahl Sorry, might need another approval after 481b57d

@dimaqq

dimaqq commented Apr 20, 2026

Copy link
Copy Markdown

@dshcherb I'm not really qualifies to review this code, but thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants