]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stop using NVME_MAX_XFER_SIZE constant.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 17 Nov 2020 16:34:58 +0000 (16:34 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 17 Nov 2020 16:34:58 +0000 (16:34 +0000)
commit329327e272feedec3659a0d345b2302367dcb752
tree534231c8418da6ce5bac99b32866ed8c0e9384b0
parente35c28a24b850afd23beccf9c6683d9cd0b7c4b3
Stop using NVME_MAX_XFER_SIZE constant.

This constant depends on MAXPHYS and does not respect device capabilities.
Use proper dynamic ioctl(NVME_GET_MAX_XFER_SIZE) instead.

MFC after: 1 month
sbin/nvmecontrol/firmware.c
sbin/nvmecontrol/modules/wdc/wdc.c