[vpp-dev] vpp api test issue

2018-09-09 Thread Kevin Yan
Hi ,
I started to learn VPP recently and I am trying to write a 
control plane application to start and configure vpp automatilly, so firstly I 
tried to compile test_client.c and run it , some commands are good , but some 
are not well worked. For example, if I type 'L' which is used to make the link 
up, but it didn't work at all. It seems that 
"vl_api_want_interface_events_t_handler" is not implemented, can anybody help? 
I suppose all the command listed in test_client should be work.

Type 'h' for help, 'q' to quit...
h
q=quit,d=dump,L=link evts on,l=link evts off
S=stats on,s=stats off
4=add v4 route, 3=del v4 route
6=add v6 route, 5=del v6 route
A=add v4 intfc route, a=del v4 intfc route
B=add v6 intfc route, b=del v6 intfc route
z=del all intfc routes
t=set v4 intfc table, T=set v6 intfc table
c=connect unix tap
j=set dhcpv4 and v6 link-address/option-82 params
k=set dhcpv4 relay agent params
K=set dhcpv6 relay agent params
E=add l2 patch, e=del l2 patch
V=ip6 set link-local address
w=ip6 enable
W=ip6 disable
x=ip6 nd config
X=no ip6 nd config
y=ip6 nd prefix
Y=no ip6 nd prefix
@=l2 xconnect
#=l2 bridge

BRs,
Kevin



This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [E] [vpp-dev] Build a telecom-class Security gateway device with VPP

2018-09-18 Thread Kevin Yan
Hi Tianye,

 I suppose VPP is a good choice acting as a fast-path,  free and efficient. 
And I think most of the requirements listed in your mail are supported by 
native VPP.





From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Tian Ye2(田野)
Sent: Monday, September 17, 2018 5:18 PM
To: vpp-dev@lists.fd.io
Subject: [E] [vpp-dev] Build a telecom-class Security gateway device with VPP


Dear VPP developers:



I am a project manager from China mainland.

Currently we are planning to develop a high performance Security gateway device 
to connect

between HNB/ENB and 3G/4G core network.

The basic requirement is:

•  Support 10K Ipsec tunnels concurrently and up to 10G+ uplink throughput.

•  At least support IKEv2

•  DPD

•  Support IPv4/IPv6

•  Support NAT

•  Support duo-uplink port for backup and load balance.

•  Support OAM system(cli or web based or SNMP)

•  Support Qos



I think this kind of product is already exist, just like the “CASA Axyom 
Security Gateway”(I already attached it with this email)

My question is:

1. Is it a good idea to build it with VPP?What feature I listed above 
could be reused with VPP?

2. If VPP is a good choice, is there anything I need to do by myself? 
If any, can you brief me what kind of customization or development I need to do?


This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] question related to VPP statistics

2018-11-01 Thread Kevin Yan
Hello VPP experts,
  We are designing an application mainly acting as a SeGW, VPP is used as 
fast-path,  we have a slow-path application called ipsecAgent to manage ipsec 
tunnels.  ipsecAgent need to get the ipsec tunnel statistics from VPP to 
trigger some features, such as , Re-key when packets/bytes reaches the 
limitation,  ipsec tunnel deletion when inactivity timer reached, etc.  If we 
use binary API to communicate between slow-path and VPP,  I don't know if there 
will be performance issue here,  for example, if we support 100k ipsec tunnels, 
 slow path need to query the ipsec statistics every 5 seconds per tunnel, then 
there will be 10/5=2 messages/s. What we are thinking of is if we can 
use shared memory directly, i.e. VPP creates shared memory at startup phase, 
and ipsec related statistics are stored and updated in this shared memory, 
slow-path only map this shared memory and get statistics by reading shared 
memory directly.
  Is it more efficient ? or we can use other solution VPP already provided 
but I don't know yet.

  Thanks.


BRs,
Kevin

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [E] [vpp-dev] VPPSB Netlink build failing

2018-11-01 Thread Kevin Yan
I also met this error when compiling vppsb on centos, just remove the MPLS 
related macro,and re-compile

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of 
alp.ars...@xflowresearch.com
Sent: Friday, November 02, 2018 1:55 PM
To: vpp-dev@lists.fd.io
Subject: [E] [vpp-dev] VPPSB Netlink build failing

Dear All,

I am trying to build the latest VPP with router and netlink plugins on CentOS 
7.5. Here are the steps that I followed.

# cd /vpp
# ln -sf /vppsb/router/
# ln -sf /vppsb/netlink/
# ln -sf /vppsb/router/router.mk build-data/packages/
# ln -sf /vppsb/netlink/netlink.mk build-data/packages/
#
# make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install

The command fails with the following error:

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/netlink'
  CC   librtnl/netns.lo
  CC   librtnl/rtnl.lo
/vpp/build-data/../netlink/librtnl/rtnl.c: In function 'rtnl_socket_open':
/vpp/build-data/../netlink/librtnl/rtnl.c:269:39: error: 'RTNLGRP_MPLS_ROUTE' 
undeclared (first use in this function)
 grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE),
   ^
