| .. | .. |
|---|
| 1452 | 1452 | static int fcoe_alloc_paged_crc_eof(struct sk_buff *skb, int tlen) |
|---|
| 1453 | 1453 | { |
|---|
| 1454 | 1454 | struct fcoe_percpu_s *fps; |
|---|
| 1455 | | - int rc, cpu = get_cpu_light(); |
|---|
| 1455 | + int rc; |
|---|
| 1456 | 1456 | |
|---|
| 1457 | | - fps = &per_cpu(fcoe_percpu, cpu); |
|---|
| 1457 | + fps = &get_cpu_var(fcoe_percpu); |
|---|
| 1458 | 1458 | rc = fcoe_get_paged_crc_eof(skb, tlen, fps); |
|---|
| 1459 | | - put_cpu_light(); |
|---|
| 1459 | + put_cpu_var(fcoe_percpu); |
|---|
| 1460 | 1460 | |
|---|
| 1461 | 1461 | return rc; |
|---|
| 1462 | 1462 | } |
|---|
| .. | .. |
|---|
| 1641 | 1641 | return 0; |
|---|
| 1642 | 1642 | } |
|---|
| 1643 | 1643 | |
|---|
| 1644 | | - stats = per_cpu_ptr(lport->stats, get_cpu_light()); |
|---|
| 1644 | + stats = per_cpu_ptr(lport->stats, get_cpu()); |
|---|
| 1645 | 1645 | stats->InvalidCRCCount++; |
|---|
| 1646 | 1646 | if (stats->InvalidCRCCount < 5) |
|---|
| 1647 | 1647 | printk(KERN_WARNING "fcoe: dropping frame with CRC error\n"); |
|---|
| 1648 | | - put_cpu_light(); |
|---|
| 1648 | + put_cpu(); |
|---|
| 1649 | 1649 | return -EINVAL; |
|---|
| 1650 | 1650 | } |
|---|
| 1651 | 1651 | |
|---|
| .. | .. |
|---|
| 1686 | 1686 | */ |
|---|
| 1687 | 1687 | hp = (struct fcoe_hdr *) skb_network_header(skb); |
|---|
| 1688 | 1688 | |
|---|
| 1689 | | - stats = per_cpu_ptr(lport->stats, get_cpu_light()); |
|---|
| 1689 | + stats = per_cpu_ptr(lport->stats, get_cpu()); |
|---|
| 1690 | 1690 | if (unlikely(FC_FCOE_DECAPS_VER(hp) != FC_FCOE_VER)) { |
|---|
| 1691 | 1691 | if (stats->ErrorFrames < 5) |
|---|
| 1692 | 1692 | printk(KERN_WARNING "fcoe: FCoE version " |
|---|
| .. | .. |
|---|
| 1718 | 1718 | goto drop; |
|---|
| 1719 | 1719 | |
|---|
| 1720 | 1720 | if (!fcoe_filter_frames(lport, fp)) { |
|---|
| 1721 | | - put_cpu_light(); |
|---|
| 1721 | + put_cpu(); |
|---|
| 1722 | 1722 | fc_exch_recv(lport, fp); |
|---|
| 1723 | 1723 | return; |
|---|
| 1724 | 1724 | } |
|---|
| 1725 | 1725 | drop: |
|---|
| 1726 | 1726 | stats->ErrorFrames++; |
|---|
| 1727 | | - put_cpu_light(); |
|---|
| 1727 | + put_cpu(); |
|---|
| 1728 | 1728 | kfree_skb(skb); |
|---|
| 1729 | 1729 | } |
|---|
| 1730 | 1730 | |
|---|