]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec
tree91a7bc5fa15c4065dffea3bcb162cbaa37ef8a65
parent70bdf2026d905b8bfa0a455d35018df3e9777a6c
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