1
0
mirror of https://github.com/corundum/corundum.git synced 2025-02-06 08:38:23 +08:00

Reset pointers after clearing buffers

This commit is contained in:
Alex Forencich 2019-11-19 13:12:47 -08:00
parent 463f2053b0
commit 2647f68124
2 changed files with 8 additions and 0 deletions

View File

@ -186,6 +186,10 @@ int mqnic_free_rx_buf(struct mqnic_priv *priv, struct mqnic_ring *ring)
cnt++; cnt++;
} }
ring->head_ptr = 0;
ring->tail_ptr = 0;
ring->clean_tail_ptr = 0;
return cnt; return cnt;
} }

View File

@ -186,6 +186,10 @@ int mqnic_free_tx_buf(struct mqnic_priv *priv, struct mqnic_ring *ring)
cnt++; cnt++;
} }
ring->head_ptr = 0;
ring->tail_ptr = 0;
ring->clean_tail_ptr = 0;
return cnt; return cnt;
} }