Re: [vpp-dev] Regarding vnet/gre

2021-05-25 Thread Vijay Kumar
Thank you much Neale. Your inputs really helped. On Tue, May 25, 2021, 23:57 Neale Ranns wrote: > > > Hi Vijay, > > > > It is called from ipX-midchain. > > > > /neale > > > > *From: *Vijay Kumar > *Date: *Tuesday, 25 May 2021 at 17:08 > *To: *Neale Ranns > *Cc: *vpp-dev > *Subject: *Re:

Re: [vpp-dev] Regarding vnet/gre

2021-05-25 Thread Neale Ranns
Hi Vijay, It is called from ipX-midchain. /neale From: Vijay Kumar Date: Tuesday, 25 May 2021 at 17:08 To: Neale Ranns Cc: vpp-dev Subject: Re: [vpp-dev] Regarding vnet/gre Hi Neale, Thanks for the useful input. I will implement a new fixup function similar to the one mentioned. I believe

Re: [vpp-dev] IPv6 in IPv6 Encapsulation

2021-05-25 Thread jerome . bayaux
Hello Ole, I implemented the solution you suggested (i.e chaining the buffers) and it seems to work correctly now so thank you ! However, I had another issue : when some TCP or UDP packets arrive in VPP, the latter seems to set their checksum to zero and it also sets the "offload" flag of th

Re: [vpp-dev] VCL app requires source address/interface control due to loopback

2021-05-25 Thread Florin Coras
Hi Sastry, So the source address should be configurable, but for if the app requires a certain vrf, you should consider the option of using session layer namespaces. See for instance test/test_vcl.py and how we configure those. Note however that will restrict the app to use only one vrf. Reg

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-25 Thread Florin Coras
Hi Sastry, Inline. > On May 25, 2021, at 7:44 AM, Sastry Sista wrote: > > Hi Florin, > Thank you. > > Let me be very specific and focused topic: > > I have just single worker but having multiple TCP sessions. So, I will poll > on vppcom_mq_epoll_fd() for all notifications. S

Re: [vpp-dev] Regarding vnet/gre

2021-05-25 Thread Vijay Kumar
Hi Neale, Thanks for the useful input. I will implement a new fixup function similar to the one mentioned. I believe the gre44_fixup function callback is registered via *adj_nbr_midchain_update_rewrite()* I saw the code of *adj-midchain-tx* graph node but could not find the fixup function being c

Re: [vpp-dev] vpp crash issue with large number of acl session

2021-05-25 Thread NetHappy
Hi Andrew, Thanks for your reply. I would modify the configuration as per your suggestions. Thanks, Mahamuda -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19464): https://lists.fd.io/g/vpp-dev/message/19464 Mute This Topic: https://lists.fd.io/mt

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-25 Thread Sastry Sista
Hi Florin, Thank you. Let me be very specific and focused topic: I have just single worker but having multiple TCP sessions. So, I will poll on vppcom_mq_epoll_fd() for all notifications. So, notifications are for me to do data read/write also? If there is a data on shm for any session, we will

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

2021-05-25 Thread Rajith PR via lists.fd.io
HI Ben, We have linked our shared library that has the main function with VPP's .so. The main function does few things and falls to the VPP's main function loop. After changing the compiler t*o gcc-8 I dont get the unresolved symbol error*. However, i get the f*ollowing ASAN error:* ==7111==*ASa

Re: [vpp-dev] AF_XDP usage help in VPP21.01

2021-05-25 Thread Benoit Ganne (bganne) via lists.fd.io
> I have used the latest master which includes the patch. Ok thanks. To confirm this is an issue with the zero-copy mode, can you try to create the af_xdp interface in copy mode by adding the 'no-zero-copy' keyword in the create command, eg. ~# vppctl create int af_xdp host-if no-zero-copy If

Re: [vpp-dev] AF_XDP usage help in VPP21.01

2021-05-25 Thread Xuekun
Hi, Ben I have used the latest master which includes the patch. commit 1a06e53341224bb08cff2fb6d218415c50f947d3 Author: Benoît Ganne Date: Wed May 19 16:41:03 2021 +0200 af_xdp: use desc offset on rx Instead of pre-programming the data offset on rx, use offset passed in the desc

Re: [vpp-dev] AF_XDP usage help in VPP21.01

