Hi Neale, Please find the information below,
ARCH = aarch64 OS = Ubuntu 16.04 GCC = Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4 I am using VPP stable/1704 and external DPDK version 17.02. I will test as you suggested and would let you know. Regards, Bhanu, HSDC, NXP India. From: Neale Ranns (nranns) [mailto:nra...@cisco.com] Sent: Tuesday, September 19, 2017 2:15 AM To: Bhanu Chander Gaddoju <bhanu.gadd...@nxp.com>; Dave Barach (dbarach) <dbar...@cisco.com>; vpp-dev@lists.fd.io; Ni, Hongjun <hongjun...@intel.com> Subject: Re: [vpp-dev] VPP 1704 and router plugin Hi Bhanu, Can you give us some information on the CPU arch, OS and compiler version you are using please. My best guess at the issue here is the problem of integer promotion through a variadic function. Perhaps you could test this idea by declaring; int fproto = FIB_PROTOCOL_IP4; And then pass the variable ‘fproto’ and not FIB_PROTOCOL_IP4 to the call to vlib_cli_output (in frame 4). Regards, neale From: <vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>> on behalf of Bhanu Chander Gaddoju <bhanu.gadd...@nxp.com<mailto:bhanu.gadd...@nxp.com>> Date: Monday, 18 September 2017 at 00:58 To: "Dave Barach (dbarach)" <dbar...@cisco.com<mailto:dbar...@cisco.com>>, "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>, "Ni, Hongjun" <hongjun...@intel.com<mailto:hongjun...@intel.com>> Subject: Re: [vpp-dev] VPP 1704 and router plugin Hi All, Could you please help me to resolve this issue. Regards, Bhanu. From: Bhanu Chander Gaddoju Sent: Tuesday, September 12, 2017 10:18 PM To: 'Dave Barach (dbarach)' <dbar...@cisco.com<mailto:dbar...@cisco.com>>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>; Ni, Hongjun <hongjun...@intel.com<mailto:hongjun...@intel.com>> Subject: RE: VPP 1704 and router plugin Hi Dave, Thank you for your response. fib_table->ft_desc is not NULL. Please find the details below, ------------------------------------------------------------------------------------------------------------------------ (gdb) c Continuing. Breakpoint 1, format_fib_table_name (s=0x0, ap=...) at /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c:1095 1095 /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c: No such file or directory. (gdb) n 1096 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) 1097 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) 1096 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) 1097 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) 1100 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) 1102 in /root/vpp-1704/build-data/../src/vnet/fib/fib_table.c (gdb) p fib_table $2 = (fib_table_t *) 0xffff3e1c9b80 (gdb) p fib_table->ft_desc $3 = (u8 *) 0xffff3eb07a80 "ipv4-VRF:0" (gdb) p *fib_table $4 = {{v4 = {fib_entry_by_dst_address = {0xffff3d92f738, 0x0, 0x0, 0x0, 0xffff3d92ead8, 0x0 <repeats 19 times>, 0xffff3d92b9a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff3d92f170}, mtrie = { ply_pool = 0xffff3eb5b000, default_leaf = 1}, table_id = 0, index = 0, flow_hash_config = 31, fwd_classify_table_index = 4294967295, rev_classify_table_index = 4294967295}, v6 = { table_id = 1033041720, index = 65535, flow_hash_config = 0}, mpls = {mf_entries = 0xffff3d92f738, mf_lbs = {0, 0, 0, 0, 0, 0, 1033038552, 65535, 0 <repeats 38 times>, 1033025952, 65535, 0 <repeats 14 times>, 1033040240, 65535, 1052094464, 65535, 1, 0, 0, 0, 31, 4294967295, 4294967295, 0 <repeats 1048503 times>}}}, ft_proto = FIB_PROTOCOL_IP4, ft_locks = 3, ft_table_id = 0, ft_index = 0, ft_flow_hash_config = 31, ft_src_route_counts = {2, 0, 5, 0, 3, 0 <repeats 12 times>, 3}, ft_total_route_counts = 11, ft_desc = 0xffff3eb07a80 "ipv4-VRF:0"} ------------------------------------------------------------------------------------------------------------------------ Regards, Bhanu, HSDC, NXP India. From: Dave Barach (dbarach) [mailto:dbar...@cisco.com] Sent: Tuesday, September 12, 2017 10:04 PM To: Bhanu Chander Gaddoju <bhanu.gadd...@nxp.com<mailto:bhanu.gadd...@nxp.com>>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>; Ni, Hongjun <hongjun...@intel.com<mailto:hongjun...@intel.com>> Subject: RE: VPP 1704 and router plugin Set a breakpoint in format_fib_table_name, and see if e.g. fib_table->ft_desc is NULL. Thanks… Dave From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io> [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Bhanu Chander Gaddoju Sent: Tuesday, September 12, 2017 11:45 AM To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>; Ni, Hongjun <hongjun...@intel.com<mailto:hongjun...@intel.com>> Subject: [vpp-dev] VPP 1704 and router plugin Hi All, We are building router plugin with VPP 1704 branch. We used VPP stable/1704 branch and vppsb source code after (https://gerrit.fd.io/r/#/c/5881/ ) check in. Router plugin is loaded properly. We are able to see the router plugin when “vppctl show plugin” command is issued. But, VPP daemon is getting crashed when we issue “vppctl show ip fib”. Crash dump and the VPP configuration is given below. Please help me in resolving this issue. Crash Dump: (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000ffff96b00034 in do_percent (va=<optimized out>, fmt=<optimized out>, _s=<synthetic pointer>) at /root/vpp-1704/build-data/../src/vppinfra/format.c:372 #2 va_format (s=0xffff57a9dfe8 "ipv4-VRF:0, fib_index 0, flow hash: ", s@entry=0x0, fmt=fmt@entry=0xffff96e72ca8 "%U, fib_index %d, flow hash: %U", va=0xffff568fd988, va@entry=0xffff568fd9a8) at /root/vpp-1704/build-data/../src/vppinfra/format.c:403 #3 0x0000ffff96ed3cb4 in vlib_cli_output (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, fmt=fmt@entry=0xffff96e72ca8 "%U, fib_index %d, flow hash: %U") at /root/vpp-1704/build-data/../src/vlib/cli.c:584 #4 0x0000ffff96dfa69c in ip4_show_fib (vm=0xffff96f28ed0 <vlib_global_main>, input=<optimized out>, cmd=<optimized out>) at /root/vpp-1704/build-data/../src/vnet/fib/ip4_fib.c:497 #5 0x0000ffff96ed3f58 in vlib_cli_dispatch_sub_commands (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, cm=cm@entry=0xffff96f291a8 <vlib_global_main+728>, input=input@entry=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:485 #6 0x0000ffff96ed43cc in vlib_cli_dispatch_sub_commands (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, cm=cm@entry=0xffff96f291a8 <vlib_global_main+728>, input=input@entry=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:463 #7 0x0000ffff96ed43cc in vlib_cli_dispatch_sub_commands (vm=0xffff96f28ed0 <vlib_global_main>, cm=0xffff96f291a8 <vlib_global_main+728>, input=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:463 #8 0x0000ffff96ed4700 in vlib_cli_input (vm=0xffff96f28ed0 <vlib_global_main>, input=0xffff568fde00, function=<optimized out>, function_arg=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:559 #9 0x0000000000414d04 in vl_api_cli_request_t_handler () #10 0x0000ffff96f4b434 in vl_msg_api_handler_with_vm_node (am=0xffff568fde00, the_msg=0x49b000, vm=0x305e7dc0, node=0xffff96f28ed0 <vlib_global_main>) at /root/vpp-1704/build-data/../src/vlibapi/api_shared.c:502 #11 0x0000ffff96f32a94 in memclnt_process (vm=<optimized out>, node=0x6d, f=<optimized out>) at /root/vpp-1704/build-data/../src/vlibmemory/memory_vlib.c:543 #12 0x0000ffff96eda090 in vlib_process_bootstrap (_a=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/main.c:1226 #13 0x0000ffff96b07854 in clib_calljmp () at /root/vpp-1704/build-data/../src/vppinfra/longjmp.S:676 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) VPP configuration: # vpp -c /etc/vpp/startup.conf & # vppctl create loopback interface # vppctl set interface state loop0 up # vppctl set interface state GigabitEthernet0/3/0 up # vppctl set interface state GigabitEthernet0/4/0 up # vppctl set interface ip address loop0 2.2.2.2/32 # vppctl set interface ip address GigabitEthernet0/3/0 10.0.10.2/24 # vppctl set interface ip address GigabitEthernet0/4/0 10.0.20.2/24 # vppctl enable tap-inject # vppctl show tap-inject # 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 # vppctl show ip fib Regards, Bhanu, HSDC, NXP India.
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev