Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread 薛欣颖
I sorry to copy the eth2's packet,that is the eth1's packet in vpp1: 00:02:32:132870: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x2001 len 60 snaplen 60 mac 66 net 80 sec 0x591b9b2d nsec 0x70a3271 vlan 0 00:02:32:134189: ethernet-input IP4

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread Neale Ranns (nranns)
Hi Xyxue, This FIB entry is correct: 192.168.153.130/32 unicast-ip4-chain [@0]: dpo-load-balance: [index:10 buckets:1 uRPF:9 to:[900:34260] via:[188:8648]] [0] [@5]: ipv4 via 192.168.153.130 host-eth1: 000c293129ae000c298fad610800 it says the packets that match the prefix 192.168.153.130

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread Kinsella, Ray
Configuring the mac address on an af_packet device . So I am guess that when 'set interface mac' is called on the af_packet device, it isn't configuring the underlying device. :-) Ray K On 16/05/2017 15:27, Damjan Marion wrote: Are you sure that this trace belongs to your pings? Both MAC an

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread Damjan Marion
> On 16 May 2017, at 13:32, Dave Barach (dbarach) wrote: > > Copying vpp-dev [and Neale Ranns AKA Dr. Fib...] <> > > Thanks… Dave > > From: 薛欣颖 [mailto:xy...@fiberhome.com ] > Sent: Tuesday, May 16, 2017 2:16 AM > To: Dave Barach (dbarach) mailto:dbar...@cisco.co

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread Dave Barach (dbarach)
Copying vpp-dev [and Neale Ranns AKA Dr. Fib...] Thanks… Dave From: 薛欣颖 [mailto:xy...@fiberhome.com] Sent: Tuesday, May 16, 2017 2:16 AM To: Dave Barach (dbarach) Subject: Failed to ping between two VPP Hi Dave, When I use stable 17.04,there is something wrong when I ping vpp2 from vpp1,that

Re: [vpp-dev] VPP Nodes and Plugins

2017-05-16 Thread Damjan Marion (damarion)
> On 16 May 2017, at 10:55, Tomas Brännström > wrote: > > Hi > I'm struggling a bit to understand how VPP processes the node graph. If we > take the sample plugin for example, it registers itself to the "device-input" > arc. Then it is run after "af-packet-input" among others. But looking at

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread 薛欣颖
Hi Ray, The eth1 is real NIC,not a tap device. Here is the information about host-eth1: DBGvpp# show hardware NameIdx Link Hardware host-eth1 1 up host-eth1 Ethernet address 00:0c:29:31:29:ae Linux PACKET socket interface local0

Re: [vpp-dev] VPP Nodes and Plugins

2017-05-16 Thread Kinsella, Ray
Hi Tomas, > But how does af-packet-input decide which of these nodes to run? Is it simply in descending order so since sample is at the bottom, it will be run before ethernet-input etc? If the device produce's ptype & ethtype information, dpdk-input will use this to identify the next node fo

Re: [vpp-dev] Failed to ping between two VPP

2017-05-16 Thread Kinsella, Ray
Hi xyxue, Not sure that `set interface mac addr` will work with af_packet. Can you provide a little bit more information ... Are eth1 device's real NICs, or are they Tap devices connected to a bridge. In the case of a bridge, I presume its a Linux Kernel bridge? Ray K On 16/05/2017 09:16, 薛

[vpp-dev] VPP Nodes and Plugins

2017-05-16 Thread Tomas Brännström
Hi I'm struggling a bit to understand how VPP processes the node graph. If we take the sample plugin for example, it registers itself to the "device-input" arc. Then it is run after "af-packet-input" among others. But looking at the af-packet-input-node, it has the following "next" nodes in the gra

[vpp-dev] Failed to ping between two VPP

2017-05-16 Thread 薛欣颖
Hi guys, When I use stable 17.04,there is something wrong when I ping vpp2 from vpp1, I use" dpkg --purge vpp vpp-dbg vpp-dev vpp-dpdk-dev vpp-dpdk-dkms vpp-lib vpp-plugins vpp-python-api "to compile vpp. That is my configuration: vpp1: creat host-interface name eth1 set interface state host-e