Skip to content

[action] [PR:1870] vslib/vpp: register hostif info for link-state updates#130

Merged
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/1870
May 6, 2026
Merged

[action] [PR:1870] vslib/vpp: register hostif info for link-state updates#130
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/1870

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Summary

  • register VPP hostif info during hostif creation
  • allow runtime link events to match the hostif ifindex
  • clean up hostif bookkeeping on remove

Problem

On the VPP path, hostif creation did not populate m_hostif_info_map. As a result, runtime RTM_NEWLINK events were dropped by syncOnLinkMsg() because hasIfIndex() could not match the interface, so no SAI port-state-change notification was sent and oper_status in APPL_DB could remain stale.

Fix

Call hostif_create_tap_veth_forwarding(name, tapfd, obj_id) from SwitchVpp::vs_create_hostif_tap_interface() and remove the matching hostif bookkeeping in SwitchVpp::vs_remove_hostif_tap_interface().

Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

## Summary
- register VPP hostif info during hostif creation
- allow runtime link events to match the hostif ifindex
- clean up hostif bookkeeping on remove

## Problem
On the VPP path, hostif creation did not populate `m_hostif_info_map`. As a result, runtime `RTM_NEWLINK` events were dropped by `syncOnLinkMsg()` because `hasIfIndex()` could not match the interface, so no SAI port-state-change notification was sent and `oper_status` in APPL_DB could remain stale.

## Fix
Call `hostif_create_tap_veth_forwarding(name, tapfd, obj_id)` from `SwitchVpp::vs_create_hostif_tap_interface()` and remove the matching hostif bookkeeping in `SwitchVpp::vs_remove_hostif_tap_interface()`.

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-sairedis#1870

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@mssonicbld
mssonicbld merged commit e351a7a into Azure:202603 May 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant