Re: [vpp-dev] FW: Bug: DHCP Client not sending DHCP REQUEST using VPP v22.02

2023-03-02 Thread hemant via lists.fd.io
There is something in the DHCP OFFER the client does not like and moves back to new DHCP session. Or the DHCP OFFER never made it to the client. Hemant From: vpp-dev@lists.fd.io On Behalf Of Thakur, Anagha Sent: Thursday, March 02, 2023 4:02 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp

[vpp-dev] docker pkg-deb?

2023-02-28 Thread hemant via lists.fd.io
Folks, I use "sudo make pkg-deb" to build. How to I build a docker image for pkg-deb? Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22633): https://lists.fd.io/g/vpp-de

Re: [vpp-dev] vpp core & bound checking

2022-12-14 Thread hemant via lists.fd.io
anguages for data plane. A bounded for loop is "for ( i < k)" where length of vector is stored in type so that the compiler can unroll loop and verify bound. Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, Decemb

Re: [vpp-dev] vpp core & bound checking

2022-12-14 Thread hemant via lists.fd.io
Hi Ben, What kind of bound failure is causing crashes? Is a for loop terminator exceeding bound or networking data exceeding bound? I can investigate changing the gcc compiler to check any bound at compile-time. Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Benoit G

Re: [vpp-dev] vpp core & bound checking

2022-11-30 Thread hemant via lists.fd.io
Agree with Ben. There is also gdb to use to debug a crash. Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Benoit Ganne (bganne) via lists.fd.io Sent: Wednesday, November 30, 2022 9:30 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] vpp core & bound checking Hi everyone,

Re: [vpp-dev] lpm table api?

2022-09-08 Thread hemant via lists.fd.io
I found lpm api and see the map plugin uses the api. I'm all set. https://docs.fd.io/vpp/19.04.3/d5/db5/lpm_8c_source.html Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, September 07, 2022 9:57 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev

[vpp-dev] lpm table api?

2022-09-07 Thread hemant via lists.fd.io
I see vpp uses a lpm table for fib_entry_t. Is any api available to create a lpm table in a plugin? Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21858): https://lists.fd.io/g/vpp-

Re: [vpp-dev] hash api?

2022-08-31 Thread hemant via lists.fd.io
Ben, Thanks so much. Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Benoit Ganne (bganne) via lists.fd.io Sent: Wednesday, August 31, 2022 3:11 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] hash api? > I did poke around hash.h but didn’t find the api I need. Woul

Re: [vpp-dev] hash api?

2022-08-30 Thread hemant via lists.fd.io
I did poke around hash.h but didn't find the api I need. Would vpp consider adding crc32 and crc16? ECMP and Network Packet Broker use hashes. Thanks, Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Tuesday, August 30, 2022 10:51 AM To: vpp-dev@lists.

[vpp-dev] hash api?

2022-08-30 Thread hemant via lists.fd.io
Does VPP support this kind of api for hash? https://github.com/p4lang/p4c/blob/08ef61a007b47b48945f86d60fc47b81b4d0fef1/ lib/hash.cpp#L78 Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply O

Re: [vpp-dev] make install-dep fails

2022-08-23 Thread hemant via lists.fd.io
/vpp/Makefile for when Ubuntu 18.04 was deprecated from the 'install-deps' target but there is no guarantee that it will still work. Thanks, -daw- On 8/23/2022 11:35 AM, hemant via lists.fd.io wrote: I am using Ubuntu 18.04. I cloned the vpp repo today. I see a failure to get enchant-2

[vpp-dev] make install-dep fails

2022-08-23 Thread hemant via lists.fd.io
I am using Ubuntu 18.04. I cloned the vpp repo today. I see a failure to get enchant-2 and libffi7. I installed libffi-dev and enchant but still see the failure. git clone https://gerrit.fd.io/r/vpp $ sudo make install-deps Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http:/

[vpp-dev] FW: [P4-design] Re: new language features for "5G" and "edge" use cases

