Hi Xuekun,

I suspect you are using a Linux kernel >= 5.9. There was an ABI change between 
5.8 and 5.9, the issue is discussed here: 
https://lore.kernel.org/bpf/byapr11mb365382c5db1e5fcc53242609c1...@byapr11mb3653.namprd11.prod.outlook.com/
I'd recommend using a Linux kernel between 5.6 and 5.9 for now until those 
issues are resolved.

Best
ben

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Xuekun
> Sent: jeudi 13 mai 2021 15:17
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] AF_XDP usage help in VPP21.01
> 
> Hi, All
> 
> 
> 
> I used VPP21.01 and AF_XDP on a physical nic.
> 
> I followed the guide in
> https://docs.fd.io/vpp/21.01/d8/d44/af_xdp_doc.html
> <https://docs.fd.io/vpp/21.01/d8/d44/af_xdp_doc.html>  that
> 
> 1.    ip link set dev <iface> promisc on
> 2.    vppctl create int af_xdp host-if ...             // load the default
> one, which I think should forward all received packets from kernel to VPP
> 3.    vppctl set int mac address <iface> <mac>    // set to the NIC MAC.
> 4.    vppctl set int ip addr ...
> 
> 
> 
> However "vppctl ping" still failed with "l3 mac mismatch".
> 
> 
> 
> vpp# show errors
> 
>    Count                  Node                              Reason
> Severity
> 
>         20             ip4-glean                      ARP requests sent
> error
> 
>         20           enp9s0f0/0-tx                     sendto required
> error
> 
>         82           ethernet-input                    l3 mac mismatch
> error
> 
> From the remote ping target machine, tcpdump did show receiving the arp
> request and sending the arp reply with the correct dmac.
> 
> 
> 
> However in VPP, "trace add af_xdp-input 10", and  "show trace"
> 
> Packet 1
> 
> 
> 
> 00:14:16:539735: af_xdp-input
> 
>   af_xdp: enp9s0f0/0 (2) next-node ethernet-input
> 
> 00:14:16:539744: ethernet-input
> 
>   frame: flags 0x1, hw-if-index 2, sw-if-index 2
> 
>   0x0000: 00:00:00:00:00:00 -> 00:00:00:00:00:00
> 
> 00:14:16:539748: error-punt
> 
>   rx:enp9s0f0/0
> 
> 00:14:16:539750: punt
> 
>   ethernet-input: l3 mac mismatch
> 
> 
> 
> Does anyone have any ideas?
> 
> Many thanks.
> 
> 
> 
> Thx, Xuekun
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19388): https://lists.fd.io/g/vpp-dev/message/19388
Mute This Topic: https://lists.fd.io/mt/82798670/21656
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