]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxgb4i: libcxgbi: in error case RST tcp conn
authorVarun Prakash <varun@chelsio.com>
Sat, 27 May 2017 14:52:51 +0000 (20:22 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Jun 2017 18:59:19 +0000 (14:59 -0400)
commit249772951532947ceeec2003485f28bd867758fe
tree91a7bc5fa15c4065dffea3bcb162cbaa37ef8a65
parent31b2ff4db3c86893de06461d5e09a04e1276ddd0
scsi: cxgb4i: libcxgbi: in error case RST tcp conn

If logout response is not received and ->ep_disconnect() is called then
close tcp conn by RST instead of FIN to cleanup conn resources
immediately.

Also move ->csk_push_tx_frames() above 'done:' to avoid calling
->csk_push_tx_frames() in error cases.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/cxgbi/libcxgbi.h