Re: [vpp-dev] gdb vpp with make test?

2021-04-19 Thread hemant via lists.fd.io
Dave, Works – thanks much! Good to hear from you. Hemant From: Dave Wallace Sent: Monday, April 19, 2021 9:21 PM To: hem...@mnkcg.com; fcoras.li...@gmail.com Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] gdb vpp with make test? Hemant, If you want to debug a vpp-debug image, th

Re: [vpp-dev] gdb vpp with make test?

2021-04-19 Thread Dave Wallace
Hemant, If you want to debug a vpp-debug image, then use: make test-debug TEST=test_foo DEBUG=gdb Thanks, -daw- On 4/19/2021 9:15 PM, hemant via lists.fd.io wrote: Hi Florin, I first built a debugged vpp image using “sudo make build”.  Then I used the command you showed me below and intere

Re: [vpp-dev] gdb vpp with make test?

2021-04-19 Thread hemant via lists.fd.io
Hi Florin, I first built a debugged vpp image using “sudo make build”. Then I used the command you showed me below and interestingly the command builds a release binary and then runs. So, data structures I want inspect in gdb are optimized out. I don’t see this vagary with VPP shell debugg

Re: [vpp-dev] gdb vpp with make test?

2021-04-19 Thread hemant via lists.fd.io
Hi Florin, Yes, this is what I was looking for – thanks so much for the expedited reply! Best wishes, Hemant From: vpp-dev@lists.fd.io On Behalf Of Florin Coras Sent: Monday, April 19, 2021 7:57 PM To: hem...@mnkcg.com Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] gdb vpp with mak

Re: [vpp-dev] gdb vpp with make test?

2021-04-19 Thread Florin Coras
Hi Hemant, Probably you’re looking for: make test TEST=test_foo DEBUG=gdb Regards, Florin > On Apr 19, 2021, at 4:00 PM, hemant via lists.fd.io > wrote: > > Hi folks, > > I know how to use gdb with vpp when a vpp shell is logged into using “sudo > vppctl -s /run/vpp/cli.sock”. > > Howeve

[vpp-dev] gdb vpp with make test?

2021-04-19 Thread hemant via lists.fd.io
Hi folks, I know how to use gdb with vpp when a vpp shell is logged into using "sudo vppctl -s /run/vpp/cli.sock". However, I can't work with gdb to debug vpp if I am using "sudo make test TEST=test_foo". Is it even possible? Since I can't make gdb work with "sudo make test", this is

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread hemant via lists.fd.io
From: Neale Ranns Sent: Monday, April 19, 2021 12:04 PM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] dst mac-address look up? From: hem...@mnkcg.com mailto:hem...@mnkcg.com> > Date: Monday, 19 April 2021 at 17:23 To: hem...@mnkcg.com

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread Neale Ranns
From: hem...@mnkcg.com Date: Monday, 19 April 2021 at 17:23 To: hem...@mnkcg.com , Neale Ranns , vpp-dev@lists.fd.io Subject: RE: [vpp-dev] dst mac-address look up? I do see a correct adj in the output from “sh adj” for the pg1 interface. [@16] ipv6 via 2002::2 pg1: mtu:9000 next:4 flags:[]

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread hemant via lists.fd.io
I do see a correct adj in the output from "sh adj" for the pg1 interface. [@16] ipv6 via 2002::2 pg1: mtu:9000 next:4 flags:[] 002590ebe8ed02fee2df6d1386dd So the issue is how I get adj_index in the VPP plugin code is clearly not working. u32 adj_index = vnet_buffer (b)->ip.adj_in

Re: [vpp-dev] route based on the source ip

