aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-03-14 00:26:42 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-14 22:41:36 -0400
commit57a7744e09867ebcfa0ccf1d6d529caa7728d552 (patch)
tree6407fee7138787a24bf9251abfeeae69a239028a /net/8021q
parent85dcce7a73f1cc59f7a96fe52713b1630f4ca272 (diff)
net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq
Replace the bh safe variant with the hard irq safe variant. We need a hard irq safe variant to deal with netpoll transmitting packets from hard irq context, and we need it in most if not all of the places using the bh safe variant. Except on 32bit uni-processor the code is exactly the same so don't bother with a bh variant, just have a hard irq safe variant that everyone can use. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
-rw-r--r--net/8021q/vlan_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index b38e715b1cd4..4f3e9073cb49 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -678,13 +678,13 @@ static struct rtnl_link_stats64 *vlan_dev_get_stats64(struct net_device *dev, st
678 678
679 p = per_cpu_ptr(vlan_dev_priv(dev)->vlan_pcpu_stats, i); 679 p = per_cpu_ptr(vlan_dev_priv(dev)->vlan_pcpu_stats, i);
680 do { 680 do {
681 start = u64_stats_fetch_begin_bh(&p->syncp); 681 start = u64_stats_fetch_begin_irq(&p->syncp);
682 rxpackets = p->rx_packets; 682 rxpackets = p->rx_packets;
683 rxbytes = p->rx_bytes; 683 rxbytes = p->rx_bytes;
684 rxmulticast = p->rx_multicast; 684 rxmulticast = p->rx_multicast;
685 txpackets = p->tx_packets; 685 txpackets = p->tx_packets;
686 txbytes = p->tx_bytes; 686 txbytes = p->tx_bytes;
687 } while (u64_stats_fetch_retry_bh(&p->syncp, start)); 687 } while (u64_stats_fetch_retry_irq(&p->syncp, start));
688 688
689 stats->rx_packets += rxpackets; 689 stats->rx_packets += rxpackets;
690 stats->rx_bytes += rxbytes; 690 stats->rx_bytes += rxbytes;