SCSI target development
 help / color / mirror / Atom feed
* [PATCH] target:iscsi:fix np_ip_proto and np_sock_type in iscsit_setup_np
@ 2019-03-13 14:56 tangwenji
  2019-03-20 16:59 ` Mike Christie
  2019-03-21  0:37 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: tangwenji @ 2019-03-13 14:56 UTC (permalink / raw)
  To: target-devel

From: tangwenji <tang.wenji@zte.com.cn>

In the switch, np_ip_proto and np_sock_type set different values according to np_network_transport, and then uniformly assign values, so the previous values are overwritten.

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
---
 drivers/target/iscsi/iscsi_target_login.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/target/iscsi/iscsi_target_login.c b/drivers/target/iscsi/iscsi_target_login.c
index ae3209e..c526e66 100644
--- a/drivers/target/iscsi/iscsi_target_login.c
+++ b/drivers/target/iscsi/iscsi_target_login.c
@@ -883,9 +883,6 @@ int iscsit_setup_np(
 		return -EINVAL;
 	}
 
-	np->np_ip_proto = IPPROTO_TCP;
-	np->np_sock_type = SOCK_STREAM;
-
 	ret = sock_create(sockaddr->ss_family, np->np_sock_type,
 			np->np_ip_proto, &sock);
 	if (ret < 0) {
-- 
2.5.0.windows.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-21  0:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-13 14:56 [PATCH] target:iscsi:fix np_ip_proto and np_sock_type in iscsit_setup_np tangwenji
2019-03-20 16:59 ` Mike Christie
2019-03-21  0:37 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox