HomeFreeBSD

MFC r314299, r314300: Fix residual length reporting in target mode.

Description

MFC r314299, r314300: Fix residual length reporting in target mode.

This allows to properly handle cases when target wants to receive or send
more data then initiator wants to send or receive. Previously in such
cases isp(4) returned CAM_DATA_RUN_ERR, while now it returns resid > 0.

Details

Provenance
mavAuthored on
Parents
rS314755: MFC r314257: Add reporting SAS protocol, in case we ever have one.
Branches
Unknown
Tags
Unknown