Re: [vpp-dev] VPP LCP Route Not Reflecting After Interface State Change

2023-03-26 Thread Pim van Pelt via lists.fd.io
Hoi, Does the same behavior happen with linux_cp_plugin and linux_nl_plugin enabled instead? I saw a change in linux_cp that will walk the fib and remove routes associated with down interfaces; and I think this is because FRR does not remove them while Bird does. Can you try with

Re: [vpp-dev] failure while building VPP v23.02 in centos 7 VM

2023-03-10 Thread Pim van Pelt via lists.fd.io
Hoi, Preferred/supported build platform is Ubuntu LTS. It'll build well on Ubuntu Focal and Jammy. I additionally build and run on Debian Bullseye, which works well. groet, Pim On Fri, Mar 10, 2023 at 7:41 AM SANDEEP KUMAR wrote: > Thanks for the reply > Can you let me know which OS type and

Re: [vpp-dev] How to fetch statistic related data from vpp.

2023-03-02 Thread Pim van Pelt via lists.fd.io
Hoi, Can you be more specific on 'statistic data extraction' What numbers/data are you looking for? Take a look at the 'stats segment' which you might address read-only using /run/vpp/stats.sock or mount as a FUSE filesystem with https://s3-docs.fd.io/vpp/22.06/developer/extras/vpp_stats_fs.html

Re: [vpp-dev] lcpng with dhcp client on Linux

2023-03-01 Thread Pim van Pelt via lists.fd.io
Domain-Name (15), length 15: "local.tuxli.ch." > Domain-Name-Server (6), length 4: 192.168.1.1 > > I'm not sure how to do a "tcpdump" in VPP. On the TAP interface I can't > see a response. > > On 01.03.23 23:20, Pim van Pelt via lists.fd.io wrote: > >

Re: [vpp-dev] lcpng with dhcp client on Linux

2023-03-01 Thread Pim van Pelt via lists.fd.io
Hoi Baurine, Do you happen to have the ability to tcpdump on the DHCP server? I am confident that linux-cp (and the lcpng) will forward this traffic out because it's a broadcast packet (and all traffic will be handled), but I am not confident that the packet is (a) arriving at the DHCP server and

Re: [vpp-dev] Forwarding Specific Packet with LCP Plugin

2023-02-09 Thread Pim van Pelt via lists.fd.io
Hoi, Linux CP forwards all (unicast, multicast, ARP) through the TAP tunnel to the Linux kernel. It's not possible to add a classifier that selectively forwards some but not all traffic. Matthew mentioned in a thread about NAT (which kind of wants to do the same thing, perform NAT on some of the

Re: [vpp-dev] VPP Linux-CP/Linux-NL : MPLS?

2023-01-24 Thread Pim van Pelt via lists.fd.io
Hoi, MPLS is not supported in Linux CP. It is a regularly requested feature, but not quite as straight forward. Contributions welcome! groet, Pim On Tue, Jan 24, 2023 at 5:16 PM wrote: > Hello, > > I'm trying to populate MPLS FIB via Linux-CP plugin. > MPLS records are created via FRR and

Re: [vpp-dev] VPP LCP: IS-IS does not work

2023-01-23 Thread Pim van Pelt via lists.fd.io
Hoi, I would suggest not matching (only) MAC but (foremost) the ethertype, and then punting those packets into the TAP, take a look at VLIB_REGISTER_NODE (lip_punt_node) in src/plugins/linux-cp/lcp_node.c, contributions are welcome. groet, Pim On Mon, Jan 23, 2023 at 6:06 PM wrote: > Hoi Pim,

Re: [vpp-dev] VPP LCP: IS-IS does not work

