Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/ena: trigger reset on Tx prepare failure
[ upstream commit b57e105 ] If the prepare function failed, then it means the descriptors are in the invalid state. This condition now triggers the reset, which should be further handled by the application. To notify the application about prepare function failure, the error log was added. In general, it should never fail in normal conditions, as the Tx function checks for the available space in the Tx ring before the preparation even starts. Fixes: 2081d5e ("net/ena: add reset routine") Signed-off-by: Michal Krawczyk <mk@semihalf.com> Reviewed-by: Shai Brandes <shaibran@amazon.com> Reviewed-by: Shay Agroskin <shayagr@amazon.com>
- Loading branch information