| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /******************************************************************************* |
|---|
| 2 | 3 | * Filename: tcm_fc.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | * |
|---|
| 11 | 12 | * Copyright (c) 2009,2010 Nicholas A. Bellinger <nab@linux-iscsi.org> |
|---|
| 12 | 13 | * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 14 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 15 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 16 | | - * (at your option) any later version. |
|---|
| 17 | | - * |
|---|
| 18 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 19 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 20 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 21 | | - * GNU General Public License for more details. |
|---|
| 22 | 14 | ****************************************************************************/ |
|---|
| 23 | 15 | |
|---|
| 24 | 16 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 392 | 384 | return container_of(se_tpg, struct ft_tpg, se_tpg); |
|---|
| 393 | 385 | } |
|---|
| 394 | 386 | |
|---|
| 395 | | -static char *ft_get_fabric_name(void) |
|---|
| 396 | | -{ |
|---|
| 397 | | - return "fc"; |
|---|
| 398 | | -} |
|---|
| 399 | | - |
|---|
| 400 | 387 | static char *ft_get_fabric_wwn(struct se_portal_group *se_tpg) |
|---|
| 401 | 388 | { |
|---|
| 402 | 389 | return ft_tpg(se_tpg)->lport_wwn->name; |
|---|
| .. | .. |
|---|
| 427 | 414 | |
|---|
| 428 | 415 | static const struct target_core_fabric_ops ft_fabric_ops = { |
|---|
| 429 | 416 | .module = THIS_MODULE, |
|---|
| 430 | | - .name = "fc", |
|---|
| 417 | + .fabric_name = "fc", |
|---|
| 431 | 418 | .node_acl_size = sizeof(struct ft_node_acl), |
|---|
| 432 | | - .get_fabric_name = ft_get_fabric_name, |
|---|
| 433 | 419 | .tpg_get_wwn = ft_get_fabric_wwn, |
|---|
| 434 | 420 | .tpg_get_tag = ft_get_tag, |
|---|
| 435 | 421 | .tpg_check_demo_mode = ft_check_false, |
|---|
| .. | .. |
|---|
| 443 | 429 | .sess_get_index = ft_sess_get_index, |
|---|
| 444 | 430 | .sess_get_initiator_sid = NULL, |
|---|
| 445 | 431 | .write_pending = ft_write_pending, |
|---|
| 446 | | - .write_pending_status = ft_write_pending_status, |
|---|
| 447 | 432 | .set_default_node_attributes = ft_set_default_node_attr, |
|---|
| 448 | 433 | .get_cmd_state = ft_get_cmd_state, |
|---|
| 449 | 434 | .queue_data_in = ft_queue_data_in, |
|---|