From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C500A04DD; Tue, 26 Nov 2019 17:20:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A3A75B3A; Tue, 26 Nov 2019 17:20:13 +0100 (CET) Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) by dpdk.org (Postfix) with ESMTP id 38F9C2B88 for ; Tue, 26 Nov 2019 09:21:49 +0100 (CET) Received: by mail-vk1-f172.google.com with SMTP id b127so1386626vkh.12 for ; Tue, 26 Nov 2019 00:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rW7rVWCTSfUvAN38RlTkK/9XrSWQuI9aiO7a9PS0ez0=; b=GeClRxufC8fluWe9uoju6fji4ENSnn9rsTzHNAGok12/05//PbV8sqlC5mRNeT9dOi L9SkcqSt2nzjLAsSheEgcBQnNwmdJtBcz6quZkxyMmzD6Ji1QgUMUl75+m5PayKToXvw sxTcUgZ41q5Y/iz0MR8c3h+HQ6W8Rmo+oPlv4D1GVd9hb61SHgC8S/mK2MrXa37yB5ua J6labtIVeI0BPYesEnhwG28mTkkM7mtIRjVzUAZiJEKEJr9OfuPbJ3sLA9uC7iwHLzkr KiP5m7WA71ddgHq7yI8cVd+Sw7TbfsCLpBKPr6Er4y+KwZXY9reYzZdD0Tq02jGxnhhB vb+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rW7rVWCTSfUvAN38RlTkK/9XrSWQuI9aiO7a9PS0ez0=; b=ZjqBgKAMjtPR03bTpoBXgeQc2HpCdS+38Dxay+DSfPGJLFgONbDRZtmFabdHgaw+o7 appK3ttJ9TRdJYtXrp7rDyP26hYxchPT+46wy/G06PmZ8Yy6ljGE8LEAi51BzG14w8uq i1wQQEgcz0BokulUpPrAyFL5gY8Gk3khzJ/1ZCIx2EtC+LK2rKh1HC0giu16HCbnFvbl GsU467N9BDIs+kGbd1S2bPdwMc3Pqq5KqyAnugBhkJ6rvZt8OQebBp1xoM5gZDKJ9Odl 8a2YKmGmks5SMGLY7deVveetjfDsbadlkhL/uD1PRb4S7JWkt7B3y2/IsJIF9gyK//4k qDZA== X-Gm-Message-State: APjAAAWBy3HSDbSuHHOW1+r48HQSfu9FUgGF7AE3gRw9DxQiiURXqri+ TH+DviHDC10Lko/dcTyiU8Ammq19aZxb8ZC1CKk= X-Google-Smtp-Source: APXvYqxwSIbfMBWOs9z75XytACuCWa8IidAFmRotH1YtJBuN3FFkHnHXMKoglDY8iActkfrral5fJ9/aYFXf/LZQWQE= X-Received: by 2002:a1f:5446:: with SMTP id i67mr12497004vkb.59.1574756508426; Tue, 26 Nov 2019 00:21:48 -0800 (PST) MIME-Version: 1.0 References: <98CBD80474FA8B44BF855DF32C47DC35C60C14@smartserver.smartshare.dk> <788C0E34-44F9-4E04-86C2-1F1B11FDE59C@intel.com> In-Reply-To: <788C0E34-44F9-4E04-86C2-1F1B11FDE59C@intel.com> From: Nirmal Sarkar Date: Tue, 26 Nov 2019 13:51:37 +0530 Message-ID: To: "Wiles, Keith" Cc: =?UTF-8?Q?Morten_Br=C3=B8rup?= , "Mcnamara, John" , "Kovacevic, Marko" , Thomas Monjalon , "Yigit, Ferruh" , Andrew Rybchenko , "Roberts, Lee A." , "dev@dpdk.org" X-Mailman-Approved-At: Tue, 26 Nov 2019 17:20:07 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Jumbo Frame in pktgen & dpdk-pktgen 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello, To support Jumbo frame in dpdk-pktgen, changes were suggested in dpdk libraries also apart from pktgen code. *lib/librte_mbuf/rte_mbuf.h * *lib/common/pg_inet.h * But dpdk framework already supports jumbo frame [using *--enable-jumbo* & *--max-pkt-len* flag]. Can you please help me to understand why do we need to change the libraries in dpdk ? Regards, N. Sarkar On Thu, Nov 21, 2019 at 12:24 AM Wiles, Keith wrote= : > > > > On Nov 20, 2019, at 6:09 AM, Nirmal Sarkar > wrote: > > > > Hello, > > > > Thanks for the help. > > As I'm using DPDK-18.11.1, I did not find the definition of > > "RTE_ETHER_MAX_LEN" in lib/librte_net/rte_ether.h file. > > So I set "ETHER_MAX_LEN" value to 9600. > > Apart from that I took rest of the changes and with these I'm able to > send > > jumbo frame. > > Took tcpdump on the receiving end. > > > > Suddenly I got stuck at ARP. I could not send packets anymore. > > Sorry, I can not tell what the error condition is you are hitting, as the > two screen dumps do not provide me where I should start looking. If you c= an > help me understand the issue better. > > > > I've attached success & failure scenario. > > > > Regards, > > N. Sarkar > > > > On Wed, Nov 20, 2019 at 2:14 AM Morten Br=C3=B8rup > > wrote: > > > >> John, Marko, > >> > >> It seems we are missing documentation about enabling Jumbo frames in a= n > >> application, and possibly an example of using the > rte_eth_dev_info->max_mtu. > >> > >> > >> Med venlig hilsen / kind regards > >> - Morten Br=C3=B8rup > >> > >>> -----Original Message----- > >>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Roberts, Lee A. > >>> Sent: Tuesday, November 19, 2019 6:42 PM > >>> To: Nirmal Sarkar; dev@dpdk.org > >>> Subject: Re: [dpdk-dev] Jumbo Frame in pktgen & dpdk-pktgen > >>> > >>> Nirmal, > >>> > >>> Here are the changes that I've been using to allow jumbo frames with > >> dpdk- > >>> 19.08 and > >>> pktgen-19.10.0: > >>> > >>> diff -r default/dpdk-19.08/lib/librte_mbuf/rte_mbuf.h jumbo/dpdk- > >>> 19.08/lib/librte_mbuf/rte_mbuf.h > >>> 462c462 > >>> < #define RTE_MBUF_DEFAULT_DATAROOM 2048 > >>> --- > >>>> #define RTE_MBUF_DEFAULT_DATAROOM 9600 > >>> diff -r default/dpdk-19.08/lib/librte_net/rte_ether.h jumbo/dpdk- > >>> 19.08/lib/librte_net/rte_ether.h > >>> 33c33 > >>> < #define RTE_ETHER_MAX_LEN 1518 /**< Maximum frame len, including > >> CRC. > >>> */ > >>> --- > >>>> #define RTE_ETHER_MAX_LEN 9600 /**< Maximum frame len, including > >> CRC. > >>> */ > >>> diff -r default/pktgen-19.10.0/app/pktgen.c jumbo/pktgen- > >>> 19.10.0/app/pktgen.c > >>> 749c749 > >>> < else if ( (plen >=3D 1024) && (plen <=3D PG_ETHER_MAX_LEN)) > >>> --- > >>>> else if ( (plen >=3D 1024) && (plen <=3D 1518)) > >>> 753c753 > >>> < else if (plen > PG_ETHER_MAX_LEN) > >>> --- > >>>> else if (plen > 1518) > >>> diff -r default/pktgen-19.10.0/lib/common/pg_inet.h jumbo/pktgen- > >>> 19.10.0/lib/common/pg_inet.h > >>> 379,380c379,380 > >>> < #define ETH_MTU 1500 /* Max MTU for Ethernet > */ > >>> < #define ETH_MAX_PKT 1518 /* Max Ethernet frame > size > >> */ > >>> --- > >>>> #define ETH_MTU 9600 /* Max MTU for Ethernet = */ > >>>> #define ETH_MAX_PKT 9600 /* Max Ethernet frame si= ze > >> */ > >>> > >>> - Lee Roberts > >>> > >>> > >>> -----Original Message----- > >>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Nirmal Sarkar > >>> Sent: Monday, November 18, 2019 10:26 AM > >>> To: dev@dpdk.org > >>> Subject: [dpdk-dev] Jumbo Frame in pktgen & dpdk-pktgen > >>> > >>> Hello, > >>> > >>> I'm trying to explore pktgen and dpdk-pktgen with Jumbo frame. > >>> > >>> I'm using ubuntu-18.04 system where pktgen is a kernel module and I > don't > >>> have any provision to set it for Jumbo frame. > >>> Can you please suggest how to configure Jumbo frame in pktgen ? > >>> > >>> In dpdk source code, I've modified RTE_MBUF_DEFAULT_DATAROOM [ > >>> *lib/librte_mbuf/rte_mbuf.h*] value with 9K and built. > >>> During testing, I could not send packet size more than 1500 byte. > >>> What is the suggestion to overcome this problem ? > >>> > >>> Regards, > >>> N. Sarkar > >> > > > > Regards, > Keith > >