Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/nxge/nxge_send.c
          +++ new/usr/src/uts/common/io/nxge/nxge_send.c
↓ open down ↓ 365 lines elided ↑ open up ↑
 366  366                                  /*
 367  367                                   * free the current mp and mp_chain if not FULL.
 368  368                                   */
 369  369                                  tdc_stats->tx_no_desc++;
 370  370                                  NXGE_DEBUG_MSG((nxgep, TX_CTL,
 371  371                                      "LSO packet: TX Descriptor ring is full: "
 372  372                                      "channel %d",
 373  373                                      tx_ring_p->tdc));
 374  374                                  goto nxge_start_fail_lso;
 375  375                          } else {
 376      -                                (void) cas32((uint32_t *)&tx_ring_p->queueing,
 377      -                                    0, 1);
      376 +                                (void) atomic_cas_32(
      377 +                                    (uint32_t *)&tx_ring_p->queueing, 0, 1);
 378  378                                  tdc_stats->tx_no_desc++;
 379  379  
 380  380                                  if (isLDOMservice(nxgep)) {
 381  381                                          tx_ring_p->tx_ring_busy = B_FALSE;
 382  382                                          if (tx_ring_p->tx_ring_offline) {
 383  383                                                  (void) atomic_swap_32(
 384  384                                                      &tx_ring_p->tx_ring_offline,
 385  385                                                      NXGE_TX_RING_OFFLINED);
 386  386                                          }
 387  387                                  }
↓ open down ↓ 1424 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX