[vpp-dev] #vpp

2019-09-26 Thread jiangxiaoming
vpp main thread "vpp_main" hang up, if i assign to much cpu to  'cpu>corelist-workers' at startup.conf file. It ends with dead loop in internal_mallinfo(), is there any way to aviod this  situation? vpp.log Description: Binary data -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to

[vpp-dev] vpp: stat: counter thread dimension write out of range and lead to unpredict behavior

2019-09-27 Thread jiangxiaoming
my code is on master commit f5667c3055dbd6755277f085c6778c2b1104aa6e in stat_segment.c: stat_validate_counter_vector(), create two dimension: *counter[thread_num][max] * -- static void

[vpp-dev] ldp write assert error

2019-11-21 Thread jiangxiaoming
I used ab with ldp,  for nginx bench test. Below is my start command: > > sudo env \ > VCL_CONFIG=/tmp/vcl-test-3af8e.conf \ > VCL_DEBUG=1 \ > LDP_DEBUG=1 \ > LDP_SID_BIT=9 \ > gdb -x /tmp/gdb-3af8e > I got the vppcom_session_write_inline assert failds. Obviously apache ab's write function

[vpp-dev] VPP tls doesn't support adding a custom tls engine, and vcl not support choosing tls engine

2019-10-20 Thread jiangxiaoming
I found there's no way to add a custom tls engine, and *tls_register_engine* only support maximum of 4 tls engine. So I think it's need to add at least one enum tag, like *CRYPTO_ENGINE_CUSTOM* to enum *crypto_engine_type_t* for vpp user adding their custom tls engine. And VCL should also

[vpp-dev] Is there any way to set local ip with vcl when connect remote socket server ?

2019-10-17 Thread jiangxiaoming
In the Hoststack app, I use write the flowing function to set local addr to connect remote socket server > > clib_error_t * vnet_connect_uri_with_local_addr(vlib_main_t *vm, > vnet_connect_args_t > *a, ip46_address_t *local_addr) { session_endpoint_cfg_t sep = > SESSION_ENDPOINT_CFG_NULL; int

[vpp-dev] ldp select/epoll with 0 timeout will make cpu 100% busy

2019-11-24 Thread jiangxiaoming
I test nginx with ldp, then nginx work well, but the cpu to hight. ldp thread cpu usage is 100% and the cpu mostly wasted at epoll function. The test apache jmeter with ldp is more worse. Jmeter will start thousand threads, When simulating multiple users for http perf test. And each java thread

[vpp-dev] tls close from cli lead to assert error

2019-10-11 Thread jiangxiaoming
code: g...@github.com:FDio/vpp.git master :  1a41a35b27da6921d6d86a9f1ad5f1b46e1185f7 if i close tls session which is not in thread 0, VPP will assert error. Below is more Info: > > > > DBGvpp# sh session verbose > > > > Connection                                        State          Rx-f 

[vpp-dev] cli set interface ip addr del lead to vpp crash due to ip enabled counter overflow

2019-12-08 Thread jiangxiaoming
vpp will crash when add more then 256 ip to an interface, and then delete the interface ip. Below is the crash stack. The reason is that the ip enabled counter *ip_enabled_by_sw_if_index* is type u8, and oly support less then 255 ips. But in my vpn scenario, I simulate more then 256 vpn tunnel

[vpp-dev] cli: show classify filter crash

2020-02-12 Thread jiangxiaoming
VPP  show classify filter crash g...@github.com:FDio/vpp.git master > > DBGvpp# sh classify filter > Filter Used By                 Table(s) > --                  > > Program received signal SIGSEGV, Segmentation fault. > 0x76e88575 in show_classify_filter_command_fn

Re: [vpp-dev] cli: show classify filter crash

2020-02-12 Thread jiangxiaoming
The cli *show classify filter* indeed crash,  and cli: *show classify filter verbose* work well. Code git head is 4a06846dd668d7f687e6770215c38e8feb5f1740 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15385):

Re: [vpp-dev] vnet_gso_header_offset_parser error if vlib_buffer_t without ethernet_header_t

