aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_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/ib_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/ib_send.c')
-rw-r--r--net/rds/ib_send.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 63981cd1827a..95f15247acd7 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -76,7 +76,7 @@ static void rds_ib_send_unmap_rm(struct rds_ib_connection *ic,
76 rdsdebug("ic %p send %p rm %p\n", ic, send, rm); 76 rdsdebug("ic %p send %p rm %p\n", ic, send, rm);
77 77
78 ib_dma_unmap_sg(ic->i_cm_id->device, 78 ib_dma_unmap_sg(ic->i_cm_id->device,
79 rm->data.m_sg, rm->data.m_nents, 79 rm->data.op_sg, rm->data.op_nents,
80 DMA_TO_DEVICE); 80 DMA_TO_DEVICE);
81 81
82 if (rm->rdma.op_active) { 82 if (rm->rdma.op_active) {
@@ -513,20 +513,20 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
513 513
514 /* map the message the first time we see it */ 514 /* map the message the first time we see it */
515 if (!ic->i_rm) { 515 if (!ic->i_rm) {
516 if (rm->data.m_nents) { 516 if (rm->data.op_nents) {
517 rm->data.m_count = ib_dma_map_sg(dev, 517 rm->data.op_count = ib_dma_map_sg(dev,
518 rm->data.m_sg, 518 rm->data.op_sg,
519 rm->data.m_nents, 519 rm->data.op_nents,
520 DMA_TO_DEVICE); 520 DMA_TO_DEVICE);
521 rdsdebug("ic %p mapping rm %p: %d\n", ic, rm, rm->data.m_count); 521 rdsdebug("ic %p mapping rm %p: %d\n", ic, rm, rm->data.op_count);
522 if (rm->data.m_count == 0) { 522 if (rm->data.op_count == 0) {
523 rds_ib_stats_inc(s_ib_tx_sg_mapping_failure); 523 rds_ib_stats_inc(s_ib_tx_sg_mapping_failure);
524 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc); 524 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
525 ret = -ENOMEM; /* XXX ? */ 525 ret = -ENOMEM; /* XXX ? */
526 goto out; 526 goto out;
527 } 527 }
528 } else { 528 } else {
529 rm->data.m_count = 0; 529 rm->data.op_count = 0;
530 } 530 }
531 531
532 rds_message_addref(rm); 532 rds_message_addref(rm);
@@ -583,7 +583,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
583 send = &ic->i_sends[pos]; 583 send = &ic->i_sends[pos];
584 first = send; 584 first = send;
585 prev = NULL; 585 prev = NULL;
586 scat = &rm->data.m_sg[sg]; 586 scat = &rm->data.op_sg[sg];
587 i = 0; 587 i = 0;
588 do { 588 do {
589 unsigned int len = 0; 589 unsigned int len = 0;
@@ -604,7 +604,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
604 604
605 /* Set up the data, if present */ 605 /* Set up the data, if present */
606 if (i < work_alloc 606 if (i < work_alloc
607 && scat != &rm->data.m_sg[rm->data.m_count]) { 607 && scat != &rm->data.op_sg[rm->data.op_count]) {
608 len = min(RDS_FRAG_SIZE, ib_sg_dma_len(dev, scat) - off); 608 len = min(RDS_FRAG_SIZE, ib_sg_dma_len(dev, scat) - off);
609 send->s_wr.num_sge = 2; 609 send->s_wr.num_sge = 2;
610 610
@@ -649,7 +649,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
649 i++; 649 i++;
650 650
651 } while (i < work_alloc 651 } while (i < work_alloc
652 && scat != &rm->data.m_sg[rm->data.m_count]); 652 && scat != &rm->data.op_sg[rm->data.op_count]);
653 653
654 /* Account the RDS header in the number of bytes we sent, but just once. 654 /* Account the RDS header in the number of bytes we sent, but just once.
655 * The caller has no concept of fragmentation. */ 655 * The caller has no concept of fragmentation. */
@@ -657,7 +657,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
657 bytes_sent += sizeof(struct rds_header); 657 bytes_sent += sizeof(struct rds_header);
658 658
659 /* if we finished the message then send completion owns it */ 659 /* if we finished the message then send completion owns it */
660 if (scat == &rm->data.m_sg[rm->data.m_count]) { 660 if (scat == &rm->data.op_sg[rm->data.op_count]) {
661 prev->s_rm = ic->i_rm; 661 prev->s_rm = ic->i_rm;
662 prev->s_wr.send_flags |= IB_SEND_SOLICITED; 662 prev->s_wr.send_flags |= IB_SEND_SOLICITED;
663 ic->i_rm = NULL; 663 ic->i_rm = NULL;