Re: [vpp-dev] VPP with FRR Bring-up - tap interface enable causing crash

2021-03-12 Thread Mohsen Meamarian
Hi ashish ,
I saw an email from you that you wrote about a problem with 
vnet_arp_set_ip4_over_ ethernet in vppsbĀ source code . Do you find any solutionĀ 
for this ?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18906): https://lists.fd.io/g/vpp-dev/message/18906
Mute This Topic: https://lists.fd.io/mt/71738703/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP with FRR Bring-up - tap interface enable causing crash

2020-03-09 Thread Satya Murthy
which fdio release version you are using?

--
Thanks & Regards,
Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15712): https://lists.fd.io/g/vpp-dev/message/15712
Mute This Topic: https://lists.fd.io/mt/71738703/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] VPP with FRR Bring-up - tap interface enable causing crash

2020-03-09 Thread Majumdar, Kausik

Hi All,

Wanted to update in this thread that I have debugged and found that VPP crash 
was due to undefined symbol for vlib_buffer_alloc_from_free_list(), which is 
called from router plugin during tap interface enable. I have made the 
following code changes in my WS to get this working.

Currently, with this change enabling tap interface works fine.


diff --git a/router/router/tap_inject_node.c b/router/router/tap_inject_node.c
index 8282c4c..8ce3cf9 100644
--- a/router/router/tap_inject_node.c
+++ b/router/router/tap_inject_node.c
@@ -202,9 +202,15 @@ tap_rx (vlib_main_t * vm, vlib_node_runtime_t * node, 
vlib_frame_t * f, int fd)
 {
   u32 len = vec_len (im->rx_buffers);

+#if 0
   len = vlib_buffer_alloc_from_free_list (vm,
 >rx_buffers[len], NUM_BUFFERS_TO_ALLOC,
 VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX);
+#endif
+
+  len = vlib_buffer_alloc_on_numa (vm,
+>rx_buffers[len], NUM_BUFFERS_TO_ALLOC,
+vm->numa_node);

   _vec_len (im->rx_buffers) += len;

Thanks,
Kausik

From: Majumdar, Kausik 
Sent: Wednesday, March 4, 2020 3:56 PM
To: vpp-dev 
Cc: Majumdar, Kausik 
Subject: VPP with FRR Bring-up - tap interface enable causing crash


Hi All,

I am experiencing VPP crash when I am trying to bring the link up for the VPP 
tap interfaces in Linux. Is this a known issue ? I have tried it few items to 
bring the VPP tap interfaces link up and each time I see VPP crashing. Please 
let me know if there is any workaround.


vpp# show interface
  Name   IdxState  MTU (L3/IP4/IP6/MPLS) 
Counter  Count
TenGigabitEthernet7/0/0   1 down 9000/0/0/0
TenGigabitEthernet7/0/1   2 down 9000/0/0/0
local00 down  0/0/0/0
vpp#
vpp# set interface state TenGigabitEthernet7/0/0 up
vpp# set interface state TenGigabitEthernet7/0/1 up
vpp# set interface ip address TenGigabitEthernet7/0/0 10.0.10.2/24
vpp# set interface ip address TenGigabitEthernet7/0/1 10.0.20.2/24
vpp# show tap
tap tap-inject
vpp# show tap-inject
TenGigabitEthernet7/0/0 -> vpp0
TenGigabitEthernet7/0/1 -> vpp1
vpp#

# ip addr add 10.0.10.2/24 dev vpp0
# ip addr add 10.0.20.2/24 dev vpp1
# ip link set dev vpp0 up
# ip link set dev vpp1 up
Cannot find device "vpp1"
#


/var/log/syslog -

Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.7966] manager: 
(vpp0): new Tun device (/org/freedesktop/NetworkManager/Devices/30)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8181] devices 
added (path: /sys/devices/virtual/net/vpp0, iface: vpp0)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8181] device 
added (path: /sys/devices/virtual/net/vpp0, iface: vpp0): no ifupdown 
configuration found.
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8221] manager: 
(vpp1): new Tun device (/org/freedesktop/NetworkManager/Devices/31)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8423] devices 
added (path: /sys/devices/virtual/net/vpp1, iface: vpp1)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8423] device 
added (path: /sys/devices/virtual/net/vpp1, iface: vpp1): no ifupdown 
configuration found.


Mar  4 13:41:07 root avahi-daemon[1097]: Joining mDNS multicast group on 
interface vpp0.IPv4 with address 10.0.10.2.
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6687] device 
(vpp0): state change: unmanaged -> unavailable (reason 'connection-assumed') 
[10 20 41]
Mar  4 13:41:07 root avahi-daemon[1097]: New relevant interface vpp0.IPv4 for 
mDNS.
Mar  4 13:41:07 root avahi-daemon[1097]: Registering new address record for 
10.0.10.2 on vpp0.IPv4.
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6701] keyfile: 
add connection in-memory (48ac355a-b5dd-4099-8ece-7b9137770887,"vpp0")
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6711] device 
(vpp0): state change: unavailable -> disconnected (reason 'connection-assumed') 
[20 30 41]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6726] device 
(vpp0): Activation: starting connection 'vpp0' 
(48ac355a-b5dd-4099-8ece-7b9137770887)
Mar  4 13:41:07 root vpp[18936]: /usr/bin/vpp: symbol lookup error: 
/usr/lib/x86_64-linux-gnu/vpp_plugins/router.so: undefined symbol: 
vlib_buffer_alloc_from_free_list
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6793] device 
(vpp0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6803] device 
(vpp0): state change: prepare -> config (reason 'none') [40 50 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6822] device 
(vpp0): state change: config -> ip-config (reason 'none') [50 70 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6925] device 
(vpp0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6932] devices 
removed 

