aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_os.c
diff options
context:
space:
mode:
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>2013-07-08 08:33:07 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-08-23 13:37:05 -0400
commit845958029d82a5d987d460bfdd693e1067ff92ad (patch)
treea36bd2f6a1e3b6971af776911c5b816fdda67c0c /drivers/scsi/qla4xxx/ql4_os.c
parent65560166011cf551fa7c1781de242f17da4b3090 (diff)
[SCSI] qla4xxx: Set IPv6 traffic class if device type is IPv6.
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_os.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 362187003d9c..bfee27e5786b 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -2256,7 +2256,6 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess,
2256 fw_ddb_entry->mss = cpu_to_le16(conn->max_segment_size); 2256 fw_ddb_entry->mss = cpu_to_le16(conn->max_segment_size);
2257 fw_ddb_entry->tcp_xmt_wsf = (uint8_t) cpu_to_le32(conn->tcp_xmit_wsf); 2257 fw_ddb_entry->tcp_xmt_wsf = (uint8_t) cpu_to_le32(conn->tcp_xmit_wsf);
2258 fw_ddb_entry->tcp_rcv_wsf = (uint8_t) cpu_to_le32(conn->tcp_recv_wsf); 2258 fw_ddb_entry->tcp_rcv_wsf = (uint8_t) cpu_to_le32(conn->tcp_recv_wsf);
2259 fw_ddb_entry->ipv4_tos = conn->ipv4_tos;
2260 fw_ddb_entry->ipv6_flow_lbl = cpu_to_le16(conn->ipv6_flow_label); 2259 fw_ddb_entry->ipv6_flow_lbl = cpu_to_le16(conn->ipv6_flow_label);
2261 fw_ddb_entry->ka_timeout = cpu_to_le16(conn->keepalive_timeout); 2260 fw_ddb_entry->ka_timeout = cpu_to_le16(conn->keepalive_timeout);
2262 fw_ddb_entry->lcl_port = cpu_to_le16(conn->local_port); 2261 fw_ddb_entry->lcl_port = cpu_to_le16(conn->local_port);
@@ -2269,6 +2268,11 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess,
2269 fw_ddb_entry->def_timeout = 2268 fw_ddb_entry->def_timeout =
2270 cpu_to_le16(sess->default_taskmgmt_timeout); 2269 cpu_to_le16(sess->default_taskmgmt_timeout);
2271 2270
2271 if (!strncmp(sess->portal_type, PORTAL_TYPE_IPV6, 4))
2272 fw_ddb_entry->ipv4_tos = conn->ipv6_traffic_class;
2273 else
2274 fw_ddb_entry->ipv4_tos = conn->ipv4_tos;
2275
2272 if (conn->ipaddress) 2276 if (conn->ipaddress)
2273 memcpy(fw_ddb_entry->ip_addr, conn->ipaddress, 2277 memcpy(fw_ddb_entry->ip_addr, conn->ipaddress,
2274 sizeof(fw_ddb_entry->ip_addr)); 2278 sizeof(fw_ddb_entry->ip_addr));