2022-08-09 Thread hemant via lists.fd.io
As you can see from the lengthy discussion below, VPP is filling yet another need and so is P4. Hemant From: hemant via p4-design Sent: Tuesday, August 09, 2022 9:46 AM To: 'Gergely Pongracz' ; mbu...@vmware.com; jnfos...@cs.cornell.edu Cc: p4-des...@lists.p4.org Subject: RE: [P4-design

Re: [vpp-dev] Crash in rte_ipv6_phdr_cksum during tx

2022-08-04 Thread hemant via lists.fd.io
Build a debug vpp image and use gdb to debug the crash. Hemant From: vpp-dev@lists.fd.io On Behalf Of Vijay Kumar Sent: Thursday, August 04, 2022 12:17 AM To: vpp-dev Subject: [vpp-dev] Crash in rte_ipv6_phdr_cksum during tx Hi experts, Has anyone seen this below crash back-trace happ

Re: [vpp-dev] Unable to set valid-lifetime in ipv6 ra

2022-08-01 Thread hemant via lists.fd.io
Takanori-san, I don't see no-decrement ra option in rfc4861. Could you please provide a reference in a document first. Thanks, Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Takanori Hirano via lists.fd.io Sent: Monday, August 01, 2022 7:01 AM To: vpp-dev@lists.fd.

[vpp-dev] FD.io's VPP Smashes the Barrier to Wide Scale Adoption of Inexpensive High-Performance IPsec

2022-07-23 Thread hemant via lists.fd.io
This is a webinar from 2020 I watched today: https://www.youtube.com/watch?v=OZeSsyBDUiE At time 45:31 in the video a question was asked and not answered. It was "Is there a study comparing P4, VPP and NPL? First, the P4 to dpdk compiler does not support IPSec yet. Even if the compiler did, th

Re: [vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
dd_delete_entry() in span.[ch]. HTH... Dave From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Wednesday, July 7, 2021 5:40 PM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [vpp-de

Re: [vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
.[ch]. HTH... Dave From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Wednesday, July 7, 2021 5:40 PM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] how to use span api in

[vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
I see https://docs.fd.io/vpp/17.04/span_doc.html The link about says this is the api: : sw_interface_span_enable_disable I call the API in C code as: sw_interface_span_enable_disable ("TenGigabitEthernet3/0/0", "TenGigabitEthernet3/0/1", 3, true); When I compile the code I get thi

[vpp-dev] lawful_intercept

2021-07-03 Thread hemant via lists.fd.io
I see this work. https://gerrit.fd.io/r/c/vpp/+/28966 My vpp setup uses device-input and interface-output. I have to run lawful intercept (li) between my two nodes. I think this code causes li to not work for my setup. https://git.fd.io/vpp/tree/src/vnet/lawful-intercept/node.c#n277

Re: [vpp-dev] Lpm match?

2021-06-16 Thread hemant via lists.fd.io
that are used. /neale From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > on behalf of hemant via lists.fd.io mailto:hemant=mnkcg@lists.fd.io> > Date: Friday, 11 June 2021 at 14:12 To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.f

Re: [vpp-dev] bidirectional counter?

2021-06-16 Thread hemant via lists.fd.io
Ole, Thanks! Hemant -Original Message- From: otr...@employees.org Sent: Wednesday, June 16, 2021 3:47 AM To: hem...@mnkcg.com Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] bidirectional counter? > I am using vlib_simple_counter_main_t which gives a single count for my subscriber dat

[vpp-dev] bidirectional counter?

2021-06-15 Thread hemant via lists.fd.io
I am using vlib_simple_counter_main_t which gives a single count for my subscriber database in vpp. Does vpp have a counter that gives one separate rx and tx count? Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to

[vpp-dev] Lpm match?

2021-06-11 Thread hemant via lists.fd.io
For exact match of a table entry, I use the VPP bihash. For lpm (longest prefix match), what does VPP have for an artifact for use? Mtrie or anything else? Thanks, Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent

Re: Private: Re: [vpp-dev] vpp plugin to parse a packet to check ipv4 or ipv6 #vpp #vpp-dev #classify #vnet

2021-06-11 Thread hemant via lists.fd.io
Soon as you parse the ethernet header, the ethertype tells you ipv4 or pv6, etc. Hemant From: sp11012...@gmail.com Sent: Friday, June 11, 2021 4:37 AM To: hem...@mnkcg.com Subject: Private: Re: [vpp-dev] vpp plugin to parse a packet to check ipv4 or ipv6 #vpp #vpp-dev #classify #vnet On

Re: [vpp-dev] vpp plugin to parse a packet to check ipv4 or ipv6 #vpp #vpp-dev #classify #vnet

2021-06-10 Thread hemant via lists.fd.io
struct ethernet_header_t *hdr0 = vlib_buffer_get_current (b); struct ip4_header_t *hdr1 = 0; hdr1 = (ip4_header_t *) (hdr0 + 1); struct udp_header_t *hdr2 = 0; hdr2 = (udp_header_t *) (hdr1 + 1); Hemant From: vpp-dev@lists.fd.io On Behalf Of sp11012...@gmail.com Se

Re: [vpp-dev] goodbye Scapy...

2021-05-29 Thread hemant via lists.fd.io
hemant via lists.fd.io <http://lists.fd.io> mailto:mnkcg@lists.fd.io> > wrote: In recent past, folks discussed the licensing issue with Scapy and VPP. At the recently concluded 2021 P4 Workshop, Ixia has snappi as a common api. Please watch video below. https://www.youtube

[vpp-dev] goodbye Scapy...

2021-05-29 Thread hemant via lists.fd.io
In recent past, folks discussed the licensing issue with Scapy and VPP. At the recently concluded 2021 P4 Workshop, Ixia has snappi as a common api. Please watch video below. https://www.youtube.com/watch?v=Db7Cx1hngVY Hemant smime.p7s Description: S/MIME cryptographic signature -=-

Re: [vpp-dev] Source File Paths present in VPP shared library folders

2021-05-18 Thread hemant via lists.fd.io
Nobody uses VPP from github since the repo at github does not include latest VPP code. The VPP repo is stored at gerrit. Please use the command below to download latest VPP. git clone https://gerrit.fd.io/r/vpp Hemant From: vpp-dev@lists.fd.io On Behalf Of C.V Jyothishmathi Sent: Tues

Re: [EXTERNAL] Re: [vpp-dev] VPP Emacs Lisp evolution to P4

2021-05-05 Thread hemant via lists.fd.io
pp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Wednesday, May 5, 2021 12:09 To: hem...@mnkcg.com <mailto:hem...@mnkcg.com> ; vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [EXTERNAL] Re: [vpp-dev] VPP Emacs Lisp evolution to P4 I don't know why the emai

Re: [vpp-dev] VPP Emacs Lisp evolution to P4

2021-05-05 Thread hemant via lists.fd.io
d used P4 to generate a VPP plugin.” I have proved my point by generating a 5G UPF plugin using the compiler. ] Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, May 05, 2021 10:47 AM To: vpp-dev@lists.fd.io Subject: [vpp

[vpp-dev] VPP Emacs Lisp evolution to P4

2021-05-05 Thread hemant via lists.fd.io
smime.p7m Description: S/MIME encrypted message -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19340): https://lists.fd.io/g/vpp-dev/message/19340 Mute This Topic: https://lists.fd.io/mt/82606105/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubs

[vpp-dev] P4toVPP compiler and LI etc.

2021-05-03 Thread hemant via lists.fd.io
Recently, I discussed Lawful Intercept (LI) in this mailer including a crash with its configure CLI. I spent 10 minutes and wrote a P4 program for LI - see https://github.com/hesingh/mnkcg/blob/master/p4tovpp/li.p4 Then I compiled the P4 code with my company's p4tovpp compiler and generated c

Re: [vpp-dev] vpp_papi.py error

2021-04-30 Thread hemant via lists.fd.io
technique and has been used with older distros in the CI for a good while now. Paul https://gerrit.fd.io/r/c/vpp/+/30401/6/src/vpp-api/python/CMakeLists.txt On Fri, Apr 30, 2021 at 5:45 PM hemant via lists.fd.io <http://lists.fd.io> mailto:mnkcg@lists.fd.io> > wr

Re: [vpp-dev] vpp_papi.py error

2021-04-30 Thread hemant via lists.fd.io
/vpp/+/32172 Thanks Govind From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Friday, April 30, 2021 3:12 PM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] vpp_papi.py erro

[vpp-dev] vpp_papi.py error

2021-04-30 Thread hemant via lists.fd.io
I git cloned vpp gerrit repo yesterday and during using "sudo make build-release" I run into this error. Is a bug filed for this issue? Python 2.7 doesn't like a "*" for an arg. make[3]: Entering directory '/home/hemant/vpp/build-root/build-vpp-native/vpp' File "build/bdist.linux-x86_64/egg

[vpp-dev] lawful intercept contd.

2021-04-28 Thread hemant via lists.fd.io
smime.p7m Description: S/MIME encrypted message -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19301): https://lists.fd.io/g/vpp-dev/message/19301 Mute This Topic: https://lists.fd.io/mt/82437581/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubs

