]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stop using NVME_MAX_XFER_SIZE constant.
authormav <mav@FreeBSD.org>
Tue, 17 Nov 2020 16:34:58 +0000 (16:34 +0000)
committermav <mav@FreeBSD.org>
Tue, 17 Nov 2020 16:34:58 +0000 (16:34 +0000)
commit3cb86e2a87ae29e4af0d94aed224ce2f7b5f8335
tree534231c8418da6ce5bac99b32866ed8c0e9384b0
parentdaed27958dbfa6f9d3a420a5dec23ecb9d93562e
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