mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Reset pointers after clearing buffers
This commit is contained in:
parent
463f2053b0
commit
2647f68124
@ -186,6 +186,10 @@ int mqnic_free_rx_buf(struct mqnic_priv *priv, struct mqnic_ring *ring)
|
||||
cnt++;
|
||||
}
|
||||
|
||||
ring->head_ptr = 0;
|
||||
ring->tail_ptr = 0;
|
||||
ring->clean_tail_ptr = 0;
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
@ -186,6 +186,10 @@ int mqnic_free_tx_buf(struct mqnic_priv *priv, struct mqnic_ring *ring)
|
||||
cnt++;
|
||||
}
|
||||
|
||||
ring->head_ptr = 0;
|
||||
ring->tail_ptr = 0;
|
||||
ring->clean_tail_ptr = 0;
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user