[PATCH 7/7] BNX2I: Updated version from 2.1.1 to 2.1.2

2010-06-27 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index fa4fb75..e7d2396 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

[PATCH 2/7] BNX2I: Created an active linklist which holds bnx2i endpoints

2010-06-27 Thread Eddie Wai
This introduces a new active linklist which would link up all active bnx2i_endpoints. This will be used by subsequent patches that follows. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil

[PATCH 6/7] BNX2I: Added host param ISCSI_HOST_PARAM_IPADDRESS

2010-06-27 Thread Eddie Wai
From: Michael Chan mc...@broadcom.com This sysfs attribute is proven to be useful during pivot_root. Signed-off-by: Michael Chan mc...@broadcom.com Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com

[PATCH 3/7] BNX2I: Optimized the bnx2i_stop connection clean up procedure

2010-06-27 Thread Eddie Wai
locks inside ep_connect and ep_disconnect so that proper exclusivity can resolve simultaneous calls to the ep_disconnect routine. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa ani

[PATCH 4/7] BNX2I: Fine tuned conn destroy and context destroy timeout values

2010-06-27 Thread Eddie Wai
Added variables to separate the fine tuned timeout values for connection destroy and context destroy for both 1g and 10g devices. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa

[PATCH 1/7] BNX2I: Separated the hardware's cleanup procedure from ep_disconnect

2010-06-27 Thread Eddie Wai
This patch introduces a new bnx2i_hw_ep_disconnect routine which contains all chip related disconnect and clean up procedure of iSCSI offload connections. This separation is intended as a preparation for the subsequent bnx2i_stop patch. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed

[PATCH 0/7] BNX2I: Patch set to fix various disconnect conditions

2010-06-27 Thread Eddie Wai
Hello, This patch set contains various code fixes and optimization which mostly deals with disconnect and clean up issues. Your comments are grealy appreciated. Please review, thanks. Eddie Eddie Wai (7): BNX2I: Separated the hardware's cleanup procedure from ep_disconnect BNX2I: Created

Re: [PATCH 1/7] BNX2I: Separated the hardware's cleanup procedure from ep_disconnect

