aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/iw_send.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-01-27 21:04:18 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:11:59 -0400
commit6c7cc6e4694dc464ae884332f2a322973497e3cf (patch)
tree9af8e2e0874ce78f9a500e22a79f9274f5efe0fd /net/rds/iw_send.c
parentf8b3aaf2ba8ca9e27b47f8bfdff07c8b968f2c05 (diff)
RDS: Rename data op members prefix from m_ to op_
For consistency. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds/iw_send.c')
-rw-r--r--net/rds/iw_send.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/rds/iw_send.c b/net/rds/iw_send.c
index 05ebf16ecad7..6280ea020d4e 100644
--- a/net/rds/iw_send.c
+++ b/net/rds/iw_send.c
@@ -82,7 +82,7 @@ static void rds_iw_send_unmap_rm(struct rds_iw_connection *ic,
82 rdsdebug("ic %p send %p rm %p\n", ic, send, rm); 82 rdsdebug("ic %p send %p rm %p\n", ic, send, rm);
83 83
84 ib_dma_unmap_sg(ic->i_cm_id->device, 84 ib_dma_unmap_sg(ic->i_cm_id->device,
85 rm->data.m_sg, rm->data.m_nents, 85 rm->data.op_sg, rm->data.op_nents,
86 DMA_TO_DEVICE); 86 DMA_TO_DEVICE);
87 87
88 if (rm->rdma.op_active) { 88 if (rm->rdma.op_active) {
@@ -562,20 +562,20 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm,
562 rm->m_inc.i_hdr.h_flags, 562 rm->m_inc.i_hdr.h_flags,
563 be32_to_cpu(rm->m_inc.i_hdr.h_len)); 563 be32_to_cpu(rm->m_inc.i_hdr.h_len));
564 */ 564 */
565 if (rm->data.m_nents) { 565 if (rm->data.op_nents) {
566 rm->data.m_count = ib_dma_map_sg(dev, 566 rm->data.op_count = ib_dma_map_sg(dev,
567 rm->data.m_sg, 567 rm->data.op_sg,
568 rm->data.m_nents, 568 rm->data.op_nents,
569 DMA_TO_DEVICE); 569 DMA_TO_DEVICE);
570 rdsdebug("ic %p mapping rm %p: %d\n", ic, rm, rm->data.m_count); 570 rdsdebug("ic %p mapping rm %p: %d\n", ic, rm, rm->data.op_count);
571 if (rm->data.m_count == 0) { 571 if (rm->data.op_count == 0) {
572 rds_iw_stats_inc(s_iw_tx_sg_mapping_failure); 572 rds_iw_stats_inc(s_iw_tx_sg_mapping_failure);
573 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); 573 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc);
574 ret = -ENOMEM; /* XXX ? */ 574 ret = -ENOMEM; /* XXX ? */
575 goto out; 575 goto out;
576 } 576 }
577 } else { 577 } else {
578 rm->data.m_count = 0; 578 rm->data.op_count = 0;
579 } 579 }
580 580
581 ic->i_unsignaled_wrs = rds_iw_sysctl_max_unsig_wrs; 581 ic->i_unsignaled_wrs = rds_iw_sysctl_max_unsig_wrs;
@@ -622,7 +622,7 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm,
622 send = &ic->i_sends[pos]; 622 send = &ic->i_sends[pos];
623 first = send; 623 first = send;
624 prev = NULL; 624 prev = NULL;
625 scat = &rm->data.m_sg[sg]; 625 scat = &rm->data.op_sg[sg];
626 sent = 0; 626 sent = 0;
627 i = 0; 627 i = 0;
628 628
@@ -651,7 +651,7 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm,
651 } 651 }
652 652
653 /* if there's data reference it with a chain of work reqs */ 653 /* if there's data reference it with a chain of work reqs */
654 for (; i < work_alloc && scat != &rm->data.m_sg[rm->data.m_count]; i++) { 654 for (; i < work_alloc && scat != &rm->data.op_sg[rm->data.op_count]; i++) {
655 unsigned int len; 655 unsigned int len;
656 656
657 send = &ic->i_sends[pos]; 657 send = &ic->i_sends[pos];
@@ -729,7 +729,7 @@ add_header:
729 sent += sizeof(struct rds_header); 729 sent += sizeof(struct rds_header);
730 730
731 /* if we finished the message then send completion owns it */ 731 /* if we finished the message then send completion owns it */
732 if (scat == &rm->data.m_sg[rm->data.m_count]) { 732 if (scat == &rm->data.op_sg[rm->data.op_count]) {
733 prev->s_rm = ic->i_rm; 733 prev->s_rm = ic->i_rm;
734 prev->s_wr.send_flags |= IB_SEND_SIGNALED | IB_SEND_SOLICITED; 734 prev->s_wr.send_flags |= IB_SEND_SIGNALED | IB_SEND_SOLICITED;
735 ic->i_rm = NULL; 735 ic->i_rm = NULL;