From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2018 07:17:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,322,1539673200"; d="scan'208";a="257343642" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 06 Dec 2018 07:17:20 -0800 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.100]) by fmsmsx104.amr.corp.intel.com ([169.254.3.128]) with mapi id 14.03.0415.000; Thu, 6 Dec 2018 07:17:19 -0800 From: "Wiles, Keith" To: Stephen Hemminger CC: bai bakari <912873551@qq.com>, dev Thread-Topic: [dpdk-dev] About the data payload of rte_mbuf? Thread-Index: AQHUjRYxR04cplJtd0SyKfH+NEDjOKVx0SAAgACIXoA= Date: Thu, 6 Dec 2018 15:17:19 +0000 Message-ID: References: <20181205230914.2ea215f2@xeon-e3> In-Reply-To: <20181205230914.2ea215f2@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.78.80.90] Content-Type: text/plain; charset="us-ascii" Content-ID: <38FC946B99D9AA4B94DBEC887284EAC1@intel.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] About the data payload of rte_mbuf? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 15:17:21 -0000 > 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