Print this page
8368 remove warlock leftovers from usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/clients/rdsv3/ib_send.c
          +++ new/usr/src/uts/common/io/ib/clients/rdsv3/ib_send.c
↓ open down ↓ 247 lines elided ↑ open up ↑
 248  248                          break;
 249  249                  case IBT_WRC_RDMAW:
 250  250                  case IBT_WRC_RDMAR:
 251  251                          /*
 252  252                           * Nothing to be done - the SG list will
 253  253                           * be unmapped
 254  254                           * when the SEND completes.
 255  255                           */
 256  256                          break;
 257  257                  default:
 258      -#ifndef __lock_lint
 259  258                          RDSV3_DPRINTF2("rdsv3_ib_send_cq_comp_handler",
 260  259                              "RDS/IB: %s: unexpected opcode "
 261  260                              "0x%x in WR!",
 262  261                              __func__, send->s_opcode);
 263      -#endif
 264  262                          break;
 265  263                  }
 266  264  
 267  265                  send->s_opcode = 0xdd;
 268  266                  if (send->s_queued + HZ/2 < jiffies)
 269  267                          rdsv3_ib_stats_inc(s_ib_tx_stalled);
 270  268  
 271  269                  /*
 272  270                   * If a RDMA operation produced an error, signal
 273  271                   * this right
↓ open down ↓ 306 lines elided ↑ open up ↑
 580  578          ASSERT(!(off % RDSV3_FRAG_SIZE));
 581  579          ASSERT(!(hdr_off != 0 && hdr_off != sizeof (struct rdsv3_header)));
 582  580  
 583  581          /* Do not send cong updates to IB loopback */
 584  582          if (conn->c_loopback &&
 585  583              rm->m_inc.i_hdr.h_flags & RDSV3_FLAG_CONG_BITMAP) {
 586  584                  rdsv3_cong_map_updated(conn->c_fcong, ~(uint64_t)0);
 587  585                  return (sizeof (struct rdsv3_header) + RDSV3_CONG_MAP_BYTES);
 588  586          }
 589  587  
 590      -#ifndef __lock_lint
 591  588          /* FIXME we may overallocate here */
 592  589          if (ntohl(rm->m_inc.i_hdr.h_len) == 0)
 593  590                  i = 1;
 594  591          else
 595  592                  i = ceil(ntohl(rm->m_inc.i_hdr.h_len), RDSV3_FRAG_SIZE);
 596      -#endif
 597  593  
 598  594          work_alloc = rdsv3_ib_ring_alloc(&ic->i_send_ring, i, &pos);
 599  595          if (work_alloc != i) {
 600  596                  rdsv3_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
 601  597                  set_bit(RDSV3_LL_SEND_FULL, &conn->c_flags);
 602  598                  rdsv3_ib_stats_inc(s_ib_tx_ring_full);
 603  599                  ret = -ENOMEM;
 604  600                  goto out;
 605  601          }
 606  602  
↓ open down ↓ 515 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX