[PATCH V2 3/4] nvmet-auth: use helper for auth send/recv cmd prep
Christoph Hellwig
hch at lst.de
Tue Jun 6 21:57:49 PDT 2023
On Sun, Jun 04, 2023 at 11:44:33PM -0700, Chaitanya Kulkarni wrote:
> Add a common helper to factor out secp/spsp values check and transfer
> buffer allocation in nvmet_execute_auth_send() and
> nvmet_execute_auth_receive().
While the patch looks correct, I can't say I really like. Having a
"common prep" function for just two unrelated things doesn't exactly
improve readability. And it also doesn't remove all that much code.
More information about the Linux-nvme
mailing list