Re: [vpp-dev] lawful intercept

2021-04-28 Thread hemant via lists.fd.io
io On Behalf Of hemant > via lists.fd.io > Sent: mardi 27 avril 2021 22:46 > To: Steven Luong (sluong) ; vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] lawful intercept > > Steven, > > > > Thanks. I am using notes from this link for “git commit”: > https://wiki.fd

Re: [vpp-dev] lawful intercept

2021-04-27 Thread hemant via lists.fd.io
comment is missing “Type:”. Steven From: mailto:vpp-dev@lists.fd.io> > on behalf of "hemant via lists.fd.io" mailto:hemant=mnkcg@lists.fd.io> > Reply-To: "hem...@mnkcg.com <mailto:hem...@mnkcg.com> " mailto:hem...@mnkcg.com> > Date: Tues

Re: [vpp-dev] lawful intercept

2021-04-27 Thread hemant via lists.fd.io
le issues. Then "make checkstyle" passed. But after issuing the code review, VPP automated build report a style failure - go figure. Hemant From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: T

Re: [vpp-dev] lawful intercept

2021-04-27 Thread hemant via lists.fd.io
mated build report a style failure - go figure. Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Tuesday, April 27, 2021 1:01 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] lawful intercept Does VPP CSIT test LI or what is Lawful Intercept? I used the LI C