[vpp-dev] VPP with FRR Bring-up - tap interface enable causing crash

2020-03-04 Thread Majumdar, Kausik

Hi All,

I am experiencing VPP crash when I am trying to bring the link up for the VPP 
tap interfaces in Linux. Is this a known issue ? I have tried it few items to 
bring the VPP tap interfaces link up and each time I see VPP crashing. Please 
let me know if there is any workaround.


vpp# show interface
  Name   IdxState  MTU (L3/IP4/IP6/MPLS) 
Counter  Count
TenGigabitEthernet7/0/0   1 down 9000/0/0/0
TenGigabitEthernet7/0/1   2 down 9000/0/0/0
local00 down  0/0/0/0
vpp#
vpp# set interface state TenGigabitEthernet7/0/0 up
vpp# set interface state TenGigabitEthernet7/0/1 up
vpp# set interface ip address TenGigabitEthernet7/0/0 10.0.10.2/24
vpp# set interface ip address TenGigabitEthernet7/0/1 10.0.20.2/24
vpp# show tap
tap tap-inject
vpp# show tap-inject
TenGigabitEthernet7/0/0 -> vpp0
TenGigabitEthernet7/0/1 -> vpp1
vpp#

# ip addr add 10.0.10.2/24 dev vpp0
# ip addr add 10.0.20.2/24 dev vpp1
# ip link set dev vpp0 up
# ip link set dev vpp1 up
Cannot find device "vpp1"
#


/var/log/syslog -

Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.7966] manager: 
(vpp0): new Tun device (/org/freedesktop/NetworkManager/Devices/30)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8181] devices 
added (path: /sys/devices/virtual/net/vpp0, iface: vpp0)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8181] device 
added (path: /sys/devices/virtual/net/vpp0, iface: vpp0): no ifupdown 
configuration found.
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8221] manager: 
(vpp1): new Tun device (/org/freedesktop/NetworkManager/Devices/31)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8423] devices 
added (path: /sys/devices/virtual/net/vpp1, iface: vpp1)
Mar  4 13:38:13 root NetworkManager[1175]:   [1583357893.8423] device 
added (path: /sys/devices/virtual/net/vpp1, iface: vpp1): no ifupdown 
configuration found.


Mar  4 13:41:07 root avahi-daemon[1097]: Joining mDNS multicast group on 
interface vpp0.IPv4 with address 10.0.10.2.
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6687] device 
(vpp0): state change: unmanaged -> unavailable (reason 'connection-assumed') 
[10 20 41]
Mar  4 13:41:07 root avahi-daemon[1097]: New relevant interface vpp0.IPv4 for 
mDNS.
Mar  4 13:41:07 root avahi-daemon[1097]: Registering new address record for 
10.0.10.2 on vpp0.IPv4.
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6701] keyfile: 
add connection in-memory (48ac355a-b5dd-4099-8ece-7b9137770887,"vpp0")
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6711] device 
(vpp0): state change: unavailable -> disconnected (reason 'connection-assumed') 
[20 30 41]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6726] device 
(vpp0): Activation: starting connection 'vpp0' 
(48ac355a-b5dd-4099-8ece-7b9137770887)
Mar  4 13:41:07 root vpp[18936]: /usr/bin/vpp: symbol lookup error: 
/usr/lib/x86_64-linux-gnu/vpp_plugins/router.so: undefined symbol: 
vlib_buffer_alloc_from_free_list
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6793] device 
(vpp0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6803] device 
(vpp0): state change: prepare -> config (reason 'none') [40 50 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6822] device 
(vpp0): state change: config -> ip-config (reason 'none') [50 70 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6925] device 
(vpp0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6932] devices 
removed (path: /sys/devices/virtual/net/vpp1, iface: vpp1)
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6937] device 
(vpp0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6941] device 
(vpp0): state change: secondaries -> activated (reason 'none') [90 100 0]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.6950] device 
(vpp0): Activation: successful, device activated.
Mar  4 13:41:07 root dbus[1099]: [system] Activating via systemd: service 
name='org.freedesktop.nm_dispatcher' 
unit='dbus-org.freedesktop.nm-dispatcher.service'
Mar  4 13:41:07 root avahi-daemon[1097]: Interface vpp0.IPv4 no longer relevant 
for mDNS.
Mar  4 13:41:07 root avahi-daemon[1097]: Leaving mDNS multicast group on 
interface vpp0.IPv4 with address 10.0.10.2.
Mar  4 13:41:07 root systemd[1]: Starting Network Manager Script Dispatcher 
Service...
Mar  4 13:41:07 root avahi-daemon[1097]: Withdrawing address record for 
10.0.10.2 on vpp0.
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.7374] device 
(vpp0): state change: activated -> unmanaged (reason 'unmanaged') [100 10 3]
Mar  4 13:41:07 root NetworkManager[1175]:   [1583358067.7401] devices 
removed (path: