In case of point-to-point, you can set the checksum offload flag VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD when you create demo interface.
And need to calculate ip4_hdr_checksum in your tx node (ethernet_demo_device_class) if packet comes with VNET_BUFFER_F_OFFLOAD_IP_CKSUM set. I hope that it will resolve your problem. From: <vpp-dev@lists.fd.io> on behalf of "jiangxiaom...@outlook.com" <jiangxiaom...@outlook.com> Date: Thursday, January 16, 2020 at 4:11 AM To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] vnet_gso_header_offset_parser error if vlib_buffer_t without ethernet_header_t I use demo.c create a interface demo0 with ip 10.0.0.1/29, and then use vcl+iperf3 connect server ip 10.0.0.11, and then the ASSERT crash happend. VPP start command: vpp -c as-startup-de192.conf iperf3 start command: sudo env \ LD_LIBRARY_PATH=/home/dev/code/net-base/dist/script/../lib: \ VCL_CONFIG=vcl-as-e18f7.conf \ LD_PRELOAD=/home/dev/code/net-base/dist/script/../lib/libvcl_ldpreload.so \ iperf3 -4 -c 10.0.0.11 -p 1000 -t 30
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15202): https://lists.fd.io/g/vpp-dev/message/15202 Mute This Topic: https://lists.fd.io/mt/69709611/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-