[vpp-dev] lawful intercept

2021-04-27 Thread hemant via lists.fd.io
Does VPP CSIT test LI or what is Lawful Intercept? I used the LI CLI shown at the link below. The CLI use did not incur any error. However, when I send packets, the packets are not getting tapped. "trace add dpdk-input" does not show any "LI_HIT" trace. https://docs.fd.io/vpp/17.04/clicm

Re: [vpp-dev] rewrite constructed using ARPND

2021-04-23 Thread hemant via lists.fd.io
he use the resulting adj_index_t as the result of the 6-tuple lookup. /neale From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > on behalf of hemant via lists.fd.io mailto:hemant=mnkcg@lists.fd.io> > Date: Thursday, 22 April 2021 a

Re: [vpp-dev] rewrite constructed using ARPND

2021-04-22 Thread hemant via lists.fd.io
Yes, thanks, Ben! Then, the other issue to close is what if interface adj rewrite is constructed using ARP/ND? Would a VPP user configure the interface adj in control plane? Hemant -Original Message- From: Benoit Ganne (bganne) Sent: Thursday, April 22, 2021 11:40 AM To: hem...@mnkcg.c

[vpp-dev] rewrite constructed using ARPND

2021-04-22 Thread hemant via lists.fd.io
HI Neale, I created a new thread to drill down on adj rewrite constructed using ARP/ND. I am saying, its not possible to create a control-plane entry if the rewrite is constructed from ARP/ND learning. The reason is how does the control-plane learn what ARP/ND have learnt? Does VPP support a

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

2021-04-21 Thread hemant via lists.fd.io
From: Neale Ranns Sent: Wednesday, April 21, 2021 12:19 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: Wednesday, 21 April 2021 at 17:36 To: Neale Ranns mailt

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

2021-04-21 Thread hemant via lists.fd.io
From: Neale Ranns Sent: Wednesday, April 21, 2021 12:19 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: Wednesday, 21 April 2021 at 17:36 To: Neale Ranns mailto:ne..

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

2021-04-21 Thread hemant via lists.fd.io
Hi Neale, Thanks for your help and patience. The adj is complete, but my data plane doesn’t have an index to find the adj. I get the index from ip-neighbor as follows. adj_index = fib_entry_get_adj(ipn->ipn_fib_entry_index); I have written code to lookup ip-neighbor for first packet

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

