]> git.droids-corp.org - dpdk.git/commit
net/ena: add device argument to disable LLQ
authorMichal Krawczyk <mk@semihalf.com>
Tue, 7 Jun 2022 16:43:40 +0000 (18:43 +0200)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Tue, 7 Jun 2022 19:01:09 +0000 (21:01 +0200)
commit9944919e2bc54c48eb9d30f1455aa6745e6b2b32
tree256f7a4a6812a9920371a53f91f458568495921c
parentc3d31352bf8713c8860bf90078c956b0a3792658
net/ena: add device argument to disable LLQ

The PMD attempts to enable the LLQ (Low Latency Queue) whenever it's
possible. The LLQ requires the user to enable the Write Combining for
the supported igb_uio/vfio-pci modules.

The vfio-pci module officially doesn't support the WC. Moreover, in some
Linux distributions, it can be built into the kernel, so any
modifications to the vfio-pci module require a full rebuild of the
kernel. This can make the configuration process much harder and for some
users, that are not interested in the great network performance for
their setups, it may be redundant. These users requested to be able to
turn off LLQ to avoid the hassle of such a setup.

It's generally not recommended to disable the LLQ, as it won't result in
the performance improvement and on the 6th generation AWS instances the
lack of LLQ can have a huge negative impact on hardware performance.

The device argument which controls the LLQ is called 'enable_llq` and by
default, it's set to 1 (which means that the LLQ is enabled). Setting
it to 0 disables the LLQ.

This commit also adds the explicit initialization of the devarg for the
'use_large_llq_hdr'. The PMD_REGISTER_PARAM_STRING() call for the ENA
was updated with all the available devargs (including
ENA_DEVARG_MISS_TXC_TO, which wasn't added previously).

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
Reviewed-by: Amit Bernstein <amitbern@amazon.com>
doc/guides/nics/ena.rst
doc/guides/rel_notes/release_22_07.rst
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h