Ok, from what I understand, what you see in the trace is when the packet is 
entering VPP through DPDK, it matches the route 'vppctl ip route add 
172.16.82.4/32 via 192.168.1.1 memif0/0' you configured in table 0 (default 
VRF), so VPP tries to forward it through 192.168.1.1, but this address is 
programmed only in VRF 1, so VRF 0 does not know it and ARP.
Then ARP reply comes back from memif0, but is is looked up in VRF 1 and is 
dropped (it is waited for in VRF 0).
I think you should change your route like this:
vppctl ip route add 172.16.82.4/32 via 192.168.1.1 memif0/0 next-hop-table 1
vppctl ip route add 172.16.82.4/32 table 1 via GigabitEthernet3/0/0 
next-hop-table 0

Best
ben

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of
> techi...@gmail.com
> Sent: jeudi 13 août 2020 10:09
> To: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] #vpp-memif Send packets out on physical interface
> controlled by vpp(DPDK) once they are received through memif
> 
> Hi ben,
> 
> Please find below trace (dpdk-input and memif-input).... in application I
> am just writing back buffers I received on memif..
> 
> 00:02:56:971957: dpdk-input
>   GigabitEthernet4/0/0 rx queue 0
>   buffer 0x98114: current data 0, length 74, buffer-pool 0, ref-count 1,
> totlen-nifb 0, trace handle 0x0
>                   ext-hdr-valid
>                   l4-cksum-computed l4-cksum-correct
>   PKT MBUF: port 1, nb_segs 1, pkt_len 74
>     buf_len 2176, data_len 74, ol_flags 0x180, data_off 128, phys_addr
> 0x56604580
>     packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
>     rss 0x0 fdir.hi 0x0 fdir.lo 0x0
>     Packet Offload Flags
>       PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
>       PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
>     Packet Types
>       RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
>       RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
>   IP4: a4:bb:6d:0f:bf:56 -> 00:0d:48:49:12:a2
>   ICMP: 172.16.16.17 -> 172.16.82.4
>     tos 0x00, ttl 128, length 60, checksum 0x0423 dscp CS0 ecn NON_ECN
>     fragment id 0x7c68
>   ICMP echo_request checksum 0x4baf
> 00:02:56:971980: ethernet-input
>   frame: flags 0x3, hw-if-index 2, sw-if-index 2
>   IP4: a4:bb:6d:0f:bf:56 -> 00:0d:48:49:12:a2
> 00:02:56:971994: ip4-input-no-checksum
>   ICMP: 172.16.16.17 -> 172.16.82.4
>     tos 0x00, ttl 128, length 60, checksum 0x0423 dscp CS0 ecn NON_ECN
>     fragment id 0x7c68
>   ICMP echo_request checksum 0x4baf
> 00:02:56:972001: ip4-lookup
>   fib 0 dpo-idx 3 flow hash: 0x00000000
>   ICMP: 172.16.16.17 -> 172.16.82.4
>     tos 0x00, ttl 128, length 60, checksum 0x0423 dscp CS0 ecn NON_ECN
>     fragment id 0x7c68
>   ICMP echo_request checksum 0x4baf
> 00:02:56:972007: ip4-arp
>     ICMP: 172.16.16.17 -> 172.16.82.4
>       tos 0x00, ttl 128, length 60, checksum 0x0423 dscp CS0 ecn NON_ECN
>       fragment id 0x7c68
>     ICMP echo_request checksum 0x4baf
> 00:02:56:972019: ip4-drop
>     ICMP: 172.16.16.17 -> 172.16.82.4
>       tos 0x00, ttl 128, length 60, checksum 0x0423 dscp CS0 ecn NON_ECN
>       fragment id 0x7c68
>     ICMP echo_request checksum 0x4baf
> 00:02:56:972083: error-drop
>   rx:GigabitEthernet4/0/0
> 00:02:56:972088: drop
>   ip4-arp: ARP requests sent
> 
> Packet 2
> 
> 00:02:56:972299: memif-input
>   memif: hw_if_index 3 next-index 4
>     slot: ring 0
> 00:02:56:972327: ethernet-input
>   frame: flags 0x1, hw-if-index 3, sw-if-index 3
>   ARP: 02:fe:87:ff:c6:2a -> ff:ff:ff:ff:ff:ff
> 00:02:56:972335: arp-input
>   request, type ethernet/IP4, address size 6/4
>   02:fe:87:ff:c6:2a/192.168.1.1 -> 00:00:00:00:00:00/192.168.1.1
> 00:02:56:972339: arp-reply
>   request, type ethernet/IP4, address size 6/4
>   02:fe:87:ff:c6:2a/192.168.1.1 -> 00:00:00:00:00:00/192.168.1.1
> 00:02:56:972350: error-drop
>   rx:memif0/0
> 00:02:56:972351: drop
>   null-node: blackholed packets
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17219): https://lists.fd.io/g/vpp-dev/message/17219
Mute This Topic: https://lists.fd.io/mt/76099289/21656
Mute #vpp-memif: https://lists.fd.io/g/fdio+vpp-dev/mutehashtag/vpp-memif
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to