We can try to test for Multi-segs in pktgen in the file app/pktgen-port-cfg.c
you can search for MULTI_SEGS and add the test.
if (info->dev_info.tx_offload_capa &
DEV_TX_OFFLOAD_MULTI_SEGS)
conf.txmode.offloads |=
DEV_TX_OFFLOAD_MULTI_SEGS;
From: Anand Gupta <[email protected]>
Date: Wednesday, May 5, 2021 at 6:54 AM
To: Wiles, Keith <[email protected]>
Cc: [email protected] <[email protected]>
Subject: RE: [dpdk-users] DPDK-PKTGEN crashes when using Jumbo frame in AWS EC2
Hi Keith,
I found the root cause for the problem " requested Tx offloads 0x8000 doesn't
match Tx offloads capabilities 0xe" in EC2 instances.
The DPDK ENA driver does not have "DEV_TX_OFFLOAD_MULTI_SEGS" TX offload
capability in TX offloads capabilities and in Pktgen when Jumbo frame is
enabled, the TX-offload adds " DEV_TX_OFFLOAD_MULTI_SEGS".
Is "DEV_TX_OFFLOAD_MULTI_SEGS" necessary when the Jumbo frame is enable in the
Pktgen or can we first check if the Device supports the offload or not and then
add " DEV_TX_OFFLOAD_MULTI_SEGS"?
What is the mechanism of "DEV_TX_OFFLOAD_MULTI_SEGS" when enabling Jumbo frames?
Thanks,
Anand
-----Original Message-----
From: Wiles, Keith <[email protected]>
Sent: Friday, February 12, 2021 7:26 PM
To: Anand Gupta <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-users] DPDK-PKTGEN crashes when using Jumbo frame in AWS EC2
CAUTION: This message originates from an external sender.
> On Feb 11, 2021, at 11:03 PM, Anand Gupta <[email protected]> wrote:
>
> Hello All,
>
> I'm trying to run DPDK-PKTGEN in AWS EC2 instances and able to send packets
> up to 1.5 KB packets.
> If we use Jumbo frame packets then we are getting error "requested Tx
> offloads 0x8000 doesn't match Tx offloads capabilities 0xe".
>
> Setup:
> Ubuntu: 16.04
> Driver: ENA 2.0.3K
> DPDK: 18.11.1
> PKTGEN: 3.7.1
Please update to the latest Pktgen 21.02.0 with the latest DPDK version. If you
can not upgrade then please look at the latest version as some work for jumbo
frames was done a few months ago.
>
> Can anyone help me with this issue ? Is anything I'm missing ?
>
> Thanks,
> Anand