2020-01-15 Thread jiangxiaoming
I use *demo.c* create a interface *demo0* with ip 10.0.0.1/29, and then use vcl+iperf3 connect server  ip 10.0.0.11, and then the ASSERT crash happend. VPP start command: *vpp -c as-startup-de192.conf * iperf3 start command: sudo env \ LD_LIBRARY_PATH=/home/dev/code/net-base/dist/script/../lib:

[vpp-dev] vnet_gso_header_offset_parser error if vlib_buffer_t without ethernet_header_t

2020-01-14 Thread jiangxiaoming
vlib_buffer_t has no ethernet_header_t, *vnet_gso_header_offset_parser* ** will failed. I think if vlib_buffer_t valid l2 header, vnet_gso_header_offset_parser should skip *ethernet_header_t* parse. Below is the VPP crash message: > > 0: /home/dev/code/net-base/build/vpp/src/vnet/ip/ip.h:205 >

[vpp-dev] vpp assert error whtn nginx start with ldp

2020-01-06 Thread jiangxiaoming
VPP crash when start nginx start with ldp. vpp code is master 78565f38e8436dae9cd3a891b5e5d929209c87f9, The crash stack is below: Anyone has any solution? > > DBGvpp# 0: vl_api_memclnt_delete_t_handler:277: Stale clnt delete index > 16777215 old epoch 255 cur epoch 0 0: >

[vpp-dev] Iperf3 throughtput with vcl on vpp-20.05-rc0 is only half of vpp-20.01

2020-04-18 Thread jiangxiaoming
[Edited Message Follows] Iperf3 throughtput with vcl on vpp-20.05-rc0 is only half of vpp-20.01. Below is the test topology: +-+  +-+ |iperf3/Server|  |iperf3/client| +-+  +-+ |

[vpp-dev] Iperf3 throughtput with vcl on vpp-20.05-rc0 is only half of vpp-20.01

2020-04-18 Thread jiangxiaoming
Iperf3 throughtput with vcl on vpp-20.05-rc0 is only half of vpp-20.01. Below is the test topology: +-+  +-+ |iperf3/Server| |iperf3/client| +-+  +-+ | | +-+ 

[vpp-dev] #nat any plan to support NAT ALG?

2020-03-20 Thread jiangxiaoming
Now vpp nat not support nat alg ( https://support.huawei.com/enterprise/en/doc/EDOC1000174068/9130981d/nat-alg ) , any plan to support it? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15824): https://lists.fd.io/g/vpp-dev/message/15824 Mute

Re: [vpp-dev] #nat any plan to support NAT ALG?

2020-03-20 Thread jiangxiaoming
Any detail reason for that? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15829): https://lists.fd.io/g/vpp-dev/message/15829 Mute This Topic: https://lists.fd.io/mt/72095001/21656 Mute #nat: https://lists.fd.io/mk?hashtag=nat=1480452 Group Owner:

[vpp-dev] Any ways to set interface Non-ARP ?

2020-05-20 Thread jiangxiaoming
Hi: Is there any ways to set a interface non-arp? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16469): https://lists.fd.io/g/vpp-dev/message/16469 Mute This Topic: https://lists.fd.io/mt/74365885/21656 Group Owner: vpp-dev+ow...@lists.fd.io

Re: [vpp-dev] clib_mem_size return wrong mem size

