Re: [vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Prashant Upadhyaya
Thanks Dave, the link is very useful ! On Sat, Nov 3, 2018 at 2:20 AM Dave Barach (dbarach) wrote: > > See also > https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#creating-packets-from-scratch > > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of

Re: [vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Dave Barach via Lists.Fd.Io
See also https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#creating-packets-from-scratch -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Friday, November 2, 2018 12:54 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev]

Re: [vpp-dev] auto-abandon

2018-11-02 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
> difficult to find I decided to test that, on a change that is actually abandoned (because 9336 is not, yet). This [0] simple search link finds two changes, one [1] of them is abandoned. Vratko. [0] https://gerrit.fd.io/r/#/q/%22igmp+proxy%22 [1] https://gerrit.fd.io/r/12561 From:

[vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Prashant Upadhyaya
Hi, When I allocate a buffer using the vlib_buffer_alloc, are the fields in the vlib_buffer_t guaranteed to be properly initialized (eg. with all zero values) or is there any obligation on the caller to initialize these because the values may be unpredictable ? Regards -Prashant

Re: [vpp-dev] PPPoE plugin documentation/support

2018-11-02 Thread alp . arslan
Hello, I want to use the latest VPP, instead of 17.10. The latest ( 18.10 ) version pppoe plugin is not working correctly. The PADI packets are successfully sent to the cp interface, but it is not creating and pppoe fib, due to which the PADO packets are being dropped. Packet 1

Re: [vpp-dev] Incrementing node counters

2018-11-02 Thread Dave Barach via Lists.Fd.Io
Yes, you missed something. This pattern is used in inline functions called with compile-time constant values for is_ip6: always_inline uword ah_encrypt_inline (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * from_frame, int is_ip6) VLIB_NODE_FN

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

2018-11-02 Thread alp . arslan
Using this command and running the application again, solved the issue, # rm -rf /dev/shm/* Thank you for the help. From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of alp.ars...@xflowresearch.com Sent: Friday, November 2, 2018 12:42 PM To: 'Kevin Yan';

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

2018-11-02 Thread alp . arslan
No luck. Getting a seg fault. Will try to build again with stable/1810 instead of the master. [root@vpp-build bin]# ./vpp -c startup.conf vlib_plugin_early_init:361: plugin path /vpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins load_one_plugin:189: Loaded plugin: abf_plugin.so

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]

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

2018-11-02 Thread alp . arslan
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

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;

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

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

2018-11-02 Thread alp . arslan
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:

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

2018-11-02 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