HomeFreeBSD

mrsas(4): Report more correct maximum I/O size.

Description

mrsas(4): Report more correct maximum I/O size.

Subtract one SGE for the case of misaligned address. Also take into
account maximum number of sectors reported by firmware, that gives
nicer 256KB limit instead of 276KB calculated from the SGE limit.

While there, remove number of I/O size checks, duplicating what is
already checked by CAM and busdma(9).

MFC after: 1 month
Sponsored by: iXsystems, Inc.

(cherry picked from commit fa3d57c256104649217b5022947de9c1c59a326e)

Details

Provenance
mavAuthored on Jul 1 2021, 7:28 PM
Parents
rG666a7f460270: vlan: deduplicate bpf_setpcp() and pf_ieee8021q_setpcp()
Branches
Unknown
Tags
Unknown