Libiscsi: Adding disconnect function to transport abstraction
all library: change disconnect to iscsi->t->disconnect 1. In TCP we need only to put -1 in fd and we don't have more transport resources. In future iSER we will need to clean resources and destroy the rdma connection. Signed-off-by: Roy Shterman <roysh@mellanox.com>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
bc64420bad
commit
dff69584e0
@@ -391,6 +391,7 @@ struct iscsi_transport {
|
||||
int (*connect)(struct iscsi_context *iscsi, union socket_address *sa, int ai_family);
|
||||
int (*queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu);
|
||||
struct iscsi_pdu* (*new_pdu)(struct iscsi_context *iscsi, size_t size);
|
||||
int (*disconnect)(struct iscsi_context *iscsi);
|
||||
};
|
||||
|
||||
struct tcp_transport {
|
||||
|
||||
Reference in New Issue
Block a user