From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wiles, Keith" Subject: Re: About the data payload of rte_mbuf? Date: Thu, 6 Dec 2018 15:17:19 +0000 Message-ID: References: <20181205230914.2ea215f2@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: bai bakari <912873551@qq.com>, dev To: Stephen Hemminger Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6970B23D for ; Thu, 6 Dec 2018 16:17:21 +0100 (CET) In-Reply-To: <20181205230914.2ea215f2@xeon-e3> Content-Language: en-US Content-ID: <38FC946B99D9AA4B94DBEC887284EAC1@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On Dec 6, 2018, at 12:09 AM, Stephen Hemminger wrote: >=20 > On Thu, 6 Dec 2018 11:45:22 +0800 > "bai bakari" <912873551@qq.com> wrote: >=20 >> when i send packets using dpdk-pktgen, i found: >> ip_len =3D 46 >> ip_header_len =3D 20 >> but the tcp_header_len=3D(tcp_hdr->data_off << 2)=3D0,=20 >> and (payload - (uint8_t *)ipv4_hdr) =3D 340 > ip_len. >=20 >=20 > 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