2021-04-19 Thread Benoit Ganne (bganne) via lists.fd.io
> Can we mix, ABF and VRF ? I'd think so, something like this should work: abf policy add id acl via ip4-lookup-in-table ben > On Mon, 19 Apr 2021 at 17:31, Benoit Ganne (bganne) > wrote: > > > Hi Venu, > > You can do that with ABF, see https://wiki.f

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread hemant via lists.fd.io
I am using a test_plugin.py with VPP Python API. The ip6 address found in ip-neighbor is 2002::2. 10:43:38,382 CLI: show ip6 neighbors 10:43:38,382 Calling cli_inband('cmd':'show ip6 neighbors\n','context':67,'_vl_msg_id':614,'client_index':2147483649) 10:43:38,383 Return value: cli_inban

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread Neale Ranns
From: hem...@mnkcg.com Date: Monday, 19 April 2021 at 16:03 To: Neale Ranns , vpp-dev@lists.fd.io Subject: RE: [vpp-dev] dst mac-address look up? From: Neale Ranns Sent: Monday, April 19, 2021 3:34 AM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] dst mac-address look up?

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread hemant via lists.fd.io
From: Neale Ranns Sent: Monday, April 19, 2021 3:34 AM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] dst mac-address look up? From: hem...@mnkcg.com mailto:hem...@mnkcg.com> > Date: Sunday, 18 April 2021 at 19:25 To: Neale Ranns mailto

Re: [vpp-dev] route based on the source ip

2021-04-19 Thread Venumadhav Josyula
Hi Benoit, Can we mix, ABF and VRF ? Thanks, Regards Venu On Mon, 19 Apr 2021 at 17:31, Benoit Ganne (bganne) wrote: > Hi Venu, > > You can do that with ABF, see https://wiki.fd.io/view/VPP/ABF > > Best > ben > > > -Original Message- > > From: vpp-dev@lists.fd.io On Behalf Of Venumadh

Re: [vpp-dev] route based on the source ip

2021-04-19 Thread Neale Ranns
There’s also source VRF select (SVS) plugin /neale From: vpp-dev@lists.fd.io on behalf of Benoit Ganne (bganne) via lists.fd.io Date: Monday, 19 April 2021 at 14:01 To: Venumadhav Josyula , vpp-dev Subject: Re: [vpp-dev] route based on the source ip Hi Venu, You can do that with ABF, see ht

Re: [vpp-dev] route based on the source ip

2021-04-19 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Venu, You can do that with ABF, see https://wiki.fd.io/view/VPP/ABF Best ben > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of Venumadhav > Josyula > Sent: lundi 19 avril 2021 13:17 > To: vpp-dev > Subject: [vpp-dev] route based on the source ip > > Hi, > > We have a r

[vpp-dev] route based on the source ip

2021-04-19 Thread Venumadhav Josyula
Hi, We have a requirement such that i) we want to have a vrf table for each vlan interface. Each vrf will have it own default route ii)for packets from the host interface , we want to have a route based on the source ip such we can redirect to use vrf table as next hop table. iii) We are using str

Re: [vpp-dev] Changes to .api files

2021-04-19 Thread Ole Troan
Hi Paul, > I'd like to propose three more changes/cleanup to the api files/vppapigen. > > 1. I'd like to remove the logic in vpppigen that imperatively declares the > service definitions. Instead of calculating the values, we would output the > necessary values to be added to the api file. Ye

Re: [vpp-dev] dst mac-address look up?

2021-04-19 Thread Neale Ranns
From: hem...@mnkcg.com Date: Sunday, 18 April 2021 at 19:25 To: Neale Ranns , vpp-dev@lists.fd.io Subject: RE: [vpp-dev] dst mac-address look up? I test using a plugin_test.py script. I am using device-input to ingress packets. The packets undergo a 6-tuple lookup (simplified description of

Re: [vpp-dev] How to enable Mellanox compilation in VPP 21.01

2021-04-19 Thread Július Milan
Hi Mohammed Thanks a lot, I confirm that it worked well on branch stable/2101. However on master (ae34872077c956aa34ee816b55ccb5c5f6ab40a1), I got the following error: $ make run /home/pantheontech/dev/vpp_master/build-root/install-vpp_debug-native/vpp/bin/vpp: symbol lookup error: /home/pantheon