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 95323A04B5; Mon, 2 Dec 2019 13:46:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED9271BF78; Mon, 2 Dec 2019 13:46:45 +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 374DD2C58 for ; Sun, 1 Dec 2019 20:55:20 +0100 (CET) Received: by mail-vk1-f172.google.com with SMTP id l5so8560216vkb.4 for ; Sun, 01 Dec 2019 11:55:20 -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=FX8PCImjp7EavYUywhCBntVnNKlUtL4k4gybhkBnzBo=; b=u09yGiMsHGolYAXnnV++9UeIma+CJrJVo31OHsvrXT6rclHXt1Oo3QajRCbF/lIbwv wmM6gfaQr96MDuk0f6uKUXQrKQtEd518EWkZK+CUJuL98IO/OrgWqsrfGPiThHPwWcte sOp1bTsX+sv4R0BEDwvdIRhrfIeRw5AoPXs3ojKnhWJ8VYfZK7BHvt4/7+yCU07qy0TS DsmpoRz2wBPZNdgVOu/YOHXOaC2TCWvIM2RoITS+dkymMtz3jFJPXdFARwBzxnbjIW8U z5ZSH1MP458BtE8qArQykZQnzXgPLKVpy+yf3Cb7zL94V8x2V6nIk2AnrE9eg9JFwMNg xk2g== 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=FX8PCImjp7EavYUywhCBntVnNKlUtL4k4gybhkBnzBo=; b=pycAGrx8Y9HH/d+xpdmNwz7DOQ+hG/rGdhFQ6yekRX0zxidtfw6wWG1ytFjNNl27yU XqIwtDBcnwAOjXMAXimZnaZhopll5MxdOfAFek5fJf9+Bbeq1WeqWbXL2vM4Vx8L2AKK Y6s5FvdClurW9NTCNOOlsQSkL5wzXzs8SlIbXtnpkh7MlK2luUgpGFW892SLVMGq3ule iDVuXN01fIaUz8g0VJV8vOsYXt5AGnxOd8UAzl3eQfWJYSV+pn8OyTP3RYE6gJnbmDrD ciPH+OnTdTVqm3fgDeXhJ7BHnXb91UamP4/GiD4nIunO1245uK+p8Wz5t8NR96+727OP mt+w== X-Gm-Message-State: APjAAAX9TPVq0hQYiEd8Al+0SOMYouiOtDduHXEgCP/ZJ7gk6Sa6TeeQ JKmhYxEiSWjAo+E/+YWaVC8eIUhmYKC3Af9na+o= X-Google-Smtp-Source: APXvYqxH7p6pokPfvlOcwQUfeJBV3w6MquYMkDyUNPP/kbYARqRve0NAuocQZlBO8lWMTxBscie3VEoIrknlPlSFqPY= X-Received: by 2002:a1f:5787:: with SMTP id l129mr15514420vkb.41.1575230119528; Sun, 01 Dec 2019 11:55:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nirmal Sarkar Date: Mon, 2 Dec 2019 01:25:06 +0530 Message-ID: To: "Wiles, Keith" Cc: "Roberts, Lee A." , "dev@dpdk.org" X-Mailman-Approved-At: Mon, 02 Dec 2019 13:46:44 +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 Keith, Thanks a lot for your help. I'm using pktgen-3.7.1. So I'll pull your changes there and check it. Regards, N. Sarkar On Sat, Nov 30, 2019 at 5:31 AM Wiles, Keith wrote: > > > > On Nov 19, 2019, at 11:42 AM, Roberts, Lee A. > wrote: > > > > 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 siz= e > */ > > --- > >> #define ETH_MTU 9600 /* Max MTU for Ethernet *= / > >> #define ETH_MAX_PKT 9600 /* Max Ethernet frame siz= e > */ > > > > - Lee Roberts > > I have a updated pktgen with jumbo support. You need to pass the -j optio= n > to get jumbo frame support in pktgen. I have not done a lot of testing on > this version. If you have time please pull the pktgen repo and switch ove= r > to the =E2=80=98dev=E2=80=99 branch and see if this work for you. I did n= ot use your > changes here and did it my way :-) > > I did not change DPDK, as it seemed like it did not matter if > RTE_MBUF_DEFAULT_DATAROOM changed. I am sure someplace may care if they > used that define. > > > > > > > -----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 > >