HomeFreeBSD

nvmf_tcp: Correct padding calculation

Description

nvmf_tcp: Correct padding calculation

PDU data alignment (PDA) isn't necessarily a power of 2, just a
multiple of 4, so use roundup() instead of roundup2() to compute the
PDU data offset (PDO).

Sponsored by: Chelsio Communications

Details

Provenance
jhbAuthored on Sat, Nov 2, 1:54 PM
Parents
rG7b8dd078ea3c: libnvmf: Correctly set the controller and host PDA fields
Branches
Unknown
Tags
Unknown