[dpdk-dev] About the data payload of rte_mbuf?

Wiles, Keith keith.wiles at intel.com
Thu Dec 6 16:17:19 CET 2018



> On Dec 6, 2018, at 12:09 AM, Stephen Hemminger <stephen at networkplumber.org> wrote:
> 
> On Thu, 6 Dec 2018 11:45:22 +0800
> "bai bakari" <912873551 at qq.com> wrote:
> 
>> when i send packets using dpdk-pktgen, i found:
>> ip_len = 46
>> ip_header_len = 20
>> but the tcp_header_len=(tcp_hdr->data_off << 2)=0, 
>> and (payload - (uint8_t *)ipv4_hdr) = 340 > ip_len.
> 
> 
> dpdk pktgen sends UDP not TCP.

Not sure I understand this statement Pktgen can send UDP or TCP, it depends on the configuration. Does your statement mean Pktgen has a bug or what ?

Regards,
Keith



More information about the dev mailing list