rdma.c (2f910859724b53f1cd3579246e3d9bebb16d78b8) rdma.c (36144964062b8676ee64281852de2a2c1b193aca)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe over Fabrics RDMA target.
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/atomic.h>
8#include <linux/blk-integrity.h>

--- 2001 unchanged lines hidden (view full) ---

2010{
2011 if (ctrl->pi_support)
2012 return NVMET_RDMA_MAX_METADATA_MDTS;
2013 return NVMET_RDMA_MAX_MDTS;
2014}
2015
2016static u16 nvmet_rdma_get_max_queue_size(const struct nvmet_ctrl *ctrl)
2017{
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe over Fabrics RDMA target.
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/atomic.h>
8#include <linux/blk-integrity.h>

--- 2001 unchanged lines hidden (view full) ---

2010{
2011 if (ctrl->pi_support)
2012 return NVMET_RDMA_MAX_METADATA_MDTS;
2013 return NVMET_RDMA_MAX_MDTS;
2014}
2015
2016static u16 nvmet_rdma_get_max_queue_size(const struct nvmet_ctrl *ctrl)
2017{
2018 if (ctrl->pi_support)
2019 return NVME_RDMA_MAX_METADATA_QUEUE_SIZE;
2018 return NVME_RDMA_MAX_QUEUE_SIZE;
2019}
2020
2021static const struct nvmet_fabrics_ops nvmet_rdma_ops = {
2022 .owner = THIS_MODULE,
2023 .type = NVMF_TRTYPE_RDMA,
2024 .msdbd = 1,
2025 .flags = NVMF_KEYED_SGLS | NVMF_METADATA_SUPPORTED,

--- 84 unchanged lines hidden ---
2020 return NVME_RDMA_MAX_QUEUE_SIZE;
2021}
2022
2023static const struct nvmet_fabrics_ops nvmet_rdma_ops = {
2024 .owner = THIS_MODULE,
2025 .type = NVMF_TRTYPE_RDMA,
2026 .msdbd = 1,
2027 .flags = NVMF_KEYED_SGLS | NVMF_METADATA_SUPPORTED,

--- 84 unchanged lines hidden ---