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 94565A04DD; Thu, 28 Nov 2019 18:41:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D27529CB; Thu, 28 Nov 2019 18:41:26 +0100 (CET) Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) by dpdk.org (Postfix) with ESMTP id D2C291BEA3 for ; Wed, 27 Nov 2019 19:42:58 +0100 (CET) Received: by mail-vk1-f179.google.com with SMTP id u189so4495732vkf.11 for ; Wed, 27 Nov 2019 10:42:58 -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=cmFhV0M8Gi5HRvvACgnZefcxr9fwRYASQCQ84FDweQA=; b=LqLQ9ZhhyRo0Spq4uX3y8DhuhFBO1q1H4OOTgDujYy/m0U30Nqu+OZT+iMpdW6AeAK bLHF7Cv0McTkzFUuF5kdXqDyNrpNB8++tY8XH4TK15D+1D9LWqlPjDTwAOfb+LOicjDp aUMr68cwTJeMhPDxf7xrWc1LbSEQo/NENifkJER1jSbronTZJouv2Ib0wsas018ZUZkI WnrP8rPwXONLLmnG+sRX1JdyW1Yt6H5ytCgdTUbjjYC7wN2LwDMb4oZFg3aOtM4npTiu 4E4TSNAZuq6gYb4tCR/7IXr80CqxpsS23GLp23j1BVRpQjGkpunxjARv2ThEM2I0VWAK ijuQ== 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=cmFhV0M8Gi5HRvvACgnZefcxr9fwRYASQCQ84FDweQA=; b=MynsEjNIJbq12+1rQDHh3ud2NgIGf/3XbKv8tjPtYON4ggPNuxFSGF31aJxW6hoHX4 1jjNMzrE3pNWnL3zZuKbaYp9CE4AcivVsW0rUVCGLths4J4zzSrSyFF2a9qiFCr77lWb +t1Uo4dhs0RTSx4GjrgW/jdBT4gvGx06/t7YixN5s8L+xnimAUSNjTVKbxXx8MTuk1IT 3vPf1JygFTUd/S6yoBvaQVUCIborAC95UTkoT2wOKgG884VOypZmShiHnYXgQn/KuMuc +TRmFQGk6z+bapSjW8vnu52ymSTP5OHuiJtsXij+0z3H3dwEOVO/yFNz+1C87KFVgDdX OW9A== X-Gm-Message-State: APjAAAWbKlRi3DEbGrjjdOdDEVL613cvoRLxKMIfw2L8C+JS0VkJqLRS P7TtvEIrAbLigMoBYqQQWWSpwc7+H0AjZ8hb3e8= X-Google-Smtp-Source: APXvYqzcgOvW3edZLpd11dC6M3N1qtpGBh1RS3o+K5R8Pwn49Mgb8Q2u7ZnzbHjR9NVp0c7kJhX6NtcOFNR2S8aGuxw= X-Received: by 2002:a1f:5787:: with SMTP id l129mr3735545vkb.41.1574880178178; Wed, 27 Nov 2019 10:42:58 -0800 (PST) MIME-Version: 1.0 References: <98CBD80474FA8B44BF855DF32C47DC35C60C14@smartserver.smartshare.dk> <788C0E34-44F9-4E04-86C2-1F1B11FDE59C@intel.com> In-Reply-To: From: Nirmal Sarkar Date: Thu, 28 Nov 2019 00:12:45 +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: Thu, 28 Nov 2019 18:41:25 +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, Thanks for your reply. Using *testpmd* [*--mbuf-size=3D2048 --max-pkt-len=3D9600*], I can send/rec= eive Jumbo pkt over vmxnet3 without any change in the dpdk source code. Ref: https://doc.dpdk.org/dts/test_plans/jumboframes_test_plan.html Can you please tell me why I will not be able to send jumbo packet from pktgen without doing any change in dpdk/EAL ? Regards, N. Sarkar On Wed, Nov 27, 2019 at 8:42 PM Wiles, Keith wrote: > > > > On Nov 26, 2019, at 2:21 AM, Nirmal Sarkar > wrote: > > > > 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 ? > > These flags are for l3fwd type example apps and not a flag in the EAL or > core code. > > It appears the the port configs needs to be changed to enable jumbo > frames. The patch below seemed to work for Lee and I have not tried the > patch changes. > > > > 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 y= ou > can 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 < > mb@smartsharesystems.com> > > > wrote: > > > > > >> John, Marko, > > >> > > >> It seems we are missing documentation about enabling Jumbo frames in > an > > >> 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 wit= h > > >> 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, includi= ng > > >> CRC. > > >>> */ > > >>> --- > > >>>> #define RTE_ETHER_MAX_LEN 9600 /**< Maximum frame len, includin= g > > >> 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 Etherne= t > */ > > >>>> #define ETH_MAX_PKT 9600 /* Max Ethernet frame > size > > >> */ > > >>> > > >>> - 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 > > > > Regards, > Keith > >