tcp.c (10407ec9b42d30a6ebc49f7f84e2bb2131438699) tcp.c (c0f2f45be2976abe973c8cd544f38e2d928771b0)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe over Fabrics TCP host.
4 * Copyright (c) 2018 Lightbits Labs. All rights reserved.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/module.h>
8#include <linux/init.h>

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

1702 goto out_free_tagset;
1703 }
1704 }
1705
1706 error = nvme_tcp_start_queue(ctrl, 0);
1707 if (error)
1708 goto out_cleanup_queue;
1709
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe over Fabrics TCP host.
4 * Copyright (c) 2018 Lightbits Labs. All rights reserved.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/module.h>
8#include <linux/init.h>

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

1702 goto out_free_tagset;
1703 }
1704 }
1705
1706 error = nvme_tcp_start_queue(ctrl, 0);
1707 if (error)
1708 goto out_cleanup_queue;
1709
1710 error = ctrl->ops->reg_read64(ctrl, NVME_REG_CAP, &ctrl->cap);
1711 if (error) {
1712 dev_err(ctrl->device,
1713 "prop_get NVME_REG_CAP failed\n");
1714 goto out_stop_queue;
1715 }
1716
1717 ctrl->sqsize = min_t(int, NVME_CAP_MQES(ctrl->cap), ctrl->sqsize);
1718
1719 error = nvme_enable_ctrl(ctrl, ctrl->cap);
1710 error = nvme_enable_ctrl(ctrl);
1720 if (error)
1721 goto out_stop_queue;
1722
1723 error = nvme_init_identify(ctrl);
1724 if (error)
1725 goto out_stop_queue;
1726
1727 return 0;

--- 623 unchanged lines hidden ---
1711 if (error)
1712 goto out_stop_queue;
1713
1714 error = nvme_init_identify(ctrl);
1715 if (error)
1716 goto out_stop_queue;
1717
1718 return 0;

--- 623 unchanged lines hidden ---