/vpp/build-data/../netlink/librtnl/rtnl.c:269:39: note: each undeclared 
identifier is reported only once for each function it appears in
/vpp/build-data/../netlink/librtnl/netns.c:69:5: error: 'RTA_VIA' undeclared 
here (not in a function)
   _(RTA_VIA, via, 1)\
 ^
/vpp/build-data/../netlink/librtnl/netns.c:82:13: note: in definition of macro 
'_'
 .type = t, .unique = u, \
 ^
/vpp/build-data/../netlink/librtnl/netns.c:86:3: note: in expansion of macro 
'ns_foreach_rta'
   ns_foreach_rta
   ^
make[1]: *** [librtnl/rtnl.lo] Error 1
make[1]: *** Waiting for unfinished jobs
make[1]: *** [librtnl/netns.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/netlink'
make: *** [netlink-build] Error 2

Can anyone help me with this? Or point me towards the versions of VPP and VPPSB 
where they are working with each other.

Regards,
Alp Arslan

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [E] [vpp-dev] VPPSB Netlink build failing

2018-11-02 Thread Kevin Yan
for(int i = 1; label != 0; i++)

change to :
int I;
for(i = 1; label != 0; i++)

From: alp.ars...@xflowresearch.com [mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 02, 2018 3:11 PM
To: Kevin Yan ; vpp-dev@lists.fd.io
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

Tried removing both macros (RTNLGRP_MPLS_ROUTE & RTA_VIA), failed with another 
MPLS related error in the router plugin.

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/router'
  CC   router/tap_inject_netlink.lo
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'get_mpls_label_stack':
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: error: 'for' loop 
initial declarations are only allowed in C99 mode
   for(int i = 1; label != 0; i++) {
   ^
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: note: use option 
-std=c99 or -std=gnu99 to compile your code
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'add_del_route':
/vpp/build-data/../router/router/tap_inject_netlink.c:200:9: error: 'for' loop 
initial declarations are only allowed in C99 mode
 for(int i = 0; i < MPLS_STACK_DEPTH && stack[i] != 0; i++) {
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: error: 'AF_MPLS' 
undeclared (first use in this function)
   else if (r->rtm.rtm_family == AF_MPLS)
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: note: each 
undeclared identifier is reported only once for each function it appears in
In file included from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/mem.h:55:0,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/vec.h:42,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/format.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf_clib.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vlib/vlib.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/netlink/include/librtnl/netns.h:19,
 from /vpp/build-data/../router/router/tap_inject_netlink.c:17:
/vpp/build-data/../router/router/tap_inject_netlink.c:241:44: error: 
dereferencing pointer to incomplete type
   clib_memcpy (&rpath.frp_addr.ip4, via->rtvia_addr, sizeof 
(rpath.frp_addr.ip4));
^
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/string.h:153:48: 
note: in definition of macro 'clib_memcpy'
#define clib_memcpy(d,s,n) memcpy_s_inline(d,n,s,n)
^
make[1]: *** [router/tap_inject_netlink.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/router'
make: *** [router-build] Error 2

It is compiling after I removed the whole else block, not sure how it will 
affect the plugin.

One question, after the build is completed, how do I install it to my system? I 
can see the install directory with all the binaries, but how do I get them to 
proper locations, like I would if I installed using the rpms.



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Kevin Yan
Sent: Friday, November 2, 2018 11:38 AM
To: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [E] [vpp-dev] VPPSB Netlink build failing

I also met this error when compiling vppsb on centos, just remove the MPLS 
related macro,and re-compile

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of 
alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>
Sent: Friday, November 02, 2018 1:55 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [E] [vpp-dev] VPPSB Netlink build failing

Dear All,

I am trying to build the latest VPP with router and netlink plugins on CentOS 
7.5. Here are the steps that I followed.

# cd /vpp
# ln -sf /vppsb/router/
# ln -sf /vppsb/netlink/
# ln -sf /vppsb/router/router.mk build-data/packages/
# ln -sf /vppsb/netlink/netlink.mk build-data/packages/
#
# make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install

The command fails with the following error:

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/netlink'
  CC   librtnl/netns.lo
  CC   librtnl/rtnl.lo
/vpp/build-data/../netlink/librtnl/rtnl.c: In function 'rtnl_socket_open':
/vpp/build-data/../netlink/librtnl/rtnl.c:269:39: error: 'RTNLGRP_MPLS_ROUTE' 
undeclared (first use in this function)
 grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE),
 

Re: [E] [vpp-dev] VPPSB Netlink build failing

2018-11-02 Thread Kevin Yan
And also remove
else if (r->rtm.rtm_family == AF_MPLS)
part

From: Kevin Yan
Sent: Friday, November 02, 2018 3:15 PM
To: 'alp.ars...@xflowresearch.com' ; 
vpp-dev@lists.fd.io
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

for(int i = 1; label != 0; i++)

change to :
int I;
for(i = 1; label != 0; i++)

From: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com> 
[mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 02, 2018 3:11 PM
To: Kevin Yan mailto:kevin@mavenir.com>>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

Tried removing both macros (RTNLGRP_MPLS_ROUTE & RTA_VIA), failed with another 
MPLS related error in the router plugin.

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/router'
  CC   router/tap_inject_netlink.lo
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'get_mpls_label_stack':
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: error: 'for' loop 
initial declarations are only allowed in C99 mode
   for(int i = 1; label != 0; i++) {
   ^
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: note: use option 
-std=c99 or -std=gnu99 to compile your code
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'add_del_route':
/vpp/build-data/../router/router/tap_inject_netlink.c:200:9: error: 'for' loop 
initial declarations are only allowed in C99 mode
 for(int i = 0; i < MPLS_STACK_DEPTH && stack[i] != 0; i++) {
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: error: 'AF_MPLS' 
undeclared (first use in this function)
   else if (r->rtm.rtm_family == AF_MPLS)
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: note: each 
undeclared identifier is reported only once for each function it appears in
In file included from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/mem.h:55:0,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/vec.h:42,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/format.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf_clib.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vlib/vlib.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/netlink/include/librtnl/netns.h:19,
 from /vpp/build-data/../router/router/tap_inject_netlink.c:17:
/vpp/build-data/../router/router/tap_inject_netlink.c:241:44: error: 
dereferencing pointer to incomplete type
   clib_memcpy (&rpath.frp_addr.ip4, via->rtvia_addr, sizeof 
(rpath.frp_addr.ip4));
^
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/string.h:153:48: 
note: in definition of macro 'clib_memcpy'
#define clib_memcpy(d,s,n) memcpy_s_inline(d,n,s,n)
^
make[1]: *** [router/tap_inject_netlink.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/router'
make: *** [router-build] Error 2

It is compiling after I removed the whole else block, not sure how it will 
affect the plugin.

One question, after the build is completed, how do I install it to my system? I 
can see the install directory with all the binaries, but how do I get them to 
proper locations, like I would if I installed using the rpms.



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Kevin Yan
Sent: Friday, November 2, 2018 11:38 AM
To: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [E] [vpp-dev] VPPSB Netlink build failing

I also met this error when compiling vppsb on centos, just remove the MPLS 
related macro,and re-compile

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of 
alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>
Sent: Friday, November 02, 2018 1:55 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [E] [vpp-dev] VPPSB Netlink build failing

Dear All,

I am trying to build the latest VPP with router and netlink plugins on CentOS 
7.5. Here are the steps that I followed.

# cd /vpp
# ln -sf /vppsb/router/
# ln -sf /vppsb/netlink/
# ln -sf /vppsb/router/router.mk build-data/packages/
# ln -sf /vppsb/netlink/netlink.mk build-data/packages/
#
# make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install

The command fails with the following error:

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/netlink'
  CC

Re: [E] [vpp-dev] VPPSB Netlink build failing

2018-11-02 Thread Kevin Yan
I think rpm packages can be generated but I never tried that,  just use "make 
run " or "vpp -c /etc/vpp/startup.conf" to start vpp,  the additional thing you 
should do is just copy router.so to the default plugin location.

From: alp.ars...@xflowresearch.com [mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 02, 2018 3:17 PM
To: Kevin Yan ; vpp-dev@lists.fd.io
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

Yes, did that and its compiling. Thanks.

One question, after the build is completed, how do I install it to my system? I 
can see the install directory with all the binaries, but how do I get them to 
proper locations, like I would if I installed using the rpms.


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Kevin Yan
Sent: Friday, November 2, 2018 12:16 PM
To: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [E] [vpp-dev] VPPSB Netlink build failing

And also remove
else if (r->rtm.rtm_family == AF_MPLS)
part

From: Kevin Yan
Sent: Friday, November 02, 2018 3:15 PM
To: 'alp.ars...@xflowresearch.com' 
mailto:alp.ars...@xflowresearch.com>>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

for(int i = 1; label != 0; i++)

change to :
int I;
for(i = 1; label != 0; i++)

From: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com> 
[mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 02, 2018 3:11 PM
To: Kevin Yan mailto:kevin@mavenir.com>>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

Tried removing both macros (RTNLGRP_MPLS_ROUTE & RTA_VIA), failed with another 
MPLS related error in the router plugin.

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/router'
  CC   router/tap_inject_netlink.lo
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'get_mpls_label_stack':
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: error: 'for' loop 
initial declarations are only allowed in C99 mode
   for(int i = 1; label != 0; i++) {
   ^
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: note: use option 
-std=c99 or -std=gnu99 to compile your code
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'add_del_route':
/vpp/build-data/../router/router/tap_inject_netlink.c:200:9: error: 'for' loop 
initial declarations are only allowed in C99 mode
 for(int i = 0; i < MPLS_STACK_DEPTH && stack[i] != 0; i++) {
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: error: 'AF_MPLS' 
undeclared (first use in this function)
   else if (r->rtm.rtm_family == AF_MPLS)
 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: note: each 
undeclared identifier is reported only once for each function it appears in
In file included from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/mem.h:55:0,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/vec.h:42,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/format.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf_clib.h:41,
 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vlib/vlib.h:44,
 from 
/vpp/build-root/install-vpp_debug-native/netlink/include/librtnl/netns.h:19,
 from /vpp/build-data/../router/router/tap_inject_netlink.c:17:
/vpp/build-data/../router/router/tap_inject_netlink.c:241:44: error: 
dereferencing pointer to incomplete type
   clib_memcpy (&rpath.frp_addr.ip4, via->rtvia_addr, sizeof 
(rpath.frp_addr.ip4));
^
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/string.h:153:48: 
note: in definition of macro 'clib_memcpy'
#define clib_memcpy(d,s,n) memcpy_s_inline(d,n,s,n)
^
make[1]: *** [router/tap_inject_netlink.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/router'
make: *** [router-build] Error 2

It is compiling after I removed the whole else block, not sure how it will 
affect the plugin.

One question, after the build is completed, how do I install it to my system? I 
can see the install directory with all the binaries, but how do I get them to 
proper locations, like I would if I installed using the rpms.



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Kevin Yan
Sent: Friday, November 2

[vpp-dev] vppctl issue

2018-11-07 Thread Kevin Yan
Hello,
 Does anyone met below errors when using vppctl and what is the possible 
reason?

clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused

  BTW,  I changed a little vpp code but I suppose it doesn't not related to 
this issue and VPP itself is started without any problem

My startup configuration:

cpu {
main-core 0
corelist-workers 1-3
}

unix {
nodaemon
log /tmp/vpp.log
full-coredump
cli-listen /run/vpp/cli.sock
}

dpdk {
socket-mem 2048
uio-driver uio_pci_generic
dev :00:06.0 {
num-rx-queues 2
num-tx-queues 2
}
dev :00:09.0
vdev cryptodev_aesni_mb_pmd,socket_id=0
vdev cryptodev_aesni_mb_pmd,socket_id=0
}

api-trace {
on
}

tap-inject {
enable
}


BRs,
Kevin



This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [E] Re: [vpp-dev] question related to VPP statistics

2018-11-26 Thread Kevin Yan
Thanks very much , I will check the new stat mechanism!

-Original Message-
From: Ole Troan [mailto:otr...@employees.org]
Sent: Tuesday, November 27, 2018 12:45 AM
To: Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) 

Cc: Kevin Yan ; vpp-dev@lists.fd.io
Subject: [E] Re: [vpp-dev] question related to VPP statistics

> There is "stat segment" [0] way of publishing counters.
> But it was added somewhat recently,
> so ipsec code probably does not support it (yet).

Right, and if ipsec uses interfaces, then the counters are already there in the 
stat segment.
Available either through the C, Python or Go interfaces.

Cheers,
Ole


>
> Vratko.
>
> [0] https://github.com/FDio/vpp/blob/master/src/vpp/stats/stats.md
>
> From: vpp-dev@lists.fd.io  On Behalf Of Kevin Yan
> Sent: Friday, 2018-November-02 02:40
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] question related to VPP statistics
>
> Hello VPP experts,
>   We are designing an application mainly acting as a SeGW, VPP is used as 
> fast-path,  we have a slow-path application called ipsecAgent to manage ipsec 
> tunnels.  ipsecAgent need to get the ipsec tunnel statistics from VPP to 
> trigger some features, such as , Re-key when packets/bytes reaches the 
> limitation,  ipsec tunnel deletion when inactivity timer reached, etc.  If we 
> use binary API to communicate between slow-path and VPP,  I don’t know if 
> there will be performance issue here,  for example, if we support 100k ipsec 
> tunnels,  slow path need to query the ipsec statistics every 5 seconds per 
> tunnel, then there will be 10/5=2 messages/s. What we are thinking of 
> is if we can use shared memory directly, i.e. VPP creates shared memory at 
> startup phase, and ipsec related statistics are stored and updated in this 
> shared memory, slow-path only map this shared memory and get statistics by 
> reading shared memory directly.
>   Is it more efficient ? or we can use other solution VPP already 
> provided but I don’t know yet.
>
>   Thanks.
>
>
> BRs,
> Kevin
> This e-mail message may contain confidential or proprietary information of 
> Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
> the intended recipient(s). If you are not the intended recipient of this 
> message, you are hereby notified that any review, use or distribution of this 
> information is absolutely prohibited and we request that you delete all 
> copies in your control and contact us by e-mailing to secur...@mavenir.com. 
> This message contains the views of its author and may not necessarily reflect 
> the views of Mavenir Systems, Inc. or its affiliates, who employ systems to 
> monitor email messages, but make no representation that such messages are 
> authorized, secure, uncompromised, or free from computer viruses, malware, or 
> other defects. Thank You
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#11411): https://lists.fd.io/g/vpp-dev/message/11411
> Mute This Topic: https://lists.fd.io/mt/27823623/675193
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-


This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [E] Re: [vpp-dev] vip in VPP

2019-05-15 Thread Kevin Yan via Lists.Fd.Io
Hi Shahid,
Actually I have the same requirement that two IPs from same subnet configured 
on one interface and I tried to configure that way but it failed, vpp will 
complain as bellows
[cid:image001.png@01D50BC7.7BED62D0]
https://gerrit.fd.io/r/#/c/8057/
this patch did the check and disable overlapping sub-nets on any interface, is 
this reasonable? I suppose it is okay to configure multiple ip addresses within 
same subnet to one same interface.  Linux supports this, but vpp doesn’t.

so how did you solve your problem?

BRs,
Kevin
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Shahid Khan
Sent: Friday, April 26, 2019 9:19 PM
To: Ole Troan 
Cc: Damjan Marion ; vpp-dev@lists.fd.io
Subject: [E] Re: [vpp-dev] vip in VPP

Just default gw ... i will check assigning two IPs from same subnet to one 
interface ...


-Shahid

On Apr 26, 2019 18:14, "Ole Troan" 
mailto:otr...@employees.org>> wrote:
> Can we configure one interface with two ips from same subnet ?

There's certainly nothing wrong with that, so if it for some reason doesn't 
work, that can be patched.
You can of course put the same IP on different VPP instances on e.g. a loopback 
interface. If you have some way of routing to them.

VRRP is not supported. Do you have some application requiring state 
synchronisation on top, or is this just for default gateway?

Cheers,
Ole

>
> -Shahid
>
> On Apr 26, 2019 17:56, "Damjan Marion" 
> mailto:dmar...@me.com>> wrote:
>
>
> > On 26 Apr 2019, at 14:15, Shahid Khan 
> > mailto:shahidnasimk...@gmail.com>> wrote:
> >
> > Not on different interfaces same subnet on parent and its sub interface 
> > ... Parent interface will have real ip and sub interface will have VIP
>
> sub-interface is from fib perspective different interface and it is typically 
> tagged with some vlan tags.
>
> What’s wrong with having one interface with 2 IPs assigned. 2nd IP can be 
> added/removed based on control plane decision (i.e. change of vrrp state).
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#12861): https://lists.fd.io/g/vpp-dev/message/12861
> Mute This Topic: https://lists.fd.io/mt/31351846/675193
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  
> [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] some questions about libmemif

2019-10-18 Thread Kevin Yan via Lists.Fd.Io
Hi all,
Recently I am reading codes of libmemlif (based on vpp19.01) ,I 
am a little bit confused about the fields of head/tail in struct memif_ring_t 
and last_head/last_tail in struct memif_queue_t.

Can anybody help to  clarify the internal mechanism  of the 
read/write operation of ring and how to move the head/tail and  
last_head/last_tail?  I'd like to better understand this and  really appreciate 
if anyone can help.

BRs,
Kevin

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] VPP deadlock issue

2022-04-07 Thread Kevin Yan via lists.fd.io
Hi,
  Recently I got a VPP crash issue, one worker thread is doing 
mutex lock and waiting for getting the mutex, the complete call stack is 
arp_learn-> vnet_arp_set_ip4_over_ethernet-> vl_api_rpc_call_main_thread-> 
vl_msg_api_alloc_as_if_client-> vl_msg_api_alloc_internal-> pthread_mutex_lock 
(&q->mutex); while at the same time main thread is calling 
vlib_worker_thread_barrier_sync to try to lock all worker threads, this will 
lead deadlock and hence VPP crashed.

  Did anyone meet the similar issue and how to solve this race 
condition? I am using vpp19.01, tried to search the commits related to this 
issue for later release but no lucky, not sure if this issue got fixed in later 
release .
  Appreciate if anyone can help.

BRs,
Kevin

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You

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



Re: [E] Re: [vpp-dev] VPP deadlock issue

2022-04-07 Thread Kevin Yan via lists.fd.io
Hi Florin,
  Thanks for the quick reply. I think when this issue happened, 
main thread was locking the binary api’s queue mutex, and then it scheduled to 
execute another process node, in this process node it called barrier sync. Is 
this a possible scenario?

BRs,
Kevin

From: Florin Coras 
Sent: Friday, April 8, 2022 10:00 AM
To: Kevin Yan 
Cc: vpp-dev@lists.fd.io; Alan Wang 
Subject: [E] Re: [vpp-dev] VPP deadlock issue


Email is from a Free Mail Service (Gmail/Yahoo/Hotmail….) : Beware of Phishing 
Scams, Report questionable emails to s...@mavenir.com<mailto:s...@mavenir.com>
Hi Kevin,

That’s a pretty old VPP release so you should maybe try to update.

Regarding the deadlock, what is main actually doing? If it didn’t lock the 
binary api's queue mutex before the barrier sync, it shouldn’t deadlock.

Regards,
Florin


On Apr 7, 2022, at 6:39 PM, Kevin Yan via lists.fd.io<http://lists.fd.io> 
mailto:kevin.yan=mavenir@lists.fd.io>> 
wrote:

Hi,
  Recently I got a VPP crash issue, one worker thread is doing 
mutex lock and waiting for getting the mutex, the complete call stack is 
arp_learn-> vnet_arp_set_ip4_over_ethernet-> vl_api_rpc_call_main_thread-> 
vl_msg_api_alloc_as_if_client-> vl_msg_api_alloc_internal-> pthread_mutex_lock 
(&q->mutex); while at the same time main thread is calling 
vlib_worker_thread_barrier_sync to try to lock all worker threads, this will 
lead deadlock and hence VPP crashed.

  Did anyone meet the similar issue and how to solve this race 
condition? I am using vpp19.01, tried to search the commits related to this 
issue for later release but no lucky, not sure if this issue got fixed in later 
release .
  Appreciate if anyone can help.

BRs,
Kevin

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to 
secur...@mavenir.com<mailto:secur...@mavenir.com>. This message contains the 
views of its author and may not necessarily reflect the views of Mavenir 
Systems, Inc. or its affiliates, who employ systems to monitor email messages, 
but make no representation that such messages are authorized, secure, 
uncompromised, or free from computer viruses, malware, or other defects. Thank 
You




This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You

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



Re: [E] COMMERCIAL BULK: Re: [vpp-dev] Issues with failsafe dpdk pmd in Azure

2022-12-02 Thread Kevin Yan via lists.fd.io
Hi Peter, Stephen and Long,
   I am facing some issues when running VPP on Azure VM, can you 
please help and give some suggestion if possible.
   I'm running CentOS 7.9 with kernel version 3.10.0 on Azure VM, 
VPP version is 20.09 and DPDK version is 20.11, below is the snapshot of vpp 
startup.conf related to netvsc device

dpdk {
socket-mem 0
no-multi-seg
vdev net_vdev_netvsc0,iface=eth1
vdev net_vdev_netvsc1,iface=eth2
netvsc_dev eth1 {
vpp_interface_name fpeth1
num-rx-queues 1
num-tx-queues 1
num-rx-desc 1024
num-tx-desc 1024
}
netvsc_dev eth2 {
vpp_interface_name fpeth2
num-rx-queues 1
num-tx-queues 1
num-rx-desc 1024
num-tx-desc 1024
}
}
   Forget the netvsc_dev section, this is added by me in order to 
change the failsafe interface name ,otherwise it will always use the default 
name: FailsafeEthernet1, FailsafeEthernet2, etc.
   Btw, for my kernel version(3.10.0) , it can only run failsafe 
PMD in VPP/DDPK, right?

   Basically, we are using two netvsc interfaces and vpp can come 
up without any issue, show hard/show log output looks good and is listed as 
below:
vpp# sh hard
  NameIdx   Link  Hardware
fpeth1 1 up   fpeth1
  Link speed: 50 Gbps
  Ethernet address 00:0d:3a:57:cc:aa
  FailsafeEthernet
carrier up full duplex mtu 1504
flags: admin-up pmd rx-ip4-cksum
Devargs: fd(30),dev(net_tap_vsc0,remote=eth1)
rx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
max rx packet len: 1522
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  ipv4-cksum udp-cksum tcp-cksum scatter
rx offload active: ipv4-cksum
tx offload avail:  ipv4-cksum udp-cksum tcp-cksum tcp-tso multi-segs
tx offload active: none
rss avail: ipv4-frag ipv4-tcp ipv4-udp ipv4-other ipv4 ipv6-tcp-ex
   ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp ipv6-other
   ipv6-ex ipv6
rss active:none
tx burst function: failsafe_tx_burst_fast
rx burst function: failsafe_rx_burst_fast

tx frames ok1507
tx bytes ok95370
rx frames ok 322
rx bytes ok33127
extended stats:
  rx_good_packets322
  tx_good_packets   1507
  rx_good_bytes33127
  tx_good_bytes95370
  rx_q0_packets  322
  rx_q0_bytes  33127
  tx_q0_packets 1507
  tx_q0_bytes  95370
  tx_sub0_good_packets  1507
  tx_sub0_good_bytes   95370
  tx_sub0_q0_packets1507
  tx_sub0_q0_bytes 95370
  tx_sub0_unicast_packets322
  tx_sub0_unicast_bytes30910
  tx_sub0_multicast_packets   29
  tx_sub0_multicast_bytes   3066
  tx_sub0_broadcast_packets 1209
  tx_sub0_broadcast_bytes  80718
  rx_sub1_good_packets   322
  rx_sub1_good_bytes   33127
  rx_sub1_q0_packets 322
  rx_sub1_q0_bytes 33127
fpeth2 2 up   fpeth2
  Link speed: 50 Gbps
  Ethernet address 00:0d:3a:57:cf:f0
  FailsafeEthernet
carrier up full duplex mtu 1504
flags: admin-up pmd rx-ip4-cksum
Devargs: fd(45),dev(net_tap_vsc1,remote=eth2)
rx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
max rx packet len: 1522
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  ipv4-cksum udp-cksum tcp-cksum scatter
rx offload active: ipv4-cksum
tx offload avail:  ipv4-cksum udp-cksum tcp-cksum tcp-tso multi-segs
tx offload active: none
rss avail: ipv4-frag ipv4-tcp ipv4-udp ipv4-other ipv4 ipv6-tcp-ex
   ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp ipv6-other
   ipv6-ex ipv6
rss active:none
tx burst function: failsafe_tx_burst_fast
rx burst function: failsafe_rx_burst_fast

tx frames ok  

Re: [E] COMMERCIAL BULK: Re: [vpp-dev] Issues with failsafe dpdk pmd in Azure

2022-12-02 Thread Kevin Yan via lists.fd.io
Hi All,
   After I run below two cmds manually, ping traffic recovered , 
but why tc mirred not working after sometime

tc qdisc add dev eth1 handle : ingress
tc filter add dev eth1 parent : u32  match u32 0 0 action mirred egress 
redirect dev dtap0

Best Regards,
Kevin
From: vpp-dev@lists.fd.io  On Behalf Of Kevin Yan via 
lists.fd.io
Sent: Friday, December 2, 2022 4:39 PM
To: Peter Morrow ; Stephen Hemminger 

Cc: vpp-dev@lists.fd.io; Long Li 
Subject: COMMERCIAL BULK: Re: [E] COMMERCIAL BULK: Re: [vpp-dev] Issues with 
failsafe dpdk pmd in Azure


[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
sender and know the content is safe.
Hi Peter, Stephen and Long,
   I am facing some issues when running VPP on Azure VM, can you 
please help and give some suggestion if possible.
   I'm running CentOS 7.9 with kernel version 3.10.0 on Azure VM, 
VPP version is 20.09 and DPDK version is 20.11, below is the snapshot of vpp 
startup.conf related to netvsc device

dpdk {
socket-mem 0
no-multi-seg
vdev net_vdev_netvsc0,iface=eth1
vdev net_vdev_netvsc1,iface=eth2
netvsc_dev eth1 {
vpp_interface_name fpeth1
num-rx-queues 1
num-tx-queues 1
num-rx-desc 1024
num-tx-desc 1024
}
netvsc_dev eth2 {
vpp_interface_name fpeth2
num-rx-queues 1
num-tx-queues 1
num-rx-desc 1024
num-tx-desc 1024
}
}
   Forget the netvsc_dev section, this is added by me in order to 
change the failsafe interface name ,otherwise it will always use the default 
name: FailsafeEthernet1, FailsafeEthernet2, etc.
   Btw, for my kernel version(3.10.0) , it can only run failsafe 
PMD in VPP/DDPK, right?

   Basically, we are using two netvsc interfaces and vpp can come 
up without any issue, show hard/show log output looks good and is listed as 
below:
vpp# sh hard
  NameIdx   Link  Hardware
fpeth1 1 up   fpeth1
  Link speed: 50 Gbps
  Ethernet address 00:0d:3a:57:cc:aa
  FailsafeEthernet
carrier up full duplex mtu 1504
flags: admin-up pmd rx-ip4-cksum
Devargs: fd(30),dev(net_tap_vsc0,remote=eth1)
rx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
max rx packet len: 1522
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  ipv4-cksum udp-cksum tcp-cksum scatter
rx offload active: ipv4-cksum
tx offload avail:  ipv4-cksum udp-cksum tcp-cksum tcp-tso multi-segs
tx offload active: none
rss avail: ipv4-frag ipv4-tcp ipv4-udp ipv4-other ipv4 ipv6-tcp-ex
   ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp ipv6-other
   ipv6-ex ipv6
rss active:none
tx burst function: failsafe_tx_burst_fast
rx burst function: failsafe_rx_burst_fast

tx frames ok1507
tx bytes ok95370
rx frames ok 322
rx bytes ok33127
extended stats:
  rx_good_packets322
  tx_good_packets   1507
  rx_good_bytes33127
  tx_good_bytes95370
  rx_q0_packets  322
  rx_q0_bytes  33127
  tx_q0_packets 1507
  tx_q0_bytes  95370
  tx_sub0_good_packets  1507
  tx_sub0_good_bytes   95370
  tx_sub0_q0_packets1507
  tx_sub0_q0_bytes 95370
  tx_sub0_unicast_packets322
  tx_sub0_unicast_bytes30910
  tx_sub0_multicast_packets   29
  tx_sub0_multicast_bytes   3066
  tx_sub0_broadcast_packets 1209
  tx_sub0_broadcast_bytes  80718
  rx_sub1_good_packets   322
  rx_sub1_good_bytes   33127
  rx_sub1_q0_packets 322
  rx_sub1_q0_bytes 33127
fpeth2 2 up   fpeth2
  Link speed: 50 Gbps
  Ethernet address 00:0d:3a:57:cf:f0
  FailsafeEthernet
carrier up full duplex mtu 1504
flags: admin-up pmd rx-ip4-cksum
Devargs: fd(45),dev(net_tap_vsc1,remote=eth2)
rx: queues 1 (max 16), desc 1024 (min 0 max 65535 align 1)
tx: queues 1 (max 16), desc 1024 (

Re: [E] COMMERCIAL BULK: [vpp-dev] TLS app stuck after burst of traffic #vpp-hoststack

2023-03-06 Thread Kevin Yan via lists.fd.io
Hi @Olivia Dunham,
   Recently I met the exact same issue,  TLS TX svm fifo gets full 
after burst of traffic and it will never resume, meanwhile, TCP TX svm fifo is 
empty at that time I’m using VPP20.09,  I believe there is some issue in TLS 
layer,
so did you fix the issue later? If yes, can you share the solution.

BRs,
Kevin

From: vpp-dev@lists.fd.io  On Behalf Of Olivia Dunham
Sent: Tuesday, September 14, 2021 8:58 PM
To: vpp-dev@lists.fd.io
Subject: [E] COMMERCIAL BULK: [vpp-dev] TLS app stuck after burst of traffic 
#vpp-hoststack


Email is from a Free Mail Service (Gmail/Yahoo/Hotmail….) : Beware of Phishing 
Scams, Report questionable emails to s...@mavenir.com
During sudden burst of traffic, the TCP fifo gets full. When this happens the 
openssl TLS app de-schedules the transport. But once the TCP data is sent out, 
the TLS is not resuming. VPP ends up in a state where TCP fifo is empty, but 
the TLS fifo is full and no more Tx happens on TLS fifo.

VPP version: 21.01

We came across this commit - session tls: deq notifications for custom 
tx
Not sure what is the issue fixed by this commit, but It doesn't seem to fix the 
above mentioned issue.

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22671): https://lists.fd.io/g/vpp-dev/message/22671
Mute This Topic: https://lists.fd.io/mt/97440914/21656
Mute #vpp-hoststack:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-hoststack
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]
-=-=-=-=-=-=-=-=-=-=-=-



Re: COMMERCIAL BULK: Re: [E] COMMERCIAL BULK: [vpp-dev] TLS app stuck after burst of traffic #vpp-hoststack

2023-03-07 Thread Kevin Yan via lists.fd.io
Hi Florin,
   Due to some reasons we need to stay on vpp20.09 for some time,  
that’s why I hope I can fix the issue on this version. Actually, I  did some 
code changes in TLS layer to let session node force reschedule the TLS session 
when tx svm fifo is full or at least not empty, after the changes, the tx  svm 
fifo can be recovered after stopping the traffic, but I think this is not the 
correct way to solve the issue😊.

   Anyway let me see if I can test the same case with latest vpp 
codes

BRs,
Kevin

From: vpp-dev@lists.fd.io  On Behalf Of Florin Coras
Sent: Tuesday, March 7, 2023 2:49 PM
To: vpp-dev 
Cc: Olivia Dunham 
Subject: COMMERCIAL BULK: Re: [E] COMMERCIAL BULK: [vpp-dev] TLS app stuck 
after burst of traffic #vpp-hoststack


Email is from a Free Mail Service (Gmail/Yahoo/Hotmail….) : Beware of Phishing 
Scams, Report questionable emails to s...@mavenir.com<mailto:s...@mavenir.com>
Hi Kevin,

That’s a really old version of vpp. TLS has seen several improvements since 
then in areas including scheduling after incomplete writes. If you get a chance 
to test vpp latest or a more recent release, do let us know if the issue still 
persists.

Regards,
Florin


On Mar 6, 2023, at 5:42 PM, Kevin Yan via lists.fd.io 
mailto:kevin.yan=mavenir@lists.fd.io>> 
wrote:

Hi @Olivia Dunham<mailto:theoliviadun...@gmail.com>,
   Recently I met the exact same issue,  TLS TX svm fifo gets full 
after burst of traffic and it will never resume, meanwhile, TCP TX svm fifo is 
empty at that time I’m using VPP20.09,  I believe there is some issue in TLS 
layer,
so did you fix the issue later? If yes, can you share the solution.

BRs,
Kevin

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
mailto:vpp-dev@lists.fd.io>> On Behalf Of Olivia Dunham
Sent: Tuesday, September 14, 2021 8:58 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [E] COMMERCIAL BULK: [vpp-dev] TLS app stuck after burst of traffic 
#vpp-hoststack


Email is from a Free Mail Service (Gmail/Yahoo/Hotmail….) : Beware of Phishing 
Scams, Report questionable emails tos...@mavenir.com<mailto:s...@mavenir.com>
During sudden burst of traffic, the TCP fifo gets full. When this happens the 
openssl TLS app de-schedules the transport. But once the TCP data is sent out, 
the TLS is not resuming. VPP ends up in a state where TCP fifo is empty, but 
the TLS fifo is full and no more Tx happens on TLS fifo.

VPP version: 21.01

We came across this commit - session tls: deq notifications for custom 
tx<https://github.com/FDio/vpp/commit/1e6a0f64653c8142fa7032aba127ab4894bafc3c>
Not sure what is the issue fixed by this commit, but It doesn't seem to fix the 
above mentioned issue.

This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to 
secur...@mavenir.com<mailto:secur...@mavenir.com>. This message contains the 
views of its author and may not necessarily reflect the views of Mavenir 
Systems, Inc. or its affiliates, who employ systems to monitor email messages, 
but make no representation that such messages are authorized, secure, 
uncompromised, or free from computer viruses, malware, or other defects. Thank 
You




This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22673): https://lists.fd.io/g/vpp-dev/message/22673
Mute This Topic: https://lists.fd.io/mt/97448587/21656
Mute #vpp-hoststack:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-hoststack
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]
-=-=-=-=-=-=-=-=-=-=-=-