Skip to content

vpp-manager: set uplink RX mode after admin-up - #1068

Merged
onong merged 1 commit into
masterfrom
fix-rx-mode-admin-up-order
Nov 26, 2026
Merged

onong merged 1 commit into
masterfrom
fix-rx-mode-admin-up-order

Conversation

@aritrbas

Copy link
Copy Markdown
Collaborator

We were setting the uplink RX mode before bringing the interface admin-up. DPDK initializes RX interrupt support when the device starts, so requesting interrupt or adaptive mode before admin-up can fail, leaving the queues in polling mode.

Move SetInterfaceRxMode() immediately after the existing InterfaceAdminUp() call. This preserves IPv6 RA suppression, NAT and VRF configuration before admin-up, address and route programming afterwards, and the existing TAP/link-local startup sequence.

Observed logs:

setting rx mode on HundredGigabitEthernet3d/0/0 queue-id 0 failed
dpdk_interface_rx_mode_change: unsupported op (is the interface up?)
failed to set interface RX mode: VPPApiError: Unimplemented (-9)

Failure sequence:

  • VPP creates the DPDK RX queue in polling mode by default --> rxq->mode = VNET_HW_IF_RX_MODE_POLLING
  • CalicoVPP calls SetInterfaceRxMode() before InterfaceAdminUp()
  • DPDK errors out because RX mode change is attempted before the interface is admin-up
  • The queue remains in the default polling mode

DPDK initializes RX interrupt support when the device starts.
Setting the RX mode before admin-up fails and leave the queues polling.

Move RX mode configuration immediately after the existing admin-up call,
preserving IPv6 RA suppression, CNAT and VRF setup before admin-up, address
and route setup afterwards, and the Linux TAP and link-local startup sequence.

Signed-off-by: Aritra Basu <aritrbas+gh@cisco.com>
@onong
onong merged commit 8fce9c3 into master Nov 26, 2026
4 checks passed
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.

2 participants