2023-01-23 Thread Pim van Pelt via lists.fd.io
Hoi, Linux CP supports ARP, IPv4 and IPv6. ISIS uses its its own ethertype, as do other protocols (like LLDP for example). Those will not be punted into the TAP by the plugin (and it's difficult to uniquely identify the ethernet frames that should be punted as compared to being handled entirely

[vpp-dev] CLI acl replace + delete

2023-01-15 Thread Pim van Pelt via lists.fd.io
Hoi folks, I noticed that the acl-plugin will allow to replace an existing ACL using the API, but not while using the CLI. As well I see an acl_del API call, but no equivalent CLI. I've added them in https://gerrit.fd.io/r/c/vpp/+/37924 DBGvpp# set acl-plugin acl permit ACL index:0 DBGvpp# set

Re: [vpp-dev] span and subint or l2

2023-01-14 Thread Pim van Pelt via lists.fd.io
l2-hdr-offset 4 l3-hdr-offset 18 > > PKT MBUF: port 3, nb_segs 1, pkt_len 92 > > buf_len 2176, data_len 92, ol_flags 0x0, data_off 82, phys_addr > 0x2f59b680 > > packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0 > > rss 0x0 fdir.hi 0x0 fdir.lo 0x0

Re: [vpp-dev] span and subint or l2

2023-01-14 Thread Pim van Pelt via lists.fd.io
:00 UDP: 192.168.11.0 -> 192.168.11.3 tos 0x00, ttl 253, length 78, checksum 0x264b dscp CS0 ecn NON_ECN fragment id 0x UDP: 21408 -> 4789 length 58, checksum 0x On Sat, Jan 14, 2023 at 8:58 PM Pim van Pelt via lists.fd.io wrote: > Hoi folks, > > I was diag

[vpp-dev] span and subint or l2

2023-01-14 Thread Pim van Pelt via lists.fd.io
Hoi folks, I was diagnosing an issue today and needed to see some traffic that was traversing an l2xc between a sub-int and a vxlan_tunnel. Take the following simple config: create vxlan tunnel src 194.1.163.5 dst 194.1.163.1 instance 11 vni 10502 decap-next l2 create sub GigabitEthernet4/0/0

Re: [vpp-dev] Understanding VRFs and Linux CP

2023-01-11 Thread Pim van Pelt via lists.fd.io
Hoi Brian, I think that Linux CP does not consume the netlink message that assigns the interface to a new VRF (table)- doing it the other way around will likely work better. It would be pretty slick if "sudo ip link set dev ge0 master vrf-blue" could pivot the VPP-side interface into the correct

Re: [vpp-dev] Error message on starting vpp

2023-01-11 Thread Pim van Pelt via lists.fd.io
Hoi, Nathan's fix is still pending and starting VPP at HEAD still emits the warning: pim@hippo:~/src/vpp$ make run WARNING: STARTUP_CONF not defined or file doesn't exist. Running with minimal startup config: unix { interactive cli-listen /run/vpp/cli.sock gid 1000 } dpdk { no-pci } \n

[vpp-dev] linux-cp endianness issue

2023-01-11 Thread Pim van Pelt via lists.fd.io
Hoi folks, I noticed that linux-cp plugin is not quite right with endianness: Example code: lcp_add = vpp.api.lcp_itf_pair_add_del_v2(is_add=True, sw_if_index=17, host_if_type=VppEnum.vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP, host_if_name="loop0", netns="dataplane")

Re: [vpp-dev] Linux-cp Plugin Bird Routes Not Showing Up in VPP

2023-01-08 Thread Pim van Pelt via lists.fd.io
+Matthew Smith and +Jon Loeliger can you let me know what you think? Does Netgate value the 'lcp default netns' or ability to create LIPs in a namespace other than 'dataplane'? As I described, I think the ability to change these in the API, or set them in 'lcp create' yields erratic behavior.

[vpp-dev] Possible VPP deadlock

2023-01-08 Thread Pim van Pelt via lists.fd.io
Hoi, I've had a few instances of a recent VPP hanging - API and CLI go unresponsive, forwarding stops (at least, I think), but the worker threads are still consuming CPU. Attaching GDB, I see the main thread is doing the following: (gdb) bt #0 0x7f5f6f8f271b in sched_yield () at

Re: [vpp-dev] Linux-cp Plugin Bird Routes Not Showing Up in VPP

2022-12-22 Thread Pim van Pelt via lists.fd.io
Hoi, On Thu, Dec 22, 2022 at 10:16 PM Christopher Adigun wrote: > Interface is still down which I need for my use-case because that is where > the BGP communication is taking place. > > I tried your git repo and built the container image, now both are working > fine. > Can you clarify which git

Re: [vpp-dev] Linux-cp Plugin Bird Routes Not Showing Up in VPP

2022-12-22 Thread Pim van Pelt via lists.fd.io
Hoi, On Thu, Dec 22, 2022 at 4:08 PM Matthew Smith via lists.fd.io wrote: > > On Thu, Dec 22, 2022 at 7:09 AM Petr Boltík wrote: > >> >> - To make "plugin linux_nl_plugin.so" working, you need to run VPP inside >> netns dataplane (same as bird). This can be done by editing VPP systemd >>

Re: [vpp-dev] Linux-cp Plugin Bird Routes Not Showing Up in VPP

2022-12-22 Thread Pim van Pelt via lists.fd.io
Hoi, Is bird running in the 'dataplane' network namespace ? groet, Pim On Thu, Dec 22, 2022 at 12:52 AM Christopher Adigun wrote: > Hi, > > I am currently trying to use linx-cp plugins to sync routes learned via > BGP, bird is seeing the BGP route but I can't see the routes in VPP. > >

Re: [vpp-dev] Running multiple VPP processes causing VAPI API failures

2022-12-14 Thread Pim van Pelt via lists.fd.io
Hoi, Also worth noting, several sockets are created in /run/vpp/* notably the API socket /run/vpp/api.sock - the second invocation of "vpp" may have overwritten the socket with a new one, rendering the existing first invocation of "vpp" unusable. As Klement points out, you can run multiple

Re: [vpp-dev] Python VPP_API_DIR

2022-12-11 Thread Pim van Pelt via lists.fd.io
Of course, the link is https://gerrit.fd.io/r/c/vpp/+/37791 groet, Pim On Mon, Dec 12, 2022 at 12:41 AM Pim van Pelt via lists.fd.io wrote: > Hoi, > > I am starting to work on a few APIs and noticed that the vpp_papi module's > method find_api_dir promises that it will include

[vpp-dev] Python VPP_API_DIR

2022-12-11 Thread Pim van Pelt via lists.fd.io
Hoi, I am starting to work on a few APIs and noticed that the vpp_papi module's method find_api_dir promises that it will include VPP_API_DIR first, if specified in the environment. It doesn't actually do that. I wrote a changelist that prepends VPP_API_DIR if it exists. This is backwards

Re: [vpp-dev] Wireguard api - incorrect key lengh issue

2022-12-08 Thread Pim van Pelt via lists.fd.io
Hoi Petr, I think that the keys in the wireguard plugin are represented as bytestream, and your 44 character string probably refers to its base64 representation. Try sending the raw key (32 bytes). As an aside, I thought I'd ask ChatGPT this question, because I thought it was a fun puzzle. Pim:

Re: [vpp-dev] arm64 / clearfog + VPP

2022-12-05 Thread Pim van Pelt via lists.fd.io
+Josua Mayer Hello again Josua, you'll remember we discussed Vector Packet Processing (VPP) on the NXP/DPAA board, and we've still been discussing this in the community off and on. I did not manage to get VPP to run on the NXP LX2160A Clearfog, but Xiaodong references a document from NXP that

Re: [vpp-dev] VPP crashes on LX2160A platform

2022-12-01 Thread Pim van Pelt via lists.fd.io
Hoi, VPP does not run on that board, because the soc does not enumerate its DPDK enabled interfaces on the PCIe bus, but rather has a custom bus, which VPP is not integrated with. Incidentally, I did get VPP itself to run but without DPDK (or AVF or etc) interfaces; and its basic functionality

Re: [vpp-dev] Crash on using a linux-cp GRE tunnel

2022-11-25 Thread Pim van Pelt via lists.fd.io
Hoi Konrad, Looking at your configs, gre0 will have been created as an L3 interface. If you'd like it to be an L2 interface, create it with 'teb' (transparent ethernet bridge). The crash I think we ought to be able to avoid in linux-cp, but it's I think because you're using a TAP (L2) rather than

Re: [vpp-dev] VPP memif raw data udp packet streaming between VPPs

2022-11-18 Thread Pim van Pelt via lists.fd.io
Hoi Mustafa, I don't know much about memif, but seeing as it creates an L2 device, one avenue is adding the memif into a bridge-domain together with a transport tunnel, for example VXLAN: vpp# create interface memif id 0 master vpp# create bridge-domain 10 vpp# create vxlan tunnel src

[vpp-dev] VPP at ~150Mpps on a Dell R720

2022-11-17 Thread Pim van Pelt via lists.fd.io
Hoi folks, >From time to time I'm invited to share how the VPP development community is progressing. This week I joined the DENOG folks in Hamburg, Germany, to show how a combination of VPP, Linux Control Plane, and higher level automation like vppcfg come together to provide a reasonably

Re: [vpp-dev] qwery regarding lcp

2022-11-10 Thread Pim van Pelt via lists.fd.io
Hoi, Your description isn't very clear to me, unfortunately. But I think what you're trying to do is connect an existing vlan100 interface outside of VPP, into an LCP pair you created in VPP. If so, perhaps a bridge-domain can help: In Linux: brctl addbr br0 brctl addif br0 Vlan100 In VPP: