Hoi,

Consider the following sequence:

DBGvpp# sh ver
vpp v26.10-rc0~125-g6ad56defd built by pim on summer at 2026-06-14T09:12:11

DBGvpp# bvi create
bvi0
DBGvpp# bvi delete bvi0
DBGvpp# loopback create
/home/pim/src/vpp/src/vlib/node.c:160 (vlib_node_add_next_with_slot) assertion `slot == p[0]' fails
(abort)

It's because 'loop0' tries to re-use the deleted interface node from bvi0. bvi0 has wired tx slot 0 to be l2-input (l2/l2_bvi.c:173), while loop0 extends ethernet devices with drop on 0, ethernet-input on slot 1 and l2-input on slot 2 (ethernet/interface.c:857-865). Reuse between these two in either direction will trip the assert.

PTAL https://gerrit.fd.io/r/c/vpp/+/46052 proposes to walk deleted_hw_interface_nodes searching for a node of the same class.

groet,
Pim

--
Pim van Pelt
PBVP1-RIPE - https://ipng.ch/

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27069): https://lists.fd.io/g/vpp-dev/message/27069
Mute This Topic: https://lists.fd.io/mt/119798408/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to