commit 5a7693e6bbf19b22fd6c1d2c4b7beb0a03969e2c upstream.
ntb_transport_tx_free_entry() never returns 0 with the current
calculation. If head == tail, then it would return qp->tx_max_entry.
Change compare to tail >= head and when they are equal, a 0 would be
returned.
Fixes:
|
||
|---|---|---|
| .. | ||
| hw | ||
| test | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| msi.c | ||
| ntb_transport.c | ||