Re: [vpp-dev] vlan sub interfaces

2017-09-28 Thread Neale Ranns (nranns)
With my release manager hat on … Do we consider support for VLAN tags on an AF packet interface a bug fix (to be back ported) or a new feature (available from 17.10 onwards)? /neale -Original Message- From: "prabh...@techtrueup.com" Date: Thursday, 28 September 2017 at 13:07 To: "Dave

Re: [vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Dave Wallace
Eddie, I recently submitted a patch which updated the CentOS Vagrant support in .../vpp/extras/Vagrantfile to CentOS 7.4 Please pull the latest VPP tree from master, install virtualbox, and run vagrant/virtualbox as follows: cd /extras/vagrant export VPP_VAGRANT_DISTRO=centos7 vagr

Re: [vpp-dev] Failed to use vcl_test_client

2017-09-28 Thread Florin Coras
Hi xyxue, Ow, but if you’re running with vms, there’s no need to use net namespaces. If your vms have e1000/vmxnet3 nics you can actually run vpp with dpdk. Just configure the ip addresses in the two vpps and test with ping, from within one of the vpps, that the topology is configured correctl

Re: [vpp-dev] Failed to build vpp with vppsb

2017-09-28 Thread Ni, Hongjun
Hey, I have created a patch to remove vlib_buffer_chain_validate() on July, https://gerrit.fd.io/r/#/c/7382/ Remove unused call vlib_buffer_chain_validate() But it is not merged yet. For router plugin in vppsb, it works well on VPP 17.01, but it lacks maintenance since then. -Hongjun From: vpp

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Saxena, Nitin
Hi steven, I am working on ThunderX2 which is different from ThunderX in many ways. Yes I did try pinging from both VMs but packets were not reaching other VM though I could see those packets (from both VM) in VPP trace hence I thought VPP is dropping those packets(show error output was the bas

Re: [vpp-dev] Failed to use vcl_test_client

2017-09-28 Thread 薛欣颖
Hi, topology: VPP1 and VPP2 on two virtual machines, Have you verified the VPP1 and VPP2 are connected (i.e. ping 1.1.1.2 from vpp1) ? ---ping 1.1.1.2 from vpp1 is ok The following configuration for cyberspace is on the same virtual machine: Linux: ip netns add vppns ip link add veth_vpp1 typ

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Steven Luong (sluong)
Nitin, If you are referring to these counters in show error as transmission errors, they are not really errors. Did you get a chance to try to send pings from the other direction and capture the trace to see if the other VM is working fine? I am able to ping VM -> VPP -> VM for both IPv4 and IP

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Saxena, Nitin
Hi steven, I realised that ARP request not being resolved hence I was capturing packet in remote VM using tcpdump. I didnt see any packet on tcpdump. I feel packets are not reaching remote VM. I am getting l2 forwarding errors and virtualinterface0/0/1-tx errors Regards, Nitin On 28-Sep-2017, a

Re: [vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Dave Barach (dbarach)
Dear Eddie, As discussed in private email: I think that the version of CentOS on your build system is too old. If memory serves, CentOS 7.3 is required. Google tells me that the earliest Linux kernel with memfd support is 3.17; it looks like your system is running a 3.10 derivative: "/usr/src/

[vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Eddie Ruan (eruan)
Hi, I try to make my hand dirty via pulling and compiling VPP codes. I am following wiki. https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Building_the_first_time I have tried different options, but the compile always stucks at following error, not be able t

Re: [vpp-dev] vlan sub interfaces

2017-09-28 Thread prabhjot
yes i verified it on stable/1707 itself. Regards, Prabhjot Quoting "Dave Barach (dbarach)" : See https://gerrit.fd.io/r/#/c/8590. The patch cherry-picked easily to stable/1707. Assuming that the cherry-pick patch validates - and that it solves your problem - it will be up to Neale [as the

Re: [vpp-dev] vlan sub interfaces

2017-09-28 Thread Dave Barach (dbarach)
See https://gerrit.fd.io/r/#/c/8590. The patch cherry-picked easily to stable/1707. Assuming that the cherry-pick patch validates - and that it solves your problem - it will be up to Neale [as the 17.07 release manager] whether to merge it or not. Please let us know whether the cherry-pick pat

Re: [vpp-dev] vlan sub interfaces

2017-09-28 Thread Prabhjot Singh Sethi
yes it works perfectly fine with this patch.i hope this will be pushed to 17.07 branch as well. Thanks for the help :) Regards, Prabhjot - Original Message - From: "Akshaya Nadahalli" To: "Prabhjot Singh Sethi" , , "John Lo" Cc: Sent: Thu, 28 Sep 2017 19:18:50 +0530 Subject: Re: [vp

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Steven Luong (sluong)
Nitin, Ping fails because the remote VM did not respond the ARP requests. As far as I can tell, The ARP request packets were correctly sent from VirtualEthernet0/0/0 (11.0.0.1) to VirtualEthernet0/0/1 (11.0.0.2). But we are not getting any reply back based on the output of show interface. Did y

[vpp-dev] Adding IP Addr to Multiple IFs

2017-09-28 Thread Jon Loeliger
Packet Handlers, I have a question regarding adding IP address on multiple interfaces. I know. Seems like it should be obvious and easy. But I am not really a Domain Expert here. So questions about both expected behavior and a possible bug. We'll see. Let's start with this sequence of vppctl

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Saxena, Nitin
Hi Steven, Please find attached tarball having valid output for show vhost. This time I did ping 11.0.0.2 -c 10 and captured 10 packets in trace. Thanks, Nitin From: vpp-dev-boun...@lists.fd.io on behalf of Saxena, Nitin Sent: Thursday, September 28, 2017

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Saxena, Nitin
Hi steven, I did IPv4 ping. Some ICMPv6 router solicit messages were captured but those were not part of IPv4 ping which I did. I will send show vhost output soon. Regards, Nitin On 28-Sep-2017, at 19:30, Steven Luong (sluong) mailto:slu...@cisco.com>> wrote: Sexena, Before you ping, type “

Re: [vpp-dev] Failed to use vcl_test_client

2017-09-28 Thread Florin Coras
Hi xyxue, I think the issue may be the way you build your topology. You may actually want to use 2 veth pairs, one per vpp instance. So something along the lines of: Linux: ip netns add vppns ip link add veth_vpp1 type veth peer name vpp1 ip link set dev vpp1 up ip link set dev veth_vpp1 up net

[vpp-dev] VPP routing issues between virtual machines

2017-09-28 Thread Tomas Brännström
Hello I'm having a somewhat peculiar routing issue that I'm not sure how to move forward with. I'm also not sure if it's an issue with our environment or if there's something that needs to be done in VPP that I've missed. We have a test setup with three servers directly connected to each other in

Re: [vpp-dev] Failed to build vpp with vppsb

2017-09-28 Thread Paweł Staszewski
After removin this function calling:   //vlib_buffer_chain_validate (vm, vlib_get_buffer (vm, bi[0])); Sep 28 16:31:43 ubuntu vnet[7825]: received signal SIGSEGV, PC 0x7f9e4b5c0d4c, faulting address 0x7fa609f35738 Sep 28 16:31:43 ubuntu vpp[7825]: DPDK physical memory layout: Sep 28 16:31:43 u

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Steven Luong (sluong)
Sexena, Before you ping, type “show vhost” to make sure the interfaces have memory region. You typed “show vhost” prior to the interface is ready. So, it does not have useful information. Would you collect “show vhost” when the interface is ready? Also, you send ipv6 pings. Would you please al

Re: [vpp-dev] vlan sub interfaces

2017-09-28 Thread Akshaya Nadahalli
Hi Prabhjot, Can you pls try with below patch and see if it helps: https://gerrit.fd.io/r/#/c/8435/ Regards, Akshaya N On Thursday 28 September 2017 03:45 PM, Prabhjot Singh Sethi wrote: trying again with more appropriate subject Can some one please help if i am missing any thing over he

Re: [vpp-dev] Failed to build vpp with vppsb

2017-09-28 Thread Burt Silverman
Hi Pawel, It looks like that function vlib_buffer_chain_validate was removed from vlib/buffer.c prior to v17.01 and was never removed from the buffer_funcs.h header file. Damjan, can we just remove the call in the vppsb router code to vlib_buffer_chain_validate(), or is something else needed? Bu

Re: [vpp-dev] Failed to use vcl_test_client

2017-09-28 Thread 薛欣颖
Hi, I have added '#define __NR_memfd_create 319' to /usr/include/x86_64-linux-gnu/asm/unistd_64.h. The following error still occurred during the test: root@ubuntu:/home/vpp_communication/vpp/build-root/install-vpp-native/vpp/bin# ./vcl_test_client -U 1.1.1.2 22000 CLIENT: Connecting to server

Re: [vpp-dev] [v17.07.01]: vec_add2() causing crash on ARMv8

2017-09-28 Thread Dave Barach (dbarach)
Dear Nitin, First off: exactly which LDXR / STXR instruction variant pairs is generated? I begin to wonder if __sync_lock_test_and_set(...) might not be doing you any favors. Given that dq->interrupt_pending is a u32, I would have expected a 4-byte instruction with (at worst) a 4-byte alignment

Re: [vpp-dev] Stable branch for 17.10 pulled

2017-09-28 Thread Dave Barach (dbarach)
+1... Thanks… Dave From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Luke, Chris Sent: Wednesday, September 27, 2017 11:15 PM To: Florin Coras ; vpp-dev Subject: Re: [vpp-dev] Stable branch for 17.10 pulled Great work, Florin! Cheers, Chris. From: vpp-dev-bou

Re: [vpp-dev] 回复: 回复: 回复: 回复: How to get interface stats using C api?

2017-09-28 Thread Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
Well we have a test client which I already mentioned - vapi_c_test.c in test/ext directory. It has different test cases covering connection to VPP, byte swaps, sending and receiving messages, registering and waiting for events etc. It is using new, higher-level API bindings, which should simplify t

[vpp-dev] vlan sub interfaces

2017-09-28 Thread Prabhjot Singh Sethi
trying again with more appropriate subject Can some one please help if i am missing any thing over here ? As mentioned earlier, i have interface host-eth10 and sub interface host-eth10.10 (create sub host-eth10 10) host-eth10 is associated to bridge domain 2 and sub interface is associated to br

Re: [vpp-dev] Failed to build vpp with vppsb

2017-09-28 Thread Paweł Staszewski
Ok Compiled :) But trying some example vppctl create loopback interface vppctl set interface state loop0 up vppctl set interface state TenGigabitEthernet82/0/0 up vppctl set interface state TenGigabitEthernet82/0/1 up vppctl set interface ip address loop0 2.2.2.2/32 vppctl set interface ip ad

[vpp-dev] [v17.07.01]: vec_add2() causing crash on ARMv8

2017-09-28 Thread Saxena, Nitin
Hi All, I got a crash with vpp v17.07.01 on ARMv8 Soc @src/vnet/devices/virtio/vhost-user.c: Line no: 1852 if (clib_smp_swap (&dq->interrupt_pending, 0) || (node->state == VLIB_NODE_STATE_POLLING)){ } While debugging it turns out that value of (&dq->interrupt_pending) was not 8 byte alig

[vpp-dev] ?????? ?????? ?????? ?????? How to get interface stats using C api?

2017-09-28 Thread ????????
Sorry, I do not know how to write a client. There is no documents which i can referece. I just know the steps which a client should have. But I do not know which functions to use. I would appricate it if you can write a draf client. I am studying Yes, for study, I add some event apis int

Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working properly

2017-09-28 Thread Saxena, Nitin
Hi All, I am running vhost-user on aarch64 SoC using vpp v17.07.01. I am running 4.12.9 kernel (ubuntu-16.04) both on host and VM. I am able to launch VM's successfully but my ping between two VM's does not work. In show error output I can see L2 forwarding errors in VPP. Attached tarball con

Re: [vpp-dev] 回复: 回复: 回复: How to get interface stats using C api?

2017-09-28 Thread Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
Looking at your code it seems you're not waiting for the reply at all. I don't have experience with VAT and I don't think this is the recommended way to write a client. Nevertheless, looking at your code, I don't see any attempt to wait for a response. You are sending a message to VPP, but not wait