numam-dpdk/drivers/net/ena
Dawid Gorecki 2bae75eaa2 net/ena: fix reset reason being overwritten
When triggering the reset, no check was performed to see if the reset
was already triggered. This could result in original reset reason being
overwritten. Add ena_trigger_reset helper function, which checks if the
reset was triggered and only sets the reset reason if the reset wasn't
triggered yet. Replace all occurrences of manually setting the reset
with ena_trigger_reset call.

Fixes: 2081d5e2e9 ("net/ena: add reset routine")
Cc: stable@dpdk.org

Signed-off-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
2022-02-23 19:01:03 +01:00
..
base net/ena/base: make IO memzone unique per port 2022-02-23 19:01:03 +01:00
ena_ethdev.c net/ena: fix reset reason being overwritten 2022-02-23 19:01:03 +01:00
ena_ethdev.h net/ena/base: make IO memzone unique per port 2022-02-23 19:01:03 +01:00
ena_logs.h net/ena: use common debug options 2021-07-23 17:42:33 +02:00
ena_platform.h net/ena: remove endian swap functions 2021-05-11 15:00:44 +02:00
ena_rss.c net/ena: proxy AQ calls to primary process 2022-02-23 19:01:03 +01:00
meson.build net/ena: rework RSS configuration 2021-07-23 17:44:09 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00