2021-04-19 Thread hemant via lists.fd.io
, 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 interestingly the command builds a release binary and

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

2021-04-19 Thread hemant via lists.fd.io
, 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 <http://lists.fd.io> mailto:hemant=mnkcg@lists.fd.io> > wrote: Hi folks, I know how to use gdb with vpp when a vpp shell is logge

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

2021-04-19 Thread hemant via lists.fd.io
make test? 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 <http://lists.fd.io> mailto:hemant=mnkcg@lists.fd.io> > wrote: Hi folks, I know how to use gdb wit

[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 hemant via lists.fd.io
P-fsn4sjum/vpp_stderr.txt:UPF6 size 14 0002006068083D001100 vpp-unittest-TestIP6GTPTOGTP-fsn4sjum/vpp_stderr.txt:UPF6 IP = 2002::2, mac = 00:25:90:eb:e8:ed, sw_index = 2, eg_int mac 02:fe:09:b8:84:53 Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Monday,

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 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] dst mac-address look up?

2021-04-18 Thread hemant via lists.fd.io
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 the plugin) after which the packets are egressed using interface-output node. The adjacency is not complete when the packet is ready to be shipped

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

2021-04-17 Thread hemant via lists.fd.io
From: Neale Ranns Sent: Saturday, April 17, 2021 8:57 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: Friday, 16 April 2021 at 21:07 To: Neale Ranns mailto:ne...@

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

2021-04-17 Thread hemant via lists.fd.io
From: vpp-dev@lists.fd.io On Behalf Of Neale Ranns Sent: Saturday, April 17, 2021 8:57 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: Friday, 16 April 2021

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

2021-04-16 Thread hemant via lists.fd.io
le From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > on behalf of hemant via lists.fd.io mailto:hemant=mnkcg@lists.fd.io> > Date: Friday, 16 April 2021 at 19:18 To: hem...@mnkcg.com <mailto:hem...@mnkcg.com> mailto:hem...@mnkcg.com> >

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

2021-04-16 Thread hemant via lists.fd.io
io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Thursday, April 15, 2021 4:33 PM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] dst mac-address look up? I read this link: https://fdio-vpp.readthed

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

2021-04-16 Thread hemant via lists.fd.io
e get the next-hop mac-address if I have the next-hop IP address and link-type. Unless, I missed something, should we consider the code changes below? https://gerrit.fd.io/r/c/vpp/+/32014 Thanks, Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Thu

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

2021-04-15 Thread hemant via lists.fd.io
00:00:00, ip6 = 2002::2 , if_index = 2 What am I doing wrong? Thanks, Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Thursday, April 15, 2021 4:33 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] dst mac-address look up? I read this link: https://fdio-v

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

2021-04-15 Thread hemant via lists.fd.io
I read this link: https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/fib20/ar pentries.html At the end of the page, I see text that says "key for which is {interface, next-hop, link-type}." I have the data for the above key, but what API do I use to find destination mac-add

Re: [vpp-dev] vpp_stats.py 03/18 changes cause issue

2021-04-15 Thread hemant via lists.fd.io
on behalf of hemant via lists.fd.io mailto:hemant=mnkcg@lists.fd.io> > Sent: Thursday, April 15, 2021 6:04 AM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> mailto:vpp-dev@lists.fd.io> > Subject: [vpp-dev] vpp_stats.py 03/18 changes cause issue Ole, My plugin&#x

[vpp-dev] vpp_stats.py 03/18 changes cause issue

2021-04-14 Thread hemant via lists.fd.io
Ole, My plugin's python test (uses Python3) ran fine until I used a latest gerrit vpp repo today. I get the following error: super(TestUPF6, self).tearDown() File "/home/hemant/vpp/test/framework.py", line 798, in tearDown self.logger.info(self.statistics.set_errors_str()) Fil

Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?

2021-04-13 Thread hemant via lists.fd.io
22819 ? Best ben > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of hemant > via lists.fd.io > Sent: lundi 12 avril 2021 19:58 > To: hem...@mnkcg.com; vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] ip probe or ip probe-neighbor not in my build? > > Dave Ba

Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?

