crypto: cavium/nitrox - fix for command corruption in queue full case with backlog submissions.
Earlier used to post the current command without checking queue full after backlog submissions. So, post the current command only after confirming the space in queue after backlog submissions. Maintain host write index instead of reading device registers to get the next free slot to post the command. Return -ENOSPC in queue full case. Signed-off-by: NSrikanth Jampala <Jampala.Srikanth@cavium.com> Reviewed-by: NGadam Sreerama <sgadam@cavium.com> Tested-by: NJha, Chandan <Chandan.Jha@cavium.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Showing
想要评论请 注册 或 登录