From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by dpdk.org (Postfix) with ESMTP id 7E27F5F36 for ; Thu, 6 Dec 2018 18:22:30 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id y4so420930pgc.12 for ; Thu, 06 Dec 2018 09:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OTqkuZl/vyWAe4vxP0NNpT9vx7T7X1NWzoTWkZ4MGwA=; b=xWtp+LJNGHk8hOqd7Zl3ZghBM83gXyguirTFCrnAKzQOtpkNFtPd81mfNSlrYhBMYq NQGCeXDvkz6jFHto63lrZQOCMx+mSL9y2FmIOrS7NtiMOPkddTu96ID9Sir5mGeeGeNt tG/gJq72nHnIY/OylcTih5XkCdbeqOQao5544T6MhDSEuFeMazH3utZ8B11GtlHSqLoD tqdrVsNh363NJFbJVJLKvqRpYOLNF/PRGtNTI9fCv0keNcu2h+i/kgeFKVC1ajGcPY1n ceVm7J5uya371G24Fl/vjB/UW+lmxF4Lec5KqU54+h9yoZIIm6m8VOsfMiSFRz5hAMhX 6QfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OTqkuZl/vyWAe4vxP0NNpT9vx7T7X1NWzoTWkZ4MGwA=; b=uLJa4WzHIUKYAPXxzUnLcip7eyy5wAObBdw5o0uPJDGTWcrSeOD3GqhrMIlzCKmuPC /eTiHJjps0JuUqC5EL9UCh08XxCLUWLKpP7ao068XtbjpuAbCuHWGu1448WK7SESNy5Y pdoMzMUsjbOL3TAymHzIzvD8xNActCAUyUeh1pK+dMAUHwiSOhad6sd/sFgs+2t13jtQ cZLnhlJPapNfULnAnNW69LrRUe9wGWs5eYproRag6xMfilVDZXck2BSLHnWLwy69W2Z3 a5+t8174MFr6ThvCbgwobC/b1AQ2rwb1s9MMf9j7ythywOur2eDFjwWDmaAmm4QM30lS hUtA== X-Gm-Message-State: AA+aEWb5M2KfBZERSO1SAiXm6y+r3K0w8l4DoE7W8KjizVU13+xYdaLf n47I7OAiUwjF0TFVkQXppWdiYA== X-Google-Smtp-Source: AFSGD/V4Rf/Pf/Mra+0a2dQDOrrDn+TpxAicD0FNvZ/oUxX1Ma1EkG6WQ9EaBDrHQxSZA6hlaaNIHQ== X-Received: by 2002:aa7:8203:: with SMTP id k3mr28653073pfi.192.1544116949414; Thu, 06 Dec 2018 09:22:29 -0800 (PST) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p6sm1349632pfn.53.2018.12.06.09.22.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 09:22:29 -0800 (PST) Date: Thu, 6 Dec 2018 09:22:25 -0800 From: Stephen Hemminger To: "Wiles, Keith" Cc: bai bakari <912873551@qq.com>, dev Message-ID: <20181206092225.3702262e@xeon-e3> In-Reply-To: References: <20181205230914.2ea215f2@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 17:22:30 -0000 On Thu, 6 Dec 2018 15:17:19 +0000 "Wiles, Keith" wrote: > > On Dec 6, 2018, at 12:09 AM, Stephen Hemminger wrote: > > > > On Thu, 6 Dec 2018 11:45:22 +0800 > > "bai bakari" <912873551@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 > I just wanted to make sure that user had configured TCP, and not UDP>