2021-04-12 Thread hemant via lists.fd.io
On Behalf Of hemant via lists.fd.io Sent: Sunday, April 11, 2021 11:05 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] ip probe or ip probe-neighbor not in my build? I am using a fairly recent VPP repo in my private built. I cannot find "ip probe" or "ip probe-neighbor" f

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-12 Thread hemant via lists.fd.io
If VPP doesn’t have an elegant way, note, a networking forwarding asic (e.g., switching asic) usually maintains two copies of headers of a packet. One copy has all the original headers and the other copy is modified in the data path. The asic should know what happened to the copy and provide t

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-12 Thread hemant via lists.fd.io
I see vlib_buffer_reset(), but haven’t used it yet nor looked at any code that uses it. https://docs.fd.io/vpp/17.07/d0/d83/vlib_2buffer_8h.html#a2db4de69d8fc1ff619d0ad7a45ac08fe Using vlib_buffer_advance() when the packet node-traversal is known is ok. I know what arc is my node using

[vpp-dev] ip probe or ip probe-neighbor not in my build?

2021-04-11 Thread hemant via lists.fd.io
I am using a fairly recent VPP repo in my private built. I cannot find "ip probe" or "ip probe-neighbor" for CLI in my VPP shell. I also fail ping to a network interface which is odd. vpp# sh interface address TenGigabitEthernet3/0/0 (up): L3 10.10.1.1/24 TenGigabitEthernet3/0/1 (up):

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-11 Thread hemant via lists.fd.io
Before any clone, play with the buffer using vlib_buffer_advance() with a negative advance. Try first with negative 20 because 20 is size of an IP header with no options. You will see the output packet in tcpdump change. Then, see what is an appropriate advance for final code. Hemant Fro

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-08 Thread hemant via lists.fd.io
David, If anything goes wrong trying Damjan’s version, you can also look at example code for cloning packets. https://github.com/FDio/vpp/blob/e2c9f234e1a3a657595d61996e376cf799f0a54b/src/vlib/punt_node.c#L71 Hemant From: vpp-dev@lists.fd.io On Behalf Of David Gohberg Sent: Thursd

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-08 Thread hemant via lists.fd.io
David, Got it, thanks. Hemant From: vpp-dev@lists.fd.io On Behalf Of David Gohberg Sent: Thursday, April 08, 2021 12:02 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces Damjan, I'll test your version later today and re

Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces

2021-04-08 Thread hemant via lists.fd.io
David, Any reason you decided to skip using VPP SPAN for packet mirroring? https://docs.fd.io/vpp/17.01.1/md_vnet_vnet_span_span.html Hemant From: vpp-dev@lists.fd.io On Behalf Of David Gohberg Sent: Thursday, April 08, 2021 9:06 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] vl

Re: [vpp-dev] VPP: A Terabit Secure Network Data-plane

2021-04-07 Thread hemant via lists.fd.io
I hope the Cisco router team using the CiscoONE asic is paying attention to this VPP success. The Cisco ASR1k router using CPP supports crypto at 100G with latest CPP asic. However, how does one get 10 Tbps crypto for the CiscoONE router? The only option is I see is using VPP IPSec with 10-15 se

Re: [vpp-dev] VPP: A Terabit Secure Network Data-plane

2021-04-07 Thread hemant via lists.fd.io
these are older Arms. No N1/Ampere in LFN FD.io labs yet … been asking for a while. Cheers, Maciek > On 7 Apr 2021, at 21:43, hemant via lists.fd.io > wrote: > > Thanks for sharing. > > Did you test on ARM to see what the performance is? > > Hemant > > ---

Re: [vpp-dev] VPP: A Terabit Secure Network Data-plane

2021-04-07 Thread hemant via lists.fd.io
Thanks for sharing. Did you test on ARM to see what the performance is? Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Maciek Konstantynowicz (mkonstan) via lists.fd.io Sent: Wednesday, April 07, 2021 10:02 AM To: csit-dev ; vpp-dev Subject: [vpp-dev] VPP: A Terabit

Re: [vpp-dev] update checksum for ipv6?

2021-04-06 Thread hemant via lists.fd.io
could use an update checksum. If IPv4 VPP also does not support checksum update for layer-4 , we should add it. Thanks, Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Tuesday, April 06, 2021 9:47 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] update checksu

[vpp-dev] update checksum for ipv6?

