From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by dpdk.org (Postfix) with ESMTP id 4A1742BB8 for ; Tue, 26 Feb 2019 14:10:05 +0100 (CET) Received: by mail-oi1-f170.google.com with SMTP id a81so10206570oii.11 for ; Tue, 26 Feb 2019 05:10:05 -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=DzOoKYXJ826DVkwWnLld661sWcnNw/6ueuH3SDytDBw=; b=qEVKiB95lV16bRuMVt/X8LS6q/MMR2SxS0zxYoWDRnq/jWzxf0//tADuTy0UzK8czz tbEPtBqMZ2pZ8s+qB0O+HMgOzdlDt8/a83CQKTp+QnxI3j9KJ63lmSa3/wpGDlfEA/nK 4V5A+MedV+wRPJYMSK5N43L9DvvoyFpn/uk045JYLeOweRBLSgP9dmLfZrJGQAwGbVoD RU6lL6sKHY3AiC26wCaRSedTGcds+OtzP6BLZeiGeP0RabTQnNWXS32U6OUKlEZdJO9F FYX2jCBALu01AAiAvMNh9lyK5fdtxGkqGKTyVaSc/TOWr1qc8rhAOxPAXide5wXxpdQR luMQ== 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=DzOoKYXJ826DVkwWnLld661sWcnNw/6ueuH3SDytDBw=; b=H/Ehn3+pCycMsfd0phvXri8mu4XhqxLhS+A1FqenYhDlZ5SbimhunWP1kY/MZkBfEu X9HPgTK046h8DCih4uwxQTdW6J8uGS1v5djOAhU1PIKLI2G7v6i7LZes5ay9iaH1IIEf LHEj8aU4uWlmqi3VDdcl32xWnCC99dOtTAkEckCZi0r/lIDuAlwMs5r3v0a7hXeM5E21 KFFNEox1sh1XE4cBXNu5hiJqmJJzhXS8H2msBEtDglGpvM5RRWp2xAmImHCL1D9kBkua Ui6X0NDJAjlHUL7R0adETkozGpVPQO/DZHF/xTXCOZ6ubVRsEEhLci3qYZqRocFzYNsN FQGg== X-Gm-Message-State: AHQUAubhYTLsoV7sRv+UwAFyR2+u5ZcRtZoNS1dVPnbSngxPz+Dk1XF6 JDd8/iEkD36RJddSt9E5+UsYFClZqtYybZaTXgwntCHz3nk= X-Google-Smtp-Source: AHgI3IaDmUuM0UcutW52AwFcC43k7190SDhuK4IwP2BsM4moPsI9qh/F35+zg4DQPMrxob2MoK7WTJf9/5NM5akksoQ= X-Received: by 2002:aca:ef0b:: with SMTP id n11mr2144652oih.116.1551186604474; Tue, 26 Feb 2019 05:10:04 -0800 (PST) MIME-Version: 1.0 References: <6a0871c4-c884-b61a-e1fc-4752531a4a2f@filipjaniszewski.com> In-Reply-To: <6a0871c4-c884-b61a-e1fc-4752531a4a2f@filipjaniszewski.com> From: Rami Rosen Date: Tue, 26 Feb 2019 15:09:53 +0200 Message-ID: To: Filip Janiszewski Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] testpmd and jumbo frames X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 13:10:05 -0000 Hi, Filip I believe that the --max-pkt-len=9600 has an effect of setting the DEV_RX_OFFLOAD_JUMBO_FRAME flag, and not setting the mbuf seg size. If you want to set the mbuf segment size, you need to use the "--mbuf-size" testpmd parameter. For example, add "--mbuf-size=10000" and then try "set txpkts 9036" from the testpmd cli Regards, Rami Rosen On Tue, 26 Feb 2019 at 08:49, Filip Janiszewski wrote: > > Hi, > > Can someone suggest the proper configuration required to test jumbo > frames along with scatter mode using testpmd? > > I'm running the tool as follow: > > . > sudo ./testpmd -l 0-3 -n 4 -- -i --max-pkt-len=9600 --enable-scatter > --txd=512 --rxd=512 --forward-mode=flowgen > . > > then attempting to set the packet length: > > . > testpmd> set txpkts 9036 > length[0]=9036 > mbuf_data_size=2176 - give up > . > > According to the documentation > (https://doc.dpdk.org/guides/testpmd_app_ug/run_app.html), the option > txpkts should configure: > > . > Set TX segment sizes or total packet length. Valid for tx-only and > flowgen forwarding modes. > . > > So I was expecting to be able to set the packet length in this way, but > somehow it doesn't work and when I hit start the packets have always a > length of 60 bytes: > > . > src=00:01:02:03:04:00 - dst=00:01:02:03:04:01 - type=0x0800 - length=60 > - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP - sw ptype: > L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20 - l4_len=8 - Send queue=0x0 > . > > I've attempted to set the queue capabilities (scatter and JF) by hand with: > > . > testpmd> port config 1 rx_offload scatter on > testpmd> port config 1 rx_offload jumbo_frame on > . > > (repeated for both port) but this doesn't helped, so, how do I test a > card using testpmd with packets bigger than 2176? > > Thanks > > -- > BR, Filip > +48 666 369 823