2010-06-30 Thread Eddie Wai
Hello Mike, You're right. That extra checking for !hba was added recently as defensive programming and it should never hit. I'll remove it in v2. Thanks, Eddie On Tue, 2010-06-29 at 22:53 -0700, Mike Christie wrote: On 06/25/2010 08:39 PM, Eddie Wai wrote: +/** + * bnx2i_ep_disconnect

Re: [PATCH 3/7] BNX2I: Optimized the bnx2i_stop connection clean up procedure

2010-06-30 Thread Eddie Wai
+ endpoint condition would happen. Eddie On Tue, 2010-06-29 at 23:11 -0700, Mike Christie wrote: On 06/25/2010 08:39 PM, Eddie Wai wrote: For cases where the iSCSI disconnection procedure times out due to the iSCSI daemon being slow or unresponsive, the bnx2i_stop routine Could you describe

[PATCH 7/7 v2] BNX2I: Updated version from 2.1.1 to 2.1.2

2010-07-01 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index f0f8361..a796f56 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

[PATCH 6/7 v2] BNX2I: Added host param ISCSI_HOST_PARAM_IPADDRESS

2010-07-01 Thread Eddie Wai
From: Michael Chan mc...@broadcom.com This sysfs attribute is proven to be useful during pivot_root. Signed-off-by: Michael Chan mc...@broadcom.com Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com

[PATCH 4/7 v2] BNX2I: Fine tuned conn destroy and context destroy timeout values

2010-07-01 Thread Eddie Wai
the target is slow or non-responsive to our TCP FIN. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |4 drivers

[PATCH 3/7 v2] BNX2I: Optimized the bnx2i_stop connection clean up procedure

2010-07-01 Thread Eddie Wai
locks inside ep_connect and ep_disconnect so that proper exclusivity can resolve simultaneous calls to the ep_disconnect routine. v2: Removed the unnecessary read lock in the bnx2i_stop Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin

[PATCH 5/7 v2] BNX2I: Fixed the TCP graceful termination initiation

2010-07-01 Thread Eddie Wai
after a logout request has been initiated. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |2 + drivers/scsi/bnx2i

[PATCH 1/7 v2] BNX2I: Separated the hardware's cleanup procedure from ep_disconnect

2010-07-01 Thread Eddie Wai
This patch introduces a new bnx2i_hw_ep_disconnect routine which contains all chip related disconnect and clean up procedure of iSCSI offload connections. This separation is intended as a preparation for the subsequent bnx2i_stop patch. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed

Re: Antw: [PATCH 5/7 v2] BNX2I: Fixed the TCP graceful termination initiation

2010-07-02 Thread Eddie Wai
, EP_STATE_ULP_UPDATE_COMPL = 0x80, EP_STATE_DISCONN_START = 0x100, EP_STATE_DISCONN_COMPL = 0x200, EP_STATE_CLEANUP_START = 0x400, ... Eddie On Thu, 2010-07-01 at 23:46 -0700, Ulrich Windl wrote: Eddie Wai eddie@broadcom.com schrieb am 02.07.2010 um 00:34

[PATCH] BNX2I: Fixed bugs in the handling of unsolicited NOP-Ins

2010-07-21 Thread Eddie Wai
for the RESERVED_ITT. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 2/5] BNX2I: Added support for other TMFs besides ABORT_TASK

2010-08-10 Thread Eddie Wai
Expanded the TMF request routine to support other TMFs such as LUN RESET, etc. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Anil Veerabhadrappa ani...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 64

[PATCH 4/5] BNX2I: Added chip cleanup for the remove module path

2010-08-10 Thread Eddie Wai
panic would occur. This patch adds chip cleanup in the module removal path. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 53 +++-- drivers/scsi/bnx2i/bnx2i_iscsi.c |3 ++ 2 files

[PATCH 0/5] Patch set to fix various bugs in bnx2i

2010-08-10 Thread Eddie Wai
The first 2 patches fix issues related to rfc3720 for nopout and TMF. The last 2 patches fix issues related to Broadcom specific cleanup under different situations. Please review, thanks. Eddie Eddie Wai (5): BNX2I: Fixed a protocol violation on nopout responses BNX2I: Added support

[PATCH 1/5] BNX2I: Fixed a protocol violation on nopout responses

2010-08-10 Thread Eddie Wai
According to RFC3720, nopout packet sent in response to unsolicited nopin packet requesting a response must retain the TTT of the requester. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Anil Veerabhadrappa ani...@broadcom.com Acked-by: Benjamin Li be...@broadcom.com --- drivers

[PATCH 5/5] BNX2I: Updated version to bnx2i-2.1.3

2010-08-10 Thread Eddie Wai
Also updated maintainer info. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 99b861b..b551592 100644

RE: [PATCH 2/5] BNX2I: Added support for other TMFs besides ABORT_TASK

2010-08-11 Thread Eddie Wai
are defined to be u8. This u8 copying is also consistent to the other code paths in the existing bnx2i like nopout_wqe, etc. Thanks, Eddie -Original Message- From: Mike Christie [mailto:micha...@cs.wisc.edu] Sent: Wednesday, August 11, 2010 12:07 PM To: Eddie Wai Cc: James Bottomley

[PATCH 4/5 v2] BNX2I: Added chip cleanup for the remove module path

2010-08-12 Thread Eddie Wai
panic would occur. This patch adds chip cleanup in the module removal path. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 54 -- drivers/scsi/bnx2i/bnx2i_iscsi.c |3 ++ 2 files

[PATCH 3/5 v2] BNX2I: Recouple the CFC delete cleanup with cm_abort/close completion

2010-08-12 Thread Eddie Wai
Specific to the Broadcom 10g chipset, the CFC delete operation must be coupled with the cm_abort/close with does the SRC delete/terminate offload operation prior. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Acked-by: Benjamin Li be...@broadcom.com

[PATCH 0/5 v2] Patch set to fix various bugs in bnx2i

2010-08-12 Thread Eddie Wai
The first 2 patches fix issues related to rfc3720 for nopout and TMF. The last 2 patches fix issues related to Broadcom specific cleanup under different situations. Please review, thanks. Eddie Eddie Wai (5): BNX2I: Fixed a protocol violation on nopout responses BNX2I: Added support

[PATCH 5/5 v2] BNX2I: Updated version to bnx2i-2.1.3

2010-08-12 Thread Eddie Wai
Also updated maintainer info. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 1294936..50c2aa3 100644

[PATCH 2/5 v3] BNX2I: Added support for other TMFs besides ABORT_TASK

2010-08-13 Thread Eddie Wai
Expanded the TMF request routine to support other TMFs such as LUN RESET, etc. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Anil Veerabhadrappa ani...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 58

[PATCH] ISCSID: Fixed a race condition in the INVALID_HOST path

2010-10-25 Thread Eddie Wai
INVALID_PATH actors to have a chance to get executed before any subsequent reopen actors. Signed-off-by: Eddie Wai eddie@broadcom.com --- usr/actor.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/usr/actor.c b/usr/actor.c index e88d197..45f3a51 100644 --- a/usr

[PATCH 00/16] BNX2I: Patch set to fix various bug fixes

2010-11-10 Thread Eddie Wai
Hello, This patch set contains various bug fixes as categorized in the following: - scsi command handling (nop-ins, tmfs) - various connection clean up bug fixes Your comments are grealy appreciated. Please review, thanks. Eddie Eddie Wai (16): BNX2I: Fixed bugs in the handling

[PATCH 01/16] BNX2I: Fixed bugs in the handling of unsolicited NOP-Ins

2010-11-10 Thread Eddie Wai
for the RESERVED_ITT. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 10/16] BNX2I: Fixed a cid leak issue for 5771X (10g)

2010-11-10 Thread Eddie Wai
A cid leak issue was found when the connect destroy request exceeded the driver's disconnection timeout. This will lead to a cid resource leak issue. The fix is to allow the cid cleanup even when this happens. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani

[PATCH 09/16] BNX2I: Removed the dynamic registration of CNIC

2010-11-10 Thread Eddie Wai
The code no longer needs to dynamically register and unregister the CNIC device. The CNIC device will be kept registered until module unload. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |3 - drivers/scsi

[PATCH 03/16] BNX2I: Fixed the endian bug in the TMF LUN cmd send

2010-11-10 Thread Eddie Wai
Added a be32_to_cpu call for the TMF LUN wqe. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 32cf930..c9a3c0f

[PATCH 07/16] BNX2I: Fixed the remote TCP RST handling for the 570X (1g)

2010-11-10 Thread Eddie Wai
Modified the handling of the remote TCP RST code so the chip can now flush the tx pipe accordingly upon a remote TCP RST reception. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 11 --- drivers/scsi/bnx2i/bnx2i_iscsi.c |8 +++- 2 files

[PATCH 11/16] BNX2I: Added return code check for chip kwqe submission request

2010-11-10 Thread Eddie Wai
Added the handling for cases when a chip request is made to the CNIC module but the hardware is not ready to accept. This would lead to many unnecessary wait timeouts. This code adds check in the connect establishment and destruction path. Signed-off-by: Eddie Wai eddie@broadcom.com

[PATCH 06/16] BNX2I: Added code to handle the binding of an existing connection

2010-11-10 Thread Eddie Wai
This is the case when iscsid gets re-launched due to features like iSCSI boot which requires the daemon to re-launch due to pivot root. If the code detected the connection had an existing endpoint, the old endpoint must get cleaned up. Signed-off-by: Eddie Wai eddie@broadcom.com Acked

[PATCH 15/16] BNX2I: Updated copyright and maintainer info

2010-11-10 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/57xx_iscsi_constants.h |3 ++- drivers/scsi/bnx2i/57xx_iscsi_hsi.h |3 ++- drivers/scsi/bnx2i/bnx2i.h|3 ++- drivers/scsi/bnx2i/bnx2i_hwi.c|3 ++- drivers/scsi/bnx2i

[PATCH 16/16] BNX2I: Updated version to 2.6.2.2

2010-11-10 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 131ef80..99ca605 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

[PATCH 02/16] BNX2I: Added fix for NOP-Out response panic from unsolicited NOP-In

2010-11-10 Thread Eddie Wai
in the bnx2i_process_nopin_local_cmpl routine in bnx2i_hwi.c and the other in the iscsi_put_task routine in libiscsi.c The proposed fix is to export the currently static __iscsi_put_task() routine and have bnx2i call it directly instead of the iscsi_put_task() routine which holds the session spin lock. Signed-off-by: Eddie

[PATCH 13/16] BNX2I: Cleaned up various error conditions in ep_connect/disconnect

2010-11-10 Thread Eddie Wai
Various error conditions inside ep_connect and ep_disconnect were either not being handled or not being handled correctly. This patch fixes all those issues. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c

[PATCH 14/16] BNX2I: Allow to abort the connection if connect request times out

2010-11-10 Thread Eddie Wai
aborts the connection before freeing the resource. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c index b3925c7

[PATCH 04/16] BNX2I: Updated the handling of NETEVENTs to alleviate recovery

2010-11-10 Thread Eddie Wai
The NETDEV_GOING_DOWN handling will no longer request to put all active sessions into recovery mode until the NETDEV_DOWN event. This will eliminate the unnecessary recovery request to iscsid in the NETDEV_GOING_DOWN-NETDEV_UNREGISTER path which will remove the host anyway. Signed-off-by: Eddie

[PATCH 05/16] BNX2I: Modified the bnx2i stop path to compensate for in progress ops

2010-11-10 Thread Eddie Wai
immediately. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 21 + drivers/scsi/bnx2i/bnx2i_iscsi.c |7

Re: [PATCH 04/16] BNX2I: Updated the handling of NETEVENTs to alleviate recovery

2010-11-18 Thread Eddie Wai
On Wed, 2010-11-17 at 19:14 -0800, Mike Christie wrote: On 11/10/2010 05:04 PM, Eddie Wai wrote: case NETDEV_GOING_DOWN: - set_bit(ADAPTER_STATE_GOING_DOWN,hba-adapter_state); - iscsi_host_for_each_session(hba-shost

Re: [PATCH 08/16] BNX2I: Added mutex lock protection to conn_get_param

2010-11-18 Thread Eddie Wai
On Wed, 2010-11-17 at 19:27 -0800, Mike Christie wrote: On 11/10/2010 05:04 PM, Eddie Wai wrote: - return iscsi_conn_get_param(cls_conn, param, buf); + len = iscsi_conn_get_param(cls_conn, param, buf); + if (len == -ENOSYS) + len = 0

Re: [PATCH 12/16] BNX2I: Added feature to silently drop NOPOUT request

2010-11-18 Thread Eddie Wai
On Wed, 2010-11-17 at 19:40 -0800, Mike Christie wrote: On 11/10/2010 05:04 PM, Eddie Wai wrote: In the case the chip is undergoing different invasive operation which requires a chip reset, all NOPOUT request during this period For these invasive operations that reset the chip, do we

Re: [PATCH 12/16] BNX2I: Added feature to silently drop NOPOUT request

2010-11-18 Thread Eddie Wai
On Thu, 2010-11-18 at 12:04 -0800, Mike Christie wrote: On 11/18/2010 01:55 PM, Mike Christie wrote: On 11/18/2010 01:25 PM, Eddie Wai wrote: On Wed, 2010-11-17 at 19:40 -0800, Mike Christie wrote: On 11/10/2010 05:04 PM, Eddie Wai wrote: In the case the chip is undergoing different

[PATCH v2 10/14] BNX2I: Added return code check for chip kwqe submission request

2010-11-18 Thread Eddie Wai
Added the handling for cases when a chip request is made to the CNIC module but the hardware is not ready to accept. This would lead to many unnecessary wait timeouts. This code adds check in the connect establishment and destruction path. Signed-off-by: Eddie Wai eddie@broadcom.com

[PATCH v2 08/14] BNX2I: Removed the dynamic registration of CNIC

2010-11-18 Thread Eddie Wai
The code no longer needs to dynamically register and unregister the CNIC device. The CNIC device will be kept registered until module unload. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |3 - drivers/scsi

[PATCH v2 07/14] BNX2I: Added mutex lock protection to conn_get_param

2010-11-18 Thread Eddie Wai
Added net_dev mutex lock protection before accessing the csk parameters. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v2 05/14] BNX2I: Fixed the remote TCP RST handling for the 570X (1g)

2010-11-18 Thread Eddie Wai
Modified the handling of the remote TCP RST code so the chip can now flush the tx pipe accordingly upon a remote TCP RST reception. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 11 --- drivers/scsi/bnx2i/bnx2i_iscsi.c |8 +++- 2 files

[PATCH v2 02/14] BNX2I: Added fix for NOP-Out response panic from unsolicited NOP-In

2010-11-18 Thread Eddie Wai
in the bnx2i_process_nopin_local_cmpl routine in bnx2i_hwi.c and the other in the iscsi_put_task routine in libiscsi.c The proposed fix is to export the currently static __iscsi_put_task() routine and have bnx2i call it directly instead of the iscsi_put_task() routine which holds the session spin lock. Signed-off-by: Eddie

[PATCH v2 03/14] BNX2I: Fixed the endian bug in the TMF LUN cmd send

2010-11-18 Thread Eddie Wai
Added a be32_to_cpu call for the TMF LUN wqe. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 32cf930..c9a3c0f

[PATCH v2 04/14] BNX2I: Fixed a cid leak issue for 5771X (10g)

2010-11-18 Thread Eddie Wai
A cid leak issue was found when the connect destroy request exceeded the driver's disconnection timeout. This will lead to a cid resource leak issue. The fix is to allow the cid cleanup even when this happens. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani

[PATCH v2 01/14] BNX2I: Fixed bugs in the handling of unsolicited NOP-Ins

2010-11-18 Thread Eddie Wai
for the RESERVED_ITT. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 00/14] BNX2I: Patch set to fix various bug fixes

2010-11-18 Thread Eddie Wai
. Please review, thanks. Eddie Eddie Wai (14): BNX2I: Fixed bugs in the handling of unsolicited NOP-Ins BNX2I: Added fix for NOP-Out response panic from unsolicited NOP-In BNX2I: Fixed the endian bug in the TMF LUN cmd send BNX2I: Fixed a cid leak issue for 5771X (10g) BNX2I: Fixed

[PATCH v2 09/14] BNX2I: Modified the bnx2i stop path to compensate for in progress ops

2010-11-18 Thread Eddie Wai
immediately. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 21 + drivers/scsi/bnx2i/bnx2i_iscsi.c |7

[PATCH v2 12/14] BNX2I: Cleaned up various error conditions in ep_connect/disconnect

2010-11-18 Thread Eddie Wai
Various error conditions inside ep_connect and ep_disconnect were either not being handled or not being handled correctly. This patch fixes all those issues. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c

[PATCH v2 14/14] BNX2I: Updated version to 2.6.2.1

2010-11-18 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 131ef80..58ad4d7 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

Re: bnx2i keeps losing the connection

2010-11-19 Thread Eddie Wai
Hello Thomas, We have seen cases where connecting to a LEFTHAND target resulted in the local host requesting to perform LUN resets and the bnx2i in RHELS 5.5 does not have support for such. Here's an upstream patch which adds the TMF LUN reset support to bnx2i:

[PATCH v3 11/13] BNX2I: Cleaned up various error conditions in ep_connect/disconnect

2010-11-23 Thread Eddie Wai
Various error conditions inside ep_connect and ep_disconnect were either not being handled or not being handled correctly. This patch fixes all those issues. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c

[PATCH v3 10/13] BNX2I: Added return code check for chip kwqe submission request

2010-11-23 Thread Eddie Wai
Added the handling for cases when a chip request is made to the CNIC module but the hardware is not ready to accept. This would lead to many unnecessary wait timeouts. This code adds check in the connect establishment and destruction path. Signed-off-by: Eddie Wai eddie@broadcom.com

[PATCH v3 13/13] BNX2I: Updated version to 2.6.2.2

2010-11-23 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 131ef80..72a7b2d 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

[PATCH v3 08/13] BNX2I: Removed the dynamic registration of CNIC

2010-11-23 Thread Eddie Wai
The code no longer needs to dynamically register and unregister the CNIC device. The CNIC device will be kept registered until module unload. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |3 - drivers/scsi

[PATCH v3 04/13] BNX2I: Fixed a cid leak issue for 5771X (10g)

2010-11-23 Thread Eddie Wai
A cid leak issue was found when the connect destroy request exceeded the driver's disconnection timeout. This will lead to a cid resource leak issue. The fix is to allow the cid cleanup even when this happens. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani

[PATCH v3 03/13] BNX2I: Fixed the endian bug in the TMF LUN cmd send

2010-11-23 Thread Eddie Wai
Added a be32_to_cpu call for the TMF LUN wqe. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 32cf930..c9a3c0f

PATCH 00/13] BNX2I: Patch set to fix various bug fixes

2010-11-23 Thread Eddie Wai
BNX2I: Updated the handling of NETEVENTs to alleviate recovery BNX2I: Added code to handle the binding of an existing connection Your comments are grealy appreciated. Please review, thanks. Eddie Eddie Wai (13): BNX2I: Fixed bugs in the handling of unsolicited NOP-Ins BNX2I: Added fix

[PATCH v3 06/13] BNX2I: Allow to abort the connection if connect request times out

2010-11-23 Thread Eddie Wai
aborts the connection before freeing the resource. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c index 4882b00

[PATCH v3 07/13] BNX2I: Added mutex lock protection to conn_get_param

2010-11-23 Thread Eddie Wai
Added net_dev mutex lock protection before accessing the csk parameters. Signed-off-by: Eddie Wai eddie@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v3 09/13] BNX2I: Modified the bnx2i stop path to compensate for in progress ops

2010-11-23 Thread Eddie Wai
immediately. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Anil Veerabhadrappa ani...@broadcom.com Reviewed-by: Benjamin Li be...@broadcom.com Reviewed-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 21 + drivers/scsi/bnx2i/bnx2i_iscsi.c |7

[PATCH v3 05/13] BNX2I: Fixed the remote TCP RST handling for the 570X (1g)

2010-11-23 Thread Eddie Wai
Modified the handling of the remote TCP RST code so the chip can now flush the tx pipe accordingly upon a remote TCP RST reception. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |8 ++-- drivers/scsi/bnx2i/bnx2i_iscsi.c |8 +++- 2 files

[PATCH v3 02/13] BNX2I: Added fix for NOP-Out response panic from unsolicited NOP-In

2010-11-23 Thread Eddie Wai
in the bnx2i_process_nopin_local_cmpl routine in bnx2i_hwi.c and the other in the iscsi_put_task routine in libiscsi.c The proposed fix is to export the currently static __iscsi_put_task() routine and have bnx2i call it directly instead of the iscsi_put_task() routine which holds the session spin lock. Signed-off-by: Eddie

[PATCH v3 12/13] BNX2I: Updated copyright and maintainer info

2010-11-23 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/57xx_iscsi_constants.h |3 ++- drivers/scsi/bnx2i/57xx_iscsi_hsi.h |3 ++- drivers/scsi/bnx2i/bnx2i.h|3 ++- drivers/scsi/bnx2i/bnx2i_hwi.c|3 ++- drivers/scsi/bnx2i

Re: FW: bnx2i keeps losing the connection

2010-12-06 Thread Eddie Wai
Sep 17 00:00:00 2001 From: Eddie Wai eddie@broadcom.com Date: Mon, 6 Dec 2010 15:21:41 -0800 Subject: [PATCH] BNX2I: Added reconnect fix connecting against Lefthand targets The nopout's reserved field was not being initialized to zero before being reused. Stale CDB values from previous SCSI cmds

[PATCH 1/8] BNX2I: Allow ep CONNECT_FAILED condition to go through proper cleanup

2011-01-05 Thread Eddie Wai
Allow CNIC to go through the proper cleanup procedure for an endpoint which failed to connect. Proper cleanup is necessary for the chip to reset back to the initial state for the offloaded endpoint. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_iscsi.c |2

[PATCH 6/8] BNX2I: Added jumbo MTU support for the no shost case

2011-01-05 Thread Eddie Wai
For scenarios where the shost is not being passed to bnx2i for the iSCSI offload connection request, the code would consult the routing table to select the CNIC device. This code path will erroneously error out if the corresponding L2 interface's MTU has been setup to 1500. Signed-off-by: Eddie

[PATCH 0/8] Added bug fixes and several features for BNX2I

2011-01-05 Thread Eddie Wai
for discovery offload, and 57712(E) support. Please review. Thanks. Eddie Eddie Wai (8): BNX2I: Allow ep CONNECT_FAILED condition to go through proper cleanup BNX2I: Fixed the 32-bit swapping of the LUN field for nopouts for 5771X BNX2I: Added handling for unsupported iSCSI offload hba BNX2I

[PATCH 2/8] BNX2I: Fixed the 32-bit swapping of the LUN field for nopouts for 5771X

2011-01-05 Thread Eddie Wai
Fixed a bug where the 64-bit LUN field for nopouts were 32-bit swapped. This only pertains to 5771X devices. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2i

[PATCH 8/8] BNX2I: Updated to version 2.6.2.3

2011-01-05 Thread Eddie Wai
Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index c053764..cbce328 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c

[PATCH 5/8] BNX2I: Added TCP timestamps option support

2011-01-05 Thread Eddie Wai
This TCP timestamps option is a module wise feature which can be enabled via the module param (time_stamps). Once enabled, the TCP connection will advertise timestamps as an option to get negotiated. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Benjamin Li be...@broadcom.com

[PATCH 7/8] BNX2I: Added iSCSI text pdu support for iSCSI offload

2011-01-05 Thread Eddie Wai
This is part of an effort to support send target discovery via the iSCSI offload path. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h |2 + drivers/scsi/bnx2i/bnx2i_hwi.c | 116 ++ drivers/scsi/bnx2i/bnx2i_iscsi.c

[PATCH 3/8] BNX2I: Added handling for unsupported iSCSI offload hba

2011-01-05 Thread Eddie Wai
The hba will now be unregistered and freed when iSCSI offload is not supported by the NIC. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b

Re: [PATCH 6/8] BNX2I: Added jumbo MTU support for the no shost case

2011-01-05 Thread Eddie Wai
On Wed, 2011-01-05 at 12:50 -0800, Mike Christie wrote: On 01/05/2011 02:44 PM, Eddie Wai wrote: For scenarios where the shost is not being passed to bnx2i for the iSCSI offload connection request, the code would consult the routing table to select the CNIC device. This code path

Re: [PATCH 5/8] BNX2I: Added TCP timestamps option support

2011-01-05 Thread Eddie Wai
On Wed, 2011-01-05 at 13:06 -0800, Mike Christie wrote: On 01/05/2011 02:52 PM, Mike Christie wrote: On 01/05/2011 02:44 PM, Eddie Wai wrote: This TCP timestamps option is a module wise feature which can be enabled via the module param (time_stamps). Once enabled, the TCP connection

Re: [PATCH 0/8] Added bug fixes and several features for BNX2I

2011-01-05 Thread Eddie Wai
On Wed, 2011-01-05 at 12:52 -0800, James Bottomley wrote: On Wed, 2011-01-05 at 12:44 -0800, Eddie Wai wrote: Hello, This patch set contains two fixes and added various features as titled. The two fixes are: 1 - connection cleanup fix which fixes a chip panic issue 2 - nopout

Re: Kernel panic connecting to target

2011-02-28 Thread Eddie Wai
Hello Matthew/Mike, Yes, there is an update to the host_get_param routine in bnx2i to retrieve the host IP address in the patchset for rhels5.6. Please try and see if this helps. Thanks, Eddie On Thu, 2011-02-24 at 12:17 -0800, Mike Christie wrote: ccing broadcom maintainer. Eddie, I

[PATCH 1/2] ISCSID: Added vlan field to the iface struct

2011-03-10 Thread Eddie Wai
Defined the iface.vlan field to hold the VLAN tag of the interface in the corresponding iface file. This will then be passed to the iSCSI HBA prior to the connect request. Signed-off-by: Eddie Wai eddie@broadcom.com --- usr/config.h |4 usr/iface.c | 19

[PATCH 0/2] ISCSID: Added vlan field to the iface struct

2011-03-10 Thread Eddie Wai
losing synchronization. For this, bnx2i will also need to be changed to accept set_host_param callback for proper handling of the vlan message. Please let me know what you think. Thanks. Eddie Eddie Wai (2): ISCSID: Added vlan field to the iface struct ISCSID: Added ISCSI_HOST_PARAM_VLAN

[PATCH 2/2] ISCSID: Added ISCSI_HOST_PARAM_VLAN setting

2011-03-10 Thread Eddie Wai
Propagate the VLAN setting from the iface file to the HBA via the iscsi_host_set_net_params path prior to the ep_connect request. This will allow the connection request to have the correct VLAN tag setup. Signed-off-by: Eddie Wai eddie@broadcom.com --- include/iscsi_if.h |1 + usr

[PATCH 0/3] BNX2I: Bug fixes and Performance Optimization

2011-05-16 Thread Eddie Wai
Hello, This patch set contains a bug fix and some performance optimization for iSCSI offload connection cleanup/recovery and throughput. Please review, thanks. Eddie Wai (3): BNX2I: Fixed packet error created when the sq_size is set to 16 BNX2I: Updated the connection shutdown/cleanup

[PATCH 3/3] BNX2I: Optimized the iSCSI offload performance

2011-05-16 Thread Eddie Wai
to match chip default. 5. Changed the cmd_per_lun from 32 to 24. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h | 16 ++-- drivers/scsi/bnx2i/bnx2i_hwi.c | 26 ++ drivers/scsi/bnx2i/bnx2i_iscsi.c |8 +++- 3 files

[PATCH 1/3] BNX2I: Fixed packet error created when the sq_size is set to 16

2011-05-16 Thread Eddie Wai
command cell that is no longer valid. The fix is to correctly initialize the chip's command cell upon setup. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |1 + drivers/scsi/bnx2i/bnx2i_iscsi.c |3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff

[PATCH 3/4] BNX2I: Changed the nopout_wqe-lun memcpy to use sizeof instead

2011-06-21 Thread Eddie Wai
Modified the memcpy of nopout_wqe-lun to use sizeof(struct scsi_lun) instead of the hardcoded value 8 as noted by review comments. Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/bnx2i_hwi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 2/4] BNX2I: Modified to skip CNIC registration if iSCSI is not supported

2011-06-21 Thread Eddie Wai
The init routine will now examine the cnic-max_iscsi_conn variable before registering to CNIC during ulp_init. Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i_init.c | 29 +++-- 1 files changed, 15

[PATCH 4/4] BNX2I: Updated copyright and bump version

2011-06-21 Thread Eddie Wai
Bumped version from 2.6.2.3 to 2.7.0.3 Signed-off-by: Eddie Wai eddie@broadcom.com --- drivers/scsi/bnx2i/57xx_iscsi_constants.h |2 +- drivers/scsi/bnx2i/57xx_iscsi_hsi.h |2 +- drivers/scsi/bnx2i/bnx2i.h|2 +- drivers/scsi/bnx2i/bnx2i_hwi.c

Re: [PATCH 1/4] BNX2I: Added the use of kthreads to handle SCSI cmd completion

2011-06-22 Thread Eddie Wai
On Tue, 2011-06-21 at 19:54 -0700, Mike Christie wrote: On 06/21/2011 11:49 AM, Eddie Wai wrote: This patch breaks the SCSI cmd completion into two parts: 1. The bh will allocate and queued work to the cmd specific CPU IO completion kthread. The CPU for the cmd is recorded in task_xmit

Re: [PATCH 1/4] BNX2I: Added the use of kthreads to handle SCSI cmd completion

2011-06-23 Thread Eddie Wai
On Wed, 2011-06-22 at 09:40 -0700, Fubo Chen wrote: On Tue, Jun 21, 2011 at 6:49 PM, Eddie Wai eddie@broadcom.com wrote: +/** + * bnx2i_percpu_io_thread - thread per cpu for ios + * + * @arg: ptr to bnx2i_percpu_info structure + */ +int bnx2i_percpu_io_thread(void *arg

[PATCH 0/4 v2] BNX2I: Code and performance optimization

2011-06-23 Thread Eddie Wai
schedule() to avoid potential race condition. Your comments are welcome. Please review. Thanks, Eddie Eddie Wai (4): BNX2I: Added the use of kthreads to handle SCSI cmd completion BNX2I: Modified to skip CNIC registration if iSCSI is not supported BNX2I: Changed the nopout_wqe-lun memcpy to use

[PATCH 1/4 v2] BNX2I: Added the use of kthreads to handle SCSI cmd completion

2011-06-23 Thread Eddie Wai
the following SCSI parameters: - can_queue from 1024 to 2048 - cmds_per_lun from 24 to 128 Signed-off-by: Eddie Wai eddie@broadcom.com Acked-by: Benjamin Li be...@broadcom.com Acked-by: Michael Chan mc...@broadcom.com --- drivers/scsi/bnx2i/bnx2i.h | 31 ++- drivers/scsi/bnx2i

  1   2   >