DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] testpmd and jumbo frames
@ 2019-02-26  6:49 Filip Janiszewski
  2019-02-26 13:09 ` Rami Rosen
  0 siblings, 1 reply; 3+ messages in thread
From: Filip Janiszewski @ 2019-02-26  6:49 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] testpmd and jumbo frames
  2019-02-26  6:49 [dpdk-users] testpmd and jumbo frames Filip Janiszewski
@ 2019-02-26 13:09 ` Rami Rosen
  2019-02-26 13:52   ` Filip Janiszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Rami Rosen @ 2019-02-26 13:09 UTC (permalink / raw)
  To: Filip Janiszewski; +Cc: users

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
<contact@filipjaniszewski.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] testpmd and jumbo frames
  2019-02-26 13:09 ` Rami Rosen
@ 2019-02-26 13:52   ` Filip Janiszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Filip Janiszewski @ 2019-02-26 13:52 UTC (permalink / raw)
  To: Rami Rosen; +Cc: users

Hi Rami,

The part that I forgot to clarify is that I need to test the chaining of
mbufs while sending/receiving JF, so I would like to left unchanged the
mbuf size and trigger a JF transmission by means of chaining the
segments, do you think this is possible with testpmd?

Thanks

Il 26/02/19 14:09, Rami Rosen ha scritto:
> 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
> <contact@filipjaniszewski.com> 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

-- 
BR, Filip
+48 666 369 823

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-26 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26  6:49 [dpdk-users] testpmd and jumbo frames Filip Janiszewski
2019-02-26 13:09 ` Rami Rosen
2019-02-26 13:52   ` Filip Janiszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).