cnic: set error flag when iSCSI connection fails
Subsystems (2)
PATCH 1/2 cnic: set error flag when iSCSI connection fails
From: Jeffrey Huang <[email protected]>
to speed up error recovery due to SPQ failures. The error flag will expedite the recovery process by skipping the timeouts.
--- drivers/net/ethernet/broadcom/cnic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/ethernet/broadcom/cnic.c +2 -0
@@ -3927,6 +3927,8 @@ static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe)case L4_KCQE_OPCODE_VALUE_CONNECT_COMPLETE :if (l4kcqe->status ==0 )set_bit (SK_F_OFFLD_COMPLETE , &csk->flags); +else if (l4kcqe->status ==L4_KCQE_COMPLETION_STATUS_NIC_ERROR ) +set_bit (SK_F_HW_ERR , &csk->flags);smp_mb__before_clear_bit ();clear_bit (SK_F_OFFLD_SCHED , &csk->flags);
Signature · 1 line
1.6.4.GIT
PATCH 2/2 cnic: Update VLAN ID during ISCSI_UEVENT_PATH_UPDATE
From: Eddie Wai <[email protected]>
This will support the new VLAN attribute in the iSCSI iface file.
--- drivers/net/ethernet/broadcom/cnic.c | 2 ++ drivers/net/ethernet/broadcom/cnic_if.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/cnic.c +2 -0
@@ -380,6 +380,8 @@ static int cnic_iscsi_nl_msg_recv(struct cnic_dev *dev, u32 msg_type,if (cnic_in_use (csk) &&test_bit (SK_F_CONNECT_START , &csk->flags)) { + csk->vlan_id = path_resp->vlan_id; +memcpy (csk->ha, path_resp->mac_addr,6 );if (test_bit (SK_F_IPV6 , &csk->flags)) memcpy(&csk->src_ip[0], &path_resp->src.v6_addr,
drivers/net/ethernet/broadcom/cnic_if.h +2 -2
@@ -12,8 +12,8 @@#ifndef CNIC_IF_H #define CNIC_IF_H -#define CNIC_MODULE_VERSION "2.5.8" -#define CNIC_MODULE_RELDATE "Jan 3, 2012" +#define CNIC_MODULE_VERSION "2.5.9" +#define CNIC_MODULE_RELDATE "Feb 8, 2012"#define CNIC_ULP_RDMA 0#define CNIC_ULP_ISCSI 1
Signature · 1 line
1.6.4.GIT
From: "Michael Chan" <[email protected]>
Date: Wed, 8 Feb 2012 19:33:56 -0800
Quoted 7 lines
From: Jeffrey Huang <[email protected]>
to speed up error recovery due to SPQ failures. The error flag will expedite the recovery process by skipping the timeouts.
Signed-off-by Jeffrey Huang <[email protected]>Signed-off-by Michael Chan <[email protected]>
Applied.
Re: [PATCH 2/2 net-next] cnic: Update VLAN ID during ISCSI_UEVENT_PATH_UPDATE
In reply to Michael ChanFrom: "Michael Chan" <[email protected]>
Date: Wed, 8 Feb 2012 19:33:57 -0800
Quoted 6 lines
From: Eddie Wai <[email protected]>
This will support the new VLAN attribute in the iSCSI iface file.
Signed-off-by Eddie Wai <[email protected]>Signed-off-by Michael Chan <[email protected]>
Applied.