]> git.droids-corp.org - dpdk.git/commit
net/ena: make Tx completion timeout configurable
authorMichal Krawczyk <mk@semihalf.com>
Wed, 23 Feb 2022 12:19:39 +0000 (13:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Feb 2022 18:01:03 +0000 (19:01 +0100)
commitcc0c5d251928fbd4e7c9b58fc8458d5450258081
treee2c9a20ee21f492996319631f4bfa861946114c9
parent2bae75eaa2e036020b726f61bc607a8f4142c3a8
net/ena: make Tx completion timeout configurable

The default missing Tx completion timeout was set to 5 seconds.
In order to provide users with the interface to control this timeout
to adjust it with the application's watchdog, the device argument for
controlling this value was added.

The parameter is called 'miss_txc_to' and can be modified using the
devargs interface:

  ./app -a <bdf>,miss_txc_to=UINT_NUMBER

This parameter accepts values from 0 to 60 and indicates number of
seconds after which the Tx packet will be considered as missing.

HW hints for the Tx completions timeout were removed to do not overwrite
parameter from the user. Also specifying default Tx completion timeout
value was moved from the configuration to init phase in order to
simplify default value assignment.

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