2020-08-28 Thread jiangxiaoming
Hi,  Dave Barach: I want to a realloc funtion like as bollow, the function args doesn't have the original mem size, and clib_mem_size seems can't return the right memory size. Is there any way to get the memory size ? void *my _realloc ( void * p , size_t s) { return p ? clib_mem_realloc ( p ,

[vpp-dev] clib_mem_size return wrong mem size

2020-08-27 Thread jiangxiaoming
Hi, experts: I find clib_mem_size(...) cann't return the mem size alloc by  clib_mem_alloc(...). I alloc 32 bytes memory, but clib_mem_size return 44 length as following snippet: > > u32 len, real_len; > void* p; > > len = 32; > p = clib_mem_alloc(len); > real_len = clib_mem_size(p); > >

[vpp-dev] hoststack app fifo_tuning_callback enqueue bytes always 0

2020-07-16 Thread jiangxiaoming
Hi, Currently vpp's hoststack app's callback ' session_cb_vft_t-> fifo_tuning_callback' always return 0 if act == SESSION_FT_ACTION_ENQUEUED. If act == SESSION_FT_ACTION_DEQUEUED, the bytes is the lenght of data the session have send. So I think the value should be the length of the session recv

[vpp-dev] app_send_dgram should do ip fragmentation if data more than snd_mss

2020-07-21 Thread jiangxiaoming
hi: When sending 1500 bytes data with session app_send_dgram api, I find session-queue node will split the data to two udp packets, then vpp will sending to two separate IP packets out with no fragmentation. Even I set interface MTU with 9000, It's still sending two separate IP packets. I think

[vpp-dev] svm ASAN check error

2020-11-13 Thread jiangxiaoming
Hi experts: There is  a svm ASAN check error. My vpp version is 21.01-rc0~394-g798267aaa DBGvpp# ==445==AddressSanitizer CHECK failed: ../../../../libsanitizer/asan/asan_mapping.h:377 "((AddrIsInMem(p))) != (0)" (0x0, 0x0) #0 0x774c158a  (/root/net-base/script/../lib/libasan.so.5+0x11658a)

Re: [vpp-dev] svm ASAN check error

2020-11-16 Thread jiangxiaoming
Hi ben: You can try the following steps: * make VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON build * make run * session enable > > DBGvpp# session enable > ==91579==AddressSanitizer CHECK failed: > ../../../../libsanitizer/asan/asan_mapping.h:377 "((AddrIsInMem(p))) != > (0)" (0x0, 0x0) >

Re: [vpp-dev] svm ASAN check error

2020-11-17 Thread jiangxiaoming
Hi ben: The issue still exist with patch https://gerrit.fd.io/r/c/vpp/+/29969 ( https://gerrit.fd.io/r/c/vpp/+/29969 ) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18073): https://lists.fd.io/g/vpp-dev/message/18073 Mute This Topic:

[vpp-dev] ping failed with p2p type interface due to fib_sas4_get not dealing with p2p interface case #vpp

2020-12-13 Thread jiangxiaoming
Hi guys: I create two vpp instance and create two ipsec tunnel, when ping 10.0.0.1 on vpp1, I get a ping error for p2p type interface on vpp master (21.01-rc0~548-g5e6d54779). vpp0 start with vpp0.cli and vpp1 with vpp1.cli. The following is the test netowrk topology and vpp1 console output: >

[vpp-dev] Unable to run VPP with ASAN enabled

2021-06-15 Thread jiangxiaoming
Hi experts, Here is an ASAN error when run vpp with ASAN enabled. > > [root@localhost vpp]# make > VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON build& debug > make[1]: Entering directory `/home/dev/code/vpp/build-root' > Arch for platform 'vpp' is native > Finding source for

[vpp-dev] dtls connect error with custom crypto engine #vpp-dev

2021-06-16 Thread jiangxiaoming
Hi Florin, I tried dtls proto with my custom crypto engine, and got error with  dtls_connect. Vpp bracn is 21.06-rc2, h ere is the debug log: > > Breakpoint 1, dtls_connect (tep=0x7fffb8c13b80) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/tls/tls.c:1224 > 1224      return ctx_handle; >

Re: [vpp-dev] clib_mask_compare_u16_x64 has asan issue

2021-06-17 Thread jiangxiaoming
Is there any way  setting asan only avoiding error in this function ? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19596): https://lists.fd.io/g/vpp-dev/message/19596 Mute This Topic: https://lists.fd.io/mt/83600497/21656 Group Owner:

[vpp-dev] clib_mask_compare_u16_x64 has asan issue

2021-06-17 Thread jiangxiaoming
Hi Damjan Marion, vector function: clib_mask_compare_u16_x64 has ASAN Issue, > > clib_mask_compare_u16_x64 (u16 v, u16 *a, u32 n_elts) > { > ... > u16x32u *av = (u16x32u *) a; > ... > > x = i8x32_pack (v16 == av[0], v16 == av[1]); <- *av[0] will read 64 > bytes, but a[0] only have 2 bytes

[vpp-dev] subinterface's ip did not deleted after subinterface deleted

2021-05-27 Thread jiangxiaoming
Hi Dave Barach: Subinterface's ip did not deleted after subinterface deleted. Hrere is the test command > > set interface state eth0 up > create sub-interface eth0 1 > set interface ip addr eth0.1 192.168.1.1/24 > show int addr > delete sub-interface eth0.1 > set interface ip addr eth0

[vpp-dev] unformat_vnet_uri not implemented following RFC 3986

2021-05-26 Thread jiangxiaoming
Hi Florin: Currently unformat_vnet_uri not implemented following RFC 3986. The syntax `tcp://10.0.0.1/500` should be `tcp://10.0.0.1:500` in rfc 3986. I noticed in there is a comment for `unformat_vent_uri` in `src/vnet/session/application_interface.c`, ``` /** * unformat a vnet URI * *

[vpp-dev] why vlib_buffer_push_ip4 not support fragmentation and set df flag for tcp?

2021-06-30 Thread jiangxiaoming
Hi guys, In my project, I set tcp mtu 9000 in vpp startup file: tcp { mtu 9000 }, and set interfaces mtu 1500. When sending tcp packet, vlib_buffer_push_ip4 will add 'dont frag' flag for packet, if tcp data more then 1500 bytes, i will "ip4 MTU exceeded and DF set" error. always_inline void *

[vpp-dev] sw_interface_dump currently cann't dump interface which sw_if_index == 0 #vapi

2021-04-29 Thread jiangxiaoming
Hi  Vratko Polak, currently sw_interface_dump will dump all interfaces if sw_if_index == 0. In my case, i need get interface information by id without by dumping all, but there is no way for this. I notice there is a TODO comment for sw_interface_dump in *interface.api* file. > > /** \brief

[vpp-dev] a compiling error on vpp master

2021-03-03 Thread jiangxiaoming
Hi guys: I have a compiling error on vpp master, is thre anyone have the save problem? > > > > VPP library version : 21.06 > > > > GIT toplevel dir    : /home/dev/code/vpp > > > > Build type          : debug > > > > C flags             : -Wno-address-of-packed-member -g -fPIC -Werror

[vpp-dev] master branch build failed #vpp-dev

2021-08-25 Thread jiangxiaoming
Hi all, Vpp master branch build failed, anyone have the save issue > > > @@@ Configuring vpp in > /home/dev/code/vpp/build-root/build-vpp_debug-native/vpp > -- The C compiler identification is GNU 4.8.5 > -- Check for working C compiler: /usr/lib64/ccache/cc > -- Check for working C

Re: [vpp-dev] master branch build failed #vpp-dev

2021-08-26 Thread jiangxiaoming
I build vpp on centos 7 with devtoolset-9. i find the using of devtoolset-9 was removeed in the commit, is there any purpose for it? > > commit a5167edc66c639e139ffb5de4336c54bb3d8a871 > Author: Damjan Marion > Date:   Fri Jul 2 16:04:26 2021 +0200 > > build: remove unused files and sections

Re: [vpp-dev] master branch build failed #vpp-dev

2021-08-26 Thread jiangxiaoming
it's not a good news for me -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20028): https://lists.fd.io/g/vpp-dev/message/20028 Mute This Topic: https://lists.fd.io/mt/85151908/21656 Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev

[vpp-dev] vapi message length error with variable length string type

2021-07-13 Thread jiangxiaoming
Hi guys, Currently vapi message length is determined by sizeof(vapi_msg_) when alloced by vapi_msg_alloc. But if the vapi message has a variable length string type *string xxx[]* , the message real length can be changed, this will make vapi message length check error. For example,

Re: [vpp-dev] Change how "unix exec" executes cli scripts

2022-05-11 Thread jiangxiaoming
[Edited Message Follows] Hi Damjan, Currently command: define also has some problem. In cli file have the following content: cat /tmp/a.cli: define IP1 192.168.200.11 show macro ping $IP1 in vpp cli will fail with the output: IP1 192.168.200.11 ping: expecting IP4/IP6 address `$IP1'.

Re: [vpp-dev] Change how "unix exec" executes cli scripts

2022-05-11 Thread jiangxiaoming
Hi Damjan, Currently command: define also has some problem. In cli file have the following content: cat /tmp/a.cli: ``` define IP1 192.168.200.11 show macro ping $IP1 ``` in vpp cli will fail with the output: ``` IP1 192.168.200.11 ping: expecting IP4/IP6 address `$IP1'. Usage: ping { | ipv4

Re: [vpp-dev] Query on VPP in Aure

2022-04-29 Thread jiangxiaoming
[Edited Message Follows] Hi Matt, I run two vpp instance (different prefix) in same hyper-v vm, the first vpp instance prefix is vs, second is vc. I have eth1 and eth2, the config is below: I start the vs and vc instance one by one, after vc instance started, the first instance vs stuck in dpdk

Re: [vpp-dev] Query on VPP in Aure

2022-04-29 Thread jiangxiaoming
Hi Matt, I run two vpp instance (different prefix) in same hyper-v vm, the first vpp instance prefix is vs, second is vc. I have eth1 and eth2, the config is below: I start the vs and vc instance one by one, after vc instance started, the first instance vs stuck in dpdk wait function. Does one

Re: [vpp-dev] There is bug in esp decrypt

2022-11-17 Thread jiangxiaoming
Hi Guangming, You are right, you can push a patch to https://gerrit.fd.io/r , ipsec maintainers will review it Xiaoming -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22195): https://lists.fd.io/g/vpp-dev/message/22195 Mute This Topic:

Re: [vpp-dev] There is bug in esp decrypt

2022-11-18 Thread jiangxiaoming
Hi neale, The function ipsec_sa_get call in esp_encrypt_inline/ esp_decrypt_inline has mem issue. In ipsec4-input-feature node, vnet_buffer (b[0])->ipsec.sad_index was setted by sa, but the sa maybe freed by main thread just after the node dispatch finish, the next dispatch loop the sa

Re: [vpp-dev] There is bug in esp decrypt

2022-11-18 Thread jiangxiaoming
Hi neale, The function ipsec_sa_get call in esp_encrypt_inline/esp_decrypt_inline has mem issue. In ipsec4-input-feature node, vnet_buffer (b[0])->ipsec.sad_index was setted by sa, but the sa maybe freed by main thread just after the node dispatch finish, the next dispatch loop the sa

Re: [vpp-dev] There is bug in esp decrypt

2022-11-20 Thread jiangxiaoming
Hi neale, Currently there is only one way detecting whether the sa is in using by checking sa counter. But if the ike is timeout and is rekeying the  sa which first used by ipsec4-input-feature, the sa may has been deleted in esp_encrypt node. I rewrite the ike plugin, in my test case, there

Re: [vpp-dev] There is bug in esp decrypt

2022-11-23 Thread jiangxiaoming
Neale's suggestion is very usefull, the sa deleting crash was solved by deleting policy and sa in two barrier calls. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22230): https://lists.fd.io/g/vpp-dev/message/22230 Mute This Topic:

Re: [vpp-dev] There is bug in esp decrypt

2022-11-23 Thread jiangxiaoming
Ikev2 not use spd policy, maybe has no the problem. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22232): https://lists.fd.io/g/vpp-dev/message/22232 Mute This Topic: https://lists.fd.io/mt/95086868/21656 Group Owner: vpp-dev+ow...@lists.fd.io

Re: [vpp-dev] failure while building VPP v23.02 in centos 7 VM

2023-03-10 Thread jiangxiaoming
Hi Sandeep, Our project build and run on Centos7 with vpp master very well, you can try the follow command: ` make VPP_SKIP_EXTERNAL= xdp-tools VPP_EXTRA_CMAKE_ARGS=" -DLDP_HAS_GNU_SOURCE=OFF -DCMAKE_PROGRAM_PATH:PATH='/opt/rh/devtoolset-9/root/bin'" build`, there may be compiler error with