diff options
author | Amit Engel <amit.engel@dell.com> | 2020-01-08 01:47:24 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-10 08:55:50 -0700 |
commit | e17016f6dcb047f91a8fc9f46bbf81a21d15ca73 (patch) | |
tree | e456d8791190e6c73f49d6b4d1fb1c4aff01d552 /drivers/nvme/target/Makefile | |
parent | 35038bffa87da282010b91108cadd13238bb5bbd (diff) |
nvmet: fix per feat data len for get_feature
The existing implementation for the get_feature admin-cmd does not
use per-feature data len. This patch introduces a new helper function
nvmet_feat_data_len(), which is used to calculate per feature data len.
Right now we only set data len for fid 0x81 (NVME_FEAT_HOST_ID).
Fixes: commit e9061c397839 ("nvmet: Remove the data_len field from the nvmet_req struct")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Amit Engel <amit.engel@dell.com>
[endiness, naming, and kernel style fixes]
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/target/Makefile')
0 files changed, 0 insertions, 0 deletions