2021-04-06 Thread hemant via lists.fd.io
VPP IPv4 supports update checksum but IPv6 does not. Why is that? IPv6 only had a compute and verify checksum. Hemant smime.p7s Description: S/MIME cryptographic signature -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19114): https://list

Re: [vpp-dev] keeping tests outside of src/

2021-03-30 Thread hemant via lists.fd.io
Gotcha, about the Scapy gpl license. I did see the Scapy license issue in Damjan’s email as well, but sorry, I forgot about it. Then, use of pcap is fine. Most use of software such as Google’s protobuf, gRPC, Thrift, P4 compiler (p4c) etc. now use Python 3. So, a user is expected to be u

Re: [vpp-dev] keeping tests outside of src/

2021-03-30 Thread hemant via lists.fd.io
Doesn’t take much to find a Python example that uses vapi. See https://github.com/FDio/vpp/blob/master/src/plugins/dns/test/test_dns.py What is wrong with using Scapy to specify packets that pcap or libpnet is being discussed? There is also lua and Snabb: https://github.com/snabbco/snab

Re: [vpp-dev] keeping tests outside of src/

2021-03-29 Thread hemant via lists.fd.io
Hmm, most folks have moved from Python to Golang, not Rust. Rust is better suited to replace C for data plane programming. Hemant From: Damjan Marion Sent: Monday, March 29, 2021 4:27 PM To: Paul Vinciguerra Cc: hem...@mnkcg.com; Dave Wallace ; vpp-dev Subject: Re: [vpp-dev] keeping

Re: [vpp-dev] keeping tests outside of src/

2021-03-26 Thread hemant via lists.fd.io
Damjan, Thanks for clarifying - I agree with you on vnet tests. Hemant -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Damjan Marion via lists.fd.io Sent: Friday, March 26, 2021 12:38 PM To: Dave Wallace Cc: vpp-dev Subject: Re: [vpp-dev] keeping tests outside of src/ >

Re: [vpp-dev] keeping tests outside of src/

2021-03-25 Thread hemant via lists.fd.io
+1 to DaveW’s comments. Hemant From: vpp-dev@lists.fd.io On Behalf Of Dave Wallace Sent: Thursday, March 25, 2021 4:15 PM To: dmar...@me.com; vpp-dev Subject: Re: [vpp-dev] keeping tests outside of src/ Hi Damjan, This initiative originated with the wider adoption of plugin develo

Re: [vpp-dev] vpp crash in counter

2021-03-24 Thread hemant via lists.fd.io
I fixed my plugin counter code and the VPP generic counter code's crash below is fixed. Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, March 24, 2021 9:49 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] vpp crash in counter I did download l

[vpp-dev] vpp crash in counter

2021-03-24 Thread hemant via lists.fd.io
I did download latest vpp from gerrit today to check if the crash is reproduced and it is. I have used a debugged image to debug the issue. This crash happens during testing of my plugin which is running IPv6 and the plugin uses simple counters. See backtrace() below. DBGvpp# Thread 1 "v

Re: [vpp-dev] virtual interfaces (virtio device) not accesible in the VPP 21.01 release running on VM

2021-03-19 Thread hemant via lists.fd.io
Ashish, Please wait for anyone else to reply. I don’t track such changes in VPP. Or file a JIRA issue. https://jira.fd.io/projects/VPP/issues/VPP-1813?filter=allopenissues Thanks, Hemant From: vpp-dev@lists.fd.io On Behalf Of ashish.sax...@hsc.com Sent: Friday, March 19, 2021

Re: [vpp-dev] VPP / Quic perfomances

