On 7 Mar 2024, at 20:39, Ilya Maximets wrote:

> It's hard to debug situations where driver rejects packets for some
> reason.  Dumping out the mbuf should help with that.
>
> Sample output looks like this:
>
>   |netdev_dpdk(pmd-c03/id:8)|DBG|ovs-p1: First invalid packet:
>   dump mbuf at 0x1180bce140, iova=0x2cb7ce400, buf_len=2176
>     pkt_len=64, ol_flags=0x2, nb_segs=1, port=65535, ptype=0
>     segment at 0x1180bce140, data=0x1180bce580, len=90, off=384, refcnt=1
>     Dump data at [0x1180bce580], len=64
>   00000000: 33 33 00 00 00 16 AA 27 91 F9 4D 96 86 DD 60 00 | 33.....'..M...`.
>   00000010: 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 | ...$............
>   00000020: 00 00 00 00 00 00 FF 02 00 00 00 00 00 00 00 00 | ................
>   00000030: 00 00 00 00 00 16 3A 00 05 02 00 00 01 00 8F 00 | ......:.........
>
> Signed-off-by: Ilya Maximets <i.maxim...@ovn.org>

This debug addition looks good to me.

Acked-by: Eelco Chaudron <echau...@redhat.com>

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to