2021-05-25 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Xuekun, Can you try with the latest master which now contains https://gerrit.fd.io/r/c/vpp/+/32384 if you did not already tried it? I suspect that could be an offset issue and this change should be more robust for those. Best ben > -Original Message- > From: Hu, Xuekun > Sent: mard

Re: [vpp-dev] Regarding vnet/gre

2021-05-25 Thread Neale Ranns
Hi Vijay, I’d advise you to create a new fixup function (c.f. gre44_fixup) that deals with the extra headers you want. /neale From: vpp-dev@lists.fd.io on behalf of Vijay Kumar via lists.fd.io Date: Tuesday, 25 May 2021 at 14:07 To: vpp-dev Subject: [vpp-dev] Regarding vnet/gre Hi, I hav

[vpp-dev] REMINDER: VPP 21.06 RC1 in 23 hours!

2021-05-25 Thread Andrew Yourtchenko
Hi all, Just a kind reminder that the stable/2106 branch pull will happen in about 23 hours from now. --a // your friendly 21.06 release manager -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19457): https://lists.fd.io/g/vpp-dev/message/19457 Mut

Re: [vpp-dev] vpp crash issue with large number of acl session

2021-05-25 Thread Andrew Yourtchenko
to be precise: “memory { main-heap-size 16G }” or something along these lines is what might be useful for your config. --a > On 25 May 2021, at 14:40, Andrew 👽 Yourtchenko wrote: > > There is no way to gracefully fail an insertion into a bihash - it either > succeeds or you get a crash. > >

Re: [vpp-dev] vpp crash issue with large number of acl session

2021-05-25 Thread Andrew Yourtchenko
There is no way to gracefully fail an insertion into a bihash - it either succeeds or you get a crash. The max session limit attempts to guard against that, by failing the addition using the heuristic number. You dialed this number up to 20 mil, so no more safe guard - which is what you observe

Re: [vpp-dev] AF_XDP usage help in VPP21.01

2021-05-25 Thread Xuekun
Hi, Ben. I figured out the problem in my setup that on the ixgbe driver. 1. ixgbe 5.1.0 (which don't have XDP enabled yet) + VPP master (that have your below patch) : work 2. ixgbe 5.8.1 (which have XDP enabled) + VPP master : doesn't work Strange. Have any ideas? Thanks. Thx, Xuekun -

[vpp-dev] Regarding vnet/gre

2021-05-25 Thread Vijay Kumar
Hi, I have a requirement to add extension fields (like QFI, RQI) into the GRE packet header leaving the VPP. Upon analyzing the packet trace, I found that gre4_input graph node is called whenever GRE packets enter VPP but for outgoing packets, the GRE header is added by the tunnel's mid-chain adj

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

2021-05-25 Thread Benoit Ganne (bganne) via lists.fd.io
How are you starting VPP? If this is through 'make test' then chances are the culprit is the interaction of asan, clang and python [1]. The easy way to fix is to rebuild with gcc instead of clang, eg. ~# make rebuild VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON CC=gcc-9 Best ben [1] https

Re: [vpp-dev] Facing Abort in VPP with Sanitizer

2021-05-25 Thread Benoit Ganne (bganne) via lists.fd.io
If your backtrace is to be trusted, your stack is corrupted: > #0 0x73bce8c9 in clib_memcpy_fast (dst=0x1881349000d2f00, > src=0x13010b390b3b0b, n=4182438362655424791) Pointers and size look definitely wrong here. If the crash always happen at the same place, I'd recommend to break right

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

2021-05-25 Thread Rajith PR via lists.fd.io
Hi All, I am not able to run VPP with ASAN. Though we have been using VPP for sometime this is the first time we enabled ASAN in the build. I have followed the steps as mentioned in the sanitizer doc, can someone please let me know what is missed here. *Run Time Error(Missing symbol):* /usr/loca

[vpp-dev] Facing Abort in VPP with Sanitizer

2021-05-25 Thread chetan bhasin
Hello Everyone, We have back-merged ASAN related changes to vpp_1908 . We are using devtool-set-9 for our compilation of SANITIZER build. Application is getting abort in File : src/vpp/api/api_format.c Function : void vat_api_hookup (vat_main_t * vam) Code : 22191 /* API messages we can send */