2021-03-18 Thread hemant via lists.fd.io
Mathias, Working with IPv6 always incurs a memcpy. I see quic VPP plugin using clib_memcpy. Please replace any clib_memcpy with clib_memcpy_fast() and re test quic and let us know what performance gain you see. Hemant From: vpp-dev@lists.fd.io On Behalf Of Mathias Raoul -X (mraoul

Re: [vpp-dev] virtual interfaces (virtio device) not accesible in the VPP 21.01 release running on VM

2021-03-18 Thread hemant via lists.fd.io
Ashish, See this link which includes use of dpdk-unbind to restore a device: https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html Search for “restor” on the page. Hemant From: vpp-dev@lists.fd.io On Behalf Of ashish.sax...@hsc.com Sent: Thursday, March 18, 2021 8:43 AM To:

Re: [vpp-dev] Is there a convenient way to name generated files when making VPP, such as rpm

2021-03-17 Thread hemant via lists.fd.io
Hi Tao, Sorry, I am not familiar with details of VPP build like you have asked of. Please wait for anyone else to reply. Regards, Hemant From: Tao Wang Sent: Wednesday, March 17, 2021 10:02 PM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Cc: zhiyong.y...@intel.com; zhongbao@intel

Re: [vpp-dev] per subscriber counter conundrum?

2021-03-17 Thread hemant via lists.fd.io
Sorry, I figured it out. Each of the four packets incurs a table lookup and I can add the counter per subscriber on table hit/miss. Hemant From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, March 17, 2021 6:28 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] per

[vpp-dev] per subscriber counter conundrum?

2021-03-17 Thread hemant via lists.fd.io
My VPP plugin has a subscribers table. Say, the number of subscriber in the table are 100k. I know when the table lookup incurs a hit and I know what subscriber it is and have uint32_t index to identify the subscriber. In the plugin's node_inline function, the table is looked up and packets are f

Re: [vpp-dev] virtual interfaces (virtio device) not accesible in the VPP 21.01 release running on VM

2021-03-17 Thread hemant via lists.fd.io
Before you start vpp, please run the following commands and show in an example below. Any interfaces you want to use in VPP must be disabled via ifconfig. sudo modprobe vfio-pci sudo ifconfig ens6f0 down sudo ifconfig ens6f1 down Hemant From: vpp-dev@lists.fd.io On Behalf Of ashish.s

Re: [vpp-dev] Is there a convenient way to name generated files when making VPP, such as rpm

2021-03-16 Thread hemant via lists.fd.io
Github is just a mirror which may be up to date with latest VPP software and also github is not the correct repo to work with VPP software. Please use the command below to get latest VPP software. git clone https://gerrit.fd.io/r/vpp In vpp root directory, type "sudo make install-deps". T

Re: [vpp-dev] OSPF3 packets in router and netlink plugins

2021-03-15 Thread hemant via lists.fd.io
Pim, In the log I see IPv6 link-local multicast traffic. Why is end to end multicast needed for this setup? Hemant From: vpp-dev@lists.fd.io On Behalf Of Pim van Pelt Sent: Monday, March 15, 2021 5:01 PM To: Mohsen Meamarian Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] OSPF3 packets

[vpp-dev] tracing for VPP

2021-03-15 Thread hemant via lists.fd.io
As I already said, consider using INT if VPP is still interested in tracing. Maybe use SPAN in VPP to support INT. Regarding eBPF, Netronome is using it in a product: https://www.netronome.com/products/agilio-software/agilio-ebpf-software/ Hemant smime.p7s Description: S/MIME crypt

Re: [vpp-dev] Lunching eBPF on VPP

2021-03-15 Thread hemant via lists.fd.io
Jim, Sure we can get back to VPP. Did you know that the compiler is generating VPP plugin C code (includes CLI and API)? Then, I compile the generated plugin in VPP and test. So, several VPP optimizations are used. Let’s talk performance. I run Cisco FIB lookup and mac rewrite in VPP

Re: [vpp-dev] Lunching eBPF on VPP

2021-03-15 Thread hemant via lists.fd.io
From: Jim Thompson Sent: Monday, March 15, 2021 3:55 PM To: hem...@mnkcg.com Cc: chekano...@gmail.com; vpp-dev Subject: Re: [vpp-dev] Lunching eBPF on VPP and a different project to run P4 in VPP: https://gerrit.fd.io/r/admin/repos/p4vpp neither resulted in much interest, and with good

Re: [vpp-dev] Lunching eBPF on VPP

2021-03-15 Thread hemant via lists.fd.io
rc/plugins/af_xdp and you can use a custom eBPF program against the underlying kernel interface. This may be enough for your needs, or it may not. On Mon, Mar 15, 2021 at 12:29 PM hemant via lists.fd.io <http://lists.fd.io> mailto:mnkcg@lists.fd.io> > wrote: Note, if eBPF ru

  1   2   >