In some configurations there is mismatch between declared and actual
descriptor count which under heavy load may lead to resource shortage.

The first patch unifies the way head and tail indexes are handled and
is crucial for compactness and succeeding patch correctness.
The second patch runs check for available descriptor count.

Jakub Palider (2):
  net/ena: use unmasked head/tail values
  net/ena: check for free buffers prior to xmit

 drivers/net/ena/ena_ethdev.c | 83 ++++++++++++++++++++++++++------------------
 drivers/net/ena/ena_ethdev.h | 24 ++-----------
 2 files changed, 52 insertions(+), 55 deletions(-)

-- 
2.5.0

Reply via email to