aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgb3i/cxgb3i_ddp.c
diff options
context:
space:
mode:
authorKaren Xie <kxie@chelsio.com>2010-06-16 20:10:37 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:02:04 -0400
commit593d5720745658a4a973952fb74f6d863c531e97 (patch)
tree0f031c21238e50ef2bc7dcd70467fd8424fdde56 /drivers/scsi/cxgb3i/cxgb3i_ddp.c
parentcba3d38b6cf85bd91b7c6f65f43863d1fd19259c (diff)
[SCSI] cxgb3i: zero out reserved or un-used fields.
Zero out the reserved or un-used CPL message fields to prevent any garbage value. Signed-off-by: Karen Xie <kxie@chelsio.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/cxgb3i/cxgb3i_ddp.c')
-rw-r--r--drivers/scsi/cxgb3i/cxgb3i_ddp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_ddp.c b/drivers/scsi/cxgb3i/cxgb3i_ddp.c
index b58d9134ac1..be0e23042c7 100644
--- a/drivers/scsi/cxgb3i/cxgb3i_ddp.c
+++ b/drivers/scsi/cxgb3i/cxgb3i_ddp.c
@@ -499,6 +499,7 @@ static int setup_conn_pgidx(struct t3cdev *tdev, unsigned int tid, int pg_idx,
499 /* set up ulp submode and page size */ 499 /* set up ulp submode and page size */
500 req = (struct cpl_set_tcb_field *)skb_put(skb, sizeof(*req)); 500 req = (struct cpl_set_tcb_field *)skb_put(skb, sizeof(*req));
501 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); 501 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD));
502 req->wr.wr_lo = 0;
502 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); 503 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid));
503 req->reply = V_NO_REPLY(reply ? 0 : 1); 504 req->reply = V_NO_REPLY(reply ? 0 : 1);
504 req->cpu_idx = 0; 505 req->cpu_idx = 0;
@@ -564,6 +565,7 @@ int cxgb3i_setup_conn_digest(struct t3cdev *tdev, unsigned int tid,
564 /* set up ulp submode and page size */ 565 /* set up ulp submode and page size */
565 req = (struct cpl_set_tcb_field *)skb_put(skb, sizeof(*req)); 566 req = (struct cpl_set_tcb_field *)skb_put(skb, sizeof(*req));
566 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); 567 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD));
568 req->wr.wr_lo = 0;
567 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); 569 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid));
568 req->reply = V_NO_REPLY(reply ? 0 : 1); 570 req->reply = V_NO_REPLY(reply ? 0 : 1);
569 req->cpu_idx = 0; 571 req->cpu_idx = 0;