提交 5e72d10a 编写于 作者: C Chenguangli 提交者: Yang Yingliang

scsi/hifc: fix the issue of npiv cannot be deleted

driver inclusion
category: bugfix
bugzilla: NA

-----------------------------------------------------------------------

This patch is used to solve the issue that the NPIV cannot be deleted.
Signed-off-by: NChenguangli <chenguangli2@huawei.com>
Reviewed-by: NZengweiliang <zengweiliang.zengweiliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 421d5d58
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
/* B version, B0XX Corresponding x.x */ /* B version, B0XX Corresponding x.x */
#define UNF_B_VERSION "5.0" #define UNF_B_VERSION "5.0"
/* Indicates the minor version number of the driver */ /* Indicates the minor version number of the driver */
#define UNF_DRIVER_VERSION "8" #define UNF_DRIVER_VERSION "9"
/* version num */ /* version num */
#define UNF_FC_VERSION UNF_MAJOR_VERSION "." UNF_B_VERSION "." UNF_DRIVER_VERSION #define UNF_FC_VERSION UNF_MAJOR_VERSION "." UNF_B_VERSION "." UNF_DRIVER_VERSION
extern unsigned int unf_dbg_level; extern unsigned int unf_dbg_level;
......
...@@ -357,10 +357,16 @@ void unf_check_vport_pool_status(struct unf_lport_s *v_lport) ...@@ -357,10 +357,16 @@ void unf_check_vport_pool_status(struct unf_lport_s *v_lport)
void unf_vport_fabric_logo(struct unf_lport_s *v_vport) void unf_vport_fabric_logo(struct unf_lport_s *v_vport)
{ {
struct unf_rport_s *rport = NULL; struct unf_rport_s *rport = NULL;
unsigned long flag = 0;
rport = unf_get_rport_by_nport_id(v_vport, UNF_FC_FID_FLOGI); rport = unf_get_rport_by_nport_id(v_vport, UNF_FC_FID_FLOGI);
UNF_CHECK_VALID(0x1970, UNF_TRUE, rport, return); UNF_CHECK_VALID(0x1970, UNF_TRUE, rport, return);
(void)unf_send_logo(v_vport, rport); spin_lock_irqsave(&rport->rport_state_lock, flag);
unf_rport_state_ma(rport, UNF_EVENT_RPORT_LOGO);
spin_unlock_irqrestore(&rport->rport_state_lock, flag);
unf_rport_enter_logo(v_vport, rport);
} }
void unf_vport_deinit(void *v_vport) void unf_vport_deinit(void *v_vport)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册