net/ena: validate Rx req ID upon acquiring descriptor
authorMichal Krawczyk <mk@semihalf.com>
Tue, 26 Jan 2021 18:32:24 +0000 (19:32 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:12 +0000 (18:16 +0100)
commit05cffdcfa0f1940e0b2c5495aa7194c474cfe197
tree09a4f45d73e225cbcd0d92603082c1d4dc1f3f53
parent1f949ad90bb558d0b10756bff7bfa909ff9ff7b3
net/ena: validate Rx req ID upon acquiring descriptor

Instead of verifying the Rx descriptor each time it's being used in the
driver code, now the verification happens on the HAL side.

This simplifies code a lot as instead of doing 2 validations, only
single one is needed. The driver have to check the rc value returned
by the ena_com upon reading the Rx descriptor and trigger the reset
if needed. It was previously the responsibility of the
validate_rx_req_id() function.

As part of the change, the version of the driver was bumped to v2.2.1.

Fixes: 2061fe41f212 ("net/ena: linearize Tx mbuf")
Cc: stable@dpdk.org
Signed-off-by: Ido Segev <idose@amazon.com>
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
drivers/net/ena/base/ena_eth_com.c
drivers/net/ena/base/ena_plat_dpdk.h
drivers/net/ena/ena_ethdev.c