Hello Stanislav,

The is-is itself is working, thank you!
tn3# show isis neighbor
Area myisis:
System Id           Interface   L  State        Holdtime SNPA
tn1                 Ten0.1914   3  Up            28       2020.2020.2020

Unfortunately, both lcp lcp-auto-subint and lcp lcp-sync still looks broken. 
Note, I've applied your patches to 22.10 version as master branch was not 
stable enough; so if it is needed, I can also test on master.
1. LCP auto-subint:
DBGvpp# set interface state TenGigabitEthernet1c/0/1 up
DBGvpp# lcp lcp-auto-subint on
DBGvpp# lcp lcp-
lcp-auto-subint  lcp-sync
DBGvpp# lcp lcp-sync on
DBGvpp# lcp create 1 host-if Ten0
DBGvpp# show lcp
lcp default netns '<unset>'
lcp lcp-auto-subint on
lcp lcp-sync on
lcp del-static-on-link-down off
lcp del-dynamic-on-link-down off
itf-pair: [0] TenGigabitEthernet1c/0/1 tap1 Ten0 1304 type tap
DBGvpp#
Then VPP crashes:

Jan 31 10:05:57 tn3 vnet[1233293]: 
/home/abramov/vpp-p3-lcp/src/vnet/interface_funcs.h:60 (vnet_get_sw_interface) 
assertion `! pool_is_free (vnm->interface_main.sw_interfaces, _e)' fails
Jan 31 10:05:57 tn3 systemd-udevd[1233343]: ethtool: autonegotiation is unset 
or enabled, the speed and duplex are not writable.
Jan 31 10:05:57 tn3 vnet[1233293]: received signal SIGABRT, PC 0x7f81e45b800b
Jan 31 10:05:57 tn3 systemd-udevd[1233343]: Using default interface naming 
scheme 'v245'.
Jan 31 10:05:57 tn3 vnet[1233293]: #0  0x00007f81e4ab1c92 unix_signal_handler + 
0x1f2
Jan 31 10:05:57 tn3 vnet[1233293]: #1  0x00007f81e49af420 0x7f81e49af420
Jan 31 10:05:57 tn3 vnet[1233293]: #2  0x00007f81e45b800b gsignal + 0xcb
Jan 31 10:05:57 tn3 vnet[1233293]: #3  0x00007f81e4597859 abort + 0x12b
Jan 31 10:05:57 tn3 vnet[1233293]: #4  0x00000000004072f3 0x4072f3
Jan 31 10:05:57 tn3 vnet[1233293]: #5  0x00007f81e48e9109 debugger + 0x9
Jan 31 10:05:57 tn3 vnet[1233293]: #6  0x00007f81e48e8eca _clib_error + 0x2da
Jan 31 10:05:57 tn3 vnet[1233293]: #7  0x00007f81e4c94f68 vnet_get_sw_interface 
+ 0xa8
Jan 31 10:05:57 tn3 vnet[1233293]: #8  0x00007f81e4c94f9b 
vnet_get_sup_sw_interface + 0x1b
Jan 31 10:05:57 tn3 vnet[1233293]: #9  0x00007f81e4c9500b 
vnet_get_sup_hw_interface + 0x1b
Jan 31 10:05:57 tn3 vnet[1233293]: #10 0x00007f81e4c98bca 
vnet_create_sub_interface + 0x5a
Jan 31 10:05:57 tn3 vnet[1233293]: #11 0x00007f819ce8db6a lcp_router_link_add + 
0x5ea
Jan 31 10:05:57 tn3 vnet[1233293]: #12 0x00007f819ce98fc3 nl_link_add + 0xd3
Jan 31 10:05:57 tn3 vnet[1233293]: #13 0x00007f819ce986a0 nl_route_dispatch + 
0xe0
Jan 31 10:05:57 tn3 vnet[1233293]: #14 0x00007f819cf29f52 0x7f819cf29f52

Thread 1 "vpp_main" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff6b0c859 in __GI_abort () at abort.c:79
#2  0x00000000004072f3 in os_panic () at 
/home/abramov/vpp-p3-lcp/src/vpp/vnet/main.c:417
#3  0x00007ffff6e5e109 in debugger () at 
/home/abramov/vpp-p3-lcp/src/vppinfra/error.c:84
#4  0x00007ffff6e5deca in _clib_error (how_to_die=2, function_name=0x0, 
line_number=0, fmt=0x7ffff7cc8208 "%s:%d (%s) assertion `%s' fails") at 
/home/abramov/vpp-p3-lcp/src/vppinfra/error.c:143
#5  0x00007ffff720af68 in vnet_get_sw_interface (vnm=0x7ffff7f696e8 
<vnet_main>, sw_if_index=1650550633) at 
/home/abramov/vpp-p3-lcp/src/vnet/interface_funcs.h:60
#6  0x00007ffff720af9b in vnet_get_sup_sw_interface (vnm=0x7ffff7f696e8 
<vnet_main>, sw_if_index=1650550633) at 
/home/abramov/vpp-p3-lcp/src/vnet/interface_funcs.h:83
#7  0x00007ffff720b00b in vnet_get_sup_hw_interface (vnm=0x7ffff7f696e8 
<vnet_main>, sw_if_index=1650550633) at 
/home/abramov/vpp-p3-lcp/src/vnet/interface_funcs.h:94
#8  0x00007ffff720ebca in vnet_create_sub_interface (sw_if_index=1650550633, 
id=1914, flags=18, inner_vlan_id=0, outer_vlan_id=1914, 
sub_sw_if_index=0x7fffac7ad980) at 
/home/abramov/vpp-p3-lcp/src/vnet/ethernet/interface.c:1063
#9  0x00007fffaf404b6a in lcp_router_link_add (rl=0x5a3450, ctx=0x7fffbb9b18c8) 
at /home/abramov/vpp-p3-lcp/src/plugins/linux-cp/lcp_router.c:423
#10 0x00007fffaf40ffc3 in nl_link_add (rl=0x5a3450, arg=0x7fffbb9b18c8) at 
/home/abramov/vpp-p3-lcp/src/plugins/linux-cp/lcp_nl.c:280
#11 0x00007fffaf40f6a0 in nl_route_dispatch (obj=0x5a3450, arg=0x7fffbb9b18c8) 
at /home/abramov/vpp-p3-lcp/src/plugins/linux-cp/lcp_nl.c:323
#12 0x00007fffaf4a0f52 in ?? () from /lib/x86_64-linux-gnu/libnl-3.so.200
#13 0x00007fffaf441990 in ?? () from /lib/x86_64-linux-gnu/libnl-route-3.so.200
#14 0x00007fffaf49db52 in nl_cache_parse () from 
/lib/x86_64-linux-gnu/libnl-3.so.200
#15 0x00007fffaf4a2984 in nl_msg_parse () from 
/lib/x86_64-linux-gnu/libnl-3.so.200
#16 0x00007fffaf40c4c4 in nl_route_process_msgs () at 
/home/abramov/vpp-p3-lcp/src/plugins/linux-cp/lcp_nl.c:344
#17 0x00007fffaf40b721 in nl_route_process (vm=0x7fffb6ae8740, 
node=0x7fffb8794380, frame=0x0) at 
/home/abramov/vpp-p3-lcp/src/plugins/linux-cp/lcp_nl.c:557
#18 0x00007ffff6fc528d in vlib_process_bootstrap (_a=140736123472776) at 
/home/abramov/vpp-p3-lcp/src/vlib/main.c:1221
#19 0x00007ffff6e753d8 in clib_calljmp () at 
/home/abramov/vpp-p3-lcp/src/vppinfra/longjmp.S:123
#20 0x00007fffaea58b80 in ?? ()
#21 0x00007ffff6fc4d0f in vlib_process_startup (vm=0x8, p=0x7ffff6fc7bea 
<dispatch_suspended_process+794>, f=0x7fffaea58c90) at 
/home/abramov/vpp-p3-lcp/src/vlib/main.c:1246
#22 0x00007ffff6ed3c1e in vec_mem_size (v=0xbf3d636e2d3e12) at 
/home/abramov/vpp-p3-lcp/src/vppinfra/vec.c:15
#23 0x00007fffb6ae8740 in ?? ()
#24 0x0000003500000000 in ?? ()
#25 0x0000000000000009 in ?? ()
#26 0x00007fffbb96b7e0 in ?? ()
#27 0x00007fffbb96b7e0 in ?? ()
#28 0x00007fffbb9a00a0 in ?? ()
#29 0x00bf3d636e2d116c in ?? ()
#30 0x00007fffbb92b9b8 in ?? ()
#31 0x00bf3d636e2d3e12 in ?? ()
#32 0x00007fffbb96b7e0 in ?? ()
#33 0x00007fffb8794380 in ?? ()
#34 0x0000000000000000 in ?? ()
(gdb)
(gdb) info locals
set = {__val = {0, 2479908161616046770, 2479908161616046770, 
2479908161616046770, 2479908161616046770, 2479908161616046770, 
7865077477686057405, 7865077477686057405, 7865077477686057405, 
7865077477686057405, 7865077477686057405, 7865077477686057405, 
7865077477686057405, 7865077477686057405, 8521594516526759676,
8521594516526759676}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
(gdb)

As for lcp-sync, situation is harder to debug. It initially works, but host-if 
(TAP interface) goes down from time to time (I could not understand well , and 
after some iterations VPP also crashes.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22527): https://lists.fd.io/g/vpp-dev/message/22527
Mute This Topic: https://lists.fd.io/mt/96476162/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to