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 EEA1FA04C1; Wed, 20 Nov 2019 18:31:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3393E2C36; Wed, 20 Nov 2019 18:31:24 +0100 (CET) Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) by dpdk.org (Postfix) with ESMTP id 3401F27D for ; Wed, 20 Nov 2019 13:10:00 +0100 (CET) Received: by mail-vs1-f43.google.com with SMTP id a143so16650562vsd.9 for ; Wed, 20 Nov 2019 04:10:00 -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=nwSBxYTnb1J8vAqSRFLZe6Us3d/i67w/G74VLsLPlK4=; b=CbNP7Y52ZrijwAiMiX9IkEtWOBpfTuk43//8RapIpTxJbLleu1oSR5hSHhYuAO6cd0 z3iRixvjpVWzb/t+oeoivXE2P4byrsEy8nyuMk8EgH4c2tWn2hLj4esCQ/gj6VTcRVYk SDxVC2IUNBuGFnVSlwN3A+rp/B53MjEs8F+ENBElK7kVR4xlIvWn9r312f3nsNd5GmAG 1BOHP9wRT6xd3eAXKAPupEn16GxMVtymWPg4hmuqZmjdZ0UWPRVR/duSNo58qIwCntoJ j9sFjK/cXVJ/CSk0/X+Z3w+4mxZlpubZpLKAS6w55ntfy4E44ydo7nk8HBZ4GdActtwB Ontg== 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=nwSBxYTnb1J8vAqSRFLZe6Us3d/i67w/G74VLsLPlK4=; b=sKif8zhefgsQdPL4vgWAN+J+itkBP7Hmhk6QfIcwLXIYiS0n9gm6CQvPZXMwgC3jRd 0CYdMurRxUAeU1G5SEJWpL1rRZiC/F+yE5fbr9lKjqkmqUYqgNhfYVOyg22AY9b4O2tu S9zPl7QAnOijHcR02EapH6aVGHH5XR/eV6zGG56kwvfc/DUQJiK2f7SKzKLL/5ydWDhL Do9XZ/mdQYvKFz43GJn31Ab/YK20X66zdrw2boYBnRA+hvEbr2Q1wzcCqE5D8qEGVleQ 9ci2XeuQV32B8U9Cx29yB8SSjuavNQBMHxOA3Rc+U/DsSUemVb5knA2nX5OHUyPT90yQ TWfg== X-Gm-Message-State: APjAAAUoXovzNq5TtzxeKni5zbXequrahqsmQNW9/ERpiTd1KM/xFuvJ 8YiUk7R16o9/PLwLFJtKR47C/mDW7930n/CwfNw= X-Google-Smtp-Source: APXvYqzt14cuAeci2ik+35k86JlnHfR6phWYs3KbsL32/NWAyqiKLIQRVA/+TcPYp7/GED7or4jj7kd9vqeGCP/i5T8= X-Received: by 2002:a05:6102:89:: with SMTP id t9mr1241196vsp.228.1574251799422; Wed, 20 Nov 2019 04:09:59 -0800 (PST) MIME-Version: 1.0 References: <98CBD80474FA8B44BF855DF32C47DC35C60C14@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C60C14@smartserver.smartshare.dk> From: Nirmal Sarkar Date: Wed, 20 Nov 2019 17:39:47 +0530 Message-ID: To: =?UTF-8?Q?Morten_Br=C3=B8rup?= Cc: John McNamara , Marko Kovacevic , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , "Roberts, Lee A." , dev@dpdk.org Content-Type: multipart/mixed; boundary="0000000000004ac5c00597c60fe8" X-Mailman-Approved-At: Wed, 20 Nov 2019 18:31:23 +0100 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" --0000000000004ac5c00597c60fe8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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 an > application, and possibly an example of using the rte_eth_dev_info->max_m= tu. > > > 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 siz= e > */ > > --- > > > #define ETH_MTU 9600 /* Max MTU for Ethernet *= / > > > #define ETH_MAX_PKT 9600 /* Max Ethernet frame siz= e > */ > > > > - 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 > --0000000000004ac5c00597c60fe8 Content-Type: text/plain; charset="US-ASCII"; name="success.txt" Content-Disposition: attachment; filename="success.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k378t57z0 KiogVmVyc2lvbjogRFBESyAxOC4xMS4xLCBDb21tYW5kIExpbmUgSW50ZXJmYWNlIHdpdGhvdXQg dGltZXJzDQpQa3RnZW46Lz4NCi8gUG9ydHMgMC0wIG9mIDEgICA8TWFpbiBQYWdlPiAgQ29weXJp Z2h0IChjKSA8MjAxMC0yMDE5PiwgSW50ZWwgQ29ycG9yYXRpb24NCiAgRmxhZ3M6UG9ydCAgICAg ICAgOiBQLS0tLS0tUmFuZ2UgICAgICAgOjANCkxpbmsgU3RhdGUgICAgICAgICAgOiAgICAgICAg IDxVUC0xMDAwMC1GRD4gICAgICAtLS1Ub3RhbCBSYXRlLS0tDQpQa3RzL3MgTWF4L1J4ICAgICAg IDogICAgICAgICAgICAgICAgICAgMi8xICAgICAgICAgICAgICAgICAgIDIvMQ0KICAgICAgIE1h eC9UeCAgICAgICA6ICAgICAgICAgICAyMDgzOC8xOTI0NCAgICAgICAgICAgMjA4MzgvMTkyNDQN Ck1CaXRzL3MgUngvVHggICAgICAgOiAgICAgICAgICAgICAgICAwLzEzODQgICAgICAgICAgICAg ICAgMC8xMzg0DQpCcm9hZGNhc3QgICAgICAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQpN dWx0aWNhc3QgICAgICAgICAgIDogICAgICAgICAgICAgICAgICAgIDEwDQpTaXplcyA2NCAgICAg ICAgICAgIDogICAgICAgICAgICAgICAgICAgIDEyDQogICAgICA2NS0xMjcgICAgICAgIDogICAg ICAgICAgICAgICAgICAgICAwDQogICAgICAxMjgtMjU1ICAgICAgIDogICAgICAgICAgICAgICAg ICAgICAwDQogICAgICAyNTYtNTExICAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQogICAg ICA1MTItMTAyMyAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQogICAgICAxMDI0LTE1MTgg ICAgIDogICAgICAgICAgICAgICAgICAgICAwDQpSdW50cy9KdW1ib3MgICAgICAgIDogICAgICAg ICAgICAgICAgICAgMC8wDQpBUlAvSUNNUCBQa3RzICAgICAgIDogICAgICAgICAgICAgICAgICAx MC8wDQpFcnJvcnMgUngvVHggICAgICAgIDogICAgICAgICAgICAgICAgICAgMC8wDQpUb3RhbCBS eCBQa3RzICAgICAgIDogICAgICAgICAgICAgICAgICAgIDExDQogICAgICBUeCBQa3RzICAgICAg IDogICAgICAgICAgICAgICAgMTc5NjQwDQogICAgICBSeCBNQnMgICAgICAgIDogICAgICAgICAg ICAgICAgICAgICAwDQogICAgICBUeCBNQnMgICAgICAgIDogICAgICAgICAgICAgICAgIDEyOTIy DQogICAgICAgICAgICAgICAgICAgIDoNClBhdHRlcm4gVHlwZSAgICAgICAgOiAgICAgICAgICAg ICAgIGFiY2QuLi4NClR4IENvdW50LyUgUmF0ZSAgICAgOiAgICAgICAgIEZvcmV2ZXIgLzEwMCUN ClBrdCBTaXplL1R4IEJ1cnN0ICAgOiAgICAgICAgICAgODk3MiAvICAgNjQNClRUTC9Qb3J0IFNy Yy9EZXN0ICAgOiAgICAgICAgIDQvIDEwMDAvIDEwMDANClBrdCBUeXBlOlZMQU4gSUQgICAgOiAg ICAgICBJUHY0IC8gVURQOjAwMDENCjgwMi4xcCBDb1MvRFNDUC9JUFAgOiAgICAgICAgICAgICAw LyAgMC8gIDANClZ4TEFOIEZsZy9HcnAvdmlkICAgOiAgICAgIDAwMDAvICAgIDAvICAgIDANCklQ ICBEZXN0aW5hdGlvbiAgICAgOiAgICAgICAgIDE5Mi4xNjguMTY4LjQNCiAgICBTb3VyY2UgICAg ICAgICAgOiAgICAgIDE5Mi4xNjguMTY4LjMvMjQNCk1BQyBEZXN0aW5hdGlvbiAgICAgOiAgICAg MDA6NTA6NTY6OWI6YmE6YWUNCiAgICBTb3VyY2UgICAgICAgICAgOiAgICAgMDA6NTA6NTY6OWI6 ZWY6NTMNClBDSSBWZW5kb3IvQWRkciAgICAgOiAgICAgMTVhZDowN2IwLzBiOjAwLjA= --0000000000004ac5c00597c60fe8 Content-Type: text/plain; charset="US-ASCII"; name="failure.txt" Content-Disposition: attachment; filename="failure.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k378t9ed1 KiogVmVyc2lvbjogRFBESyAxOC4xMS4xLCBDb21tYW5kIExpbmUgSW50ZXJmYWNlIHdpdGhvdXQg dGltZXJzDQpQa3RnZW46Lz4NCnwgUG9ydHMgMC0wIG9mIDEgICA8TWFpbiBQYWdlPiAgQ29weXJp Z2h0IChjKSA8MjAxMC0yMDE5PiwgSW50ZWwgQ29ycG9yYXRpb24NCiAgRmxhZ3M6UG9ydCAgICAg ICAgOiBQLS0tLS0tUmFuZ2UgICAgICAgOjANCkxpbmsgU3RhdGUgICAgICAgICAgOiAgICAgICAg IDxVUC0xMDAwMC1GRD4gICAgICAtLS1Ub3RhbCBSYXRlLS0tDQpQa3RzL3MgTWF4L1J4ICAgICAg IDogICAgICAgICAgICAgICAgICAgMi8xICAgICAgICAgICAgICAgICAgIDIvMQ0KICAgICAgIE1h eC9UeCAgICAgICA6ICAgICAgICAgMTY5NTc2LzE2Nzk1MiAgICAgICAgIDE2OTU3Ni8xNjc5NTIN Ck1CaXRzL3MgUngvVHggICAgICAgOiAgICAgICAgICAgICAgICAwLzE5MDcgICAgICAgICAgICAg ICAgMC8xOTA3DQpCcm9hZGNhc3QgICAgICAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQpN dWx0aWNhc3QgICAgICAgICAgIDogICAgICAgICAgICAgICAgICAgMTI5DQpTaXplcyA2NCAgICAg ICAgICAgIDogICAgICAgICAgICAgICAgICAgMTMxDQogICAgICA2NS0xMjcgICAgICAgIDogICAg ICAgICAgICAgICAgICAgICAwDQogICAgICAxMjgtMjU1ICAgICAgIDogICAgICAgICAgICAgICAg ICAgICAwDQogICAgICAyNTYtNTExICAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQogICAg ICA1MTItMTAyMyAgICAgIDogICAgICAgICAgICAgICAgICAgICAwDQogICAgICAxMDI0LTE1MTgg ICAgIDogICAgICAgICAgICAgICAgICAgICAwDQpSdW50cy9KdW1ib3MgICAgICAgIDogICAgICAg ICAgICAgICAgICAgMC8wDQpBUlAvSUNNUCBQa3RzICAgICAgIDogICAgICAgICAgICAgICAgIDEy OS8wDQpFcnJvcnMgUngvVHggICAgICAgIDogICAgICAgICAgICAgICAgICAgMC8wDQpUb3RhbCBS eCBQa3RzICAgICAgIDogICAgICAgICAgICAgICAgICAgMTMxDQogICAgICBUeCBQa3RzICAgICAg IDogICAgICAgICAgICAgIDIxODAzMzYwDQogICAgICBSeCBNQnMgICAgICAgIDogICAgICAgICAg ICAgICAgICAgICAwDQogICAgICBUeCBNQnMgICAgICAgIDogICAgICAgICAgICAgICAgMjQ3Njg2 DQogICAgICAgICAgICAgICAgICAgIDoNClBhdHRlcm4gVHlwZSAgICAgICAgOiAgICAgICAgICAg ICAgIGFiY2QuLi4NClR4IENvdW50LyUgUmF0ZSAgICAgOiAgICAgICAgIEZvcmV2ZXIgLzEwMCUN ClBrdCBTaXplL1R4IEJ1cnN0ICAgOiAgICAgICAgICAgMTQwMCAvICAgNjQNClRUTC9Qb3J0IFNy Yy9EZXN0ICAgOiAgICAgICAgIDQvIDEwMDAvIDEwMDANClBrdCBUeXBlOlZMQU4gSUQgICAgOiAg ICAgICBJUHY0IC8gVURQOjAwMDENCjgwMi4xcCBDb1MvRFNDUC9JUFAgOiAgICAgICAgICAgICAw LyAgMC8gIDANClZ4TEFOIEZsZy9HcnAvdmlkICAgOiAgICAgIDAwMDAvICAgIDAvICAgIDANCklQ ICBEZXN0aW5hdGlvbiAgICAgOiAgICAgICAgIDE5Mi4xNjguMTY4LjQNCiAgICBTb3VyY2UgICAg ICAgICAgOiAgICAgIDE5Mi4xNjguMTY4LjMvMjQNCk1BQyBEZXN0aW5hdGlvbiAgICAgOiAgICAg MDA6NTA6NTY6OWI6YmE6YWUNCiAgICBTb3VyY2UgICAgICAgICAgOiAgICAgMDA6NTA6NTY6OWI6 ZWY6NTMNClBDSSBWZW5kb3IvQWRkciAgICAgOiAgICAgMTVhZDowN2IwLzBiOjAwLjA= --0000000000004ac5c00597c60fe8--