diff options
author | Eric Dumazet <edumazet@google.com> | 2016-04-27 19:44:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-27 22:48:24 -0400 |
commit | 98f619957ec2717fea09b398957e130e4bf4b30c (patch) | |
tree | f0317393f77c5fd8290561dccfbaf4e73a952380 /net | |
parent | a16292a0f0e0cef40ed51685dfde12b3002959b5 (diff) |
net: rename IP_ADD_STATS_BH()
Rename IP_ADD_STATS_BH() to __IP_ADD_STATS()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_forward.c | 2 | ||||
-rw-r--r-- | net/ipv4/ip_input.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 42fbd59b0ba8..cbfb1808fcc4 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c | |||
@@ -66,7 +66,7 @@ static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *s | |||
66 | struct ip_options *opt = &(IPCB(skb)->opt); | 66 | struct ip_options *opt = &(IPCB(skb)->opt); |
67 | 67 | ||
68 | __IP_INC_STATS(net, IPSTATS_MIB_OUTFORWDATAGRAMS); | 68 | __IP_INC_STATS(net, IPSTATS_MIB_OUTFORWDATAGRAMS); |
69 | IP_ADD_STATS_BH(net, IPSTATS_MIB_OUTOCTETS, skb->len); | 69 | __IP_ADD_STATS(net, IPSTATS_MIB_OUTOCTETS, skb->len); |
70 | 70 | ||
71 | if (unlikely(opt->optlen)) | 71 | if (unlikely(opt->optlen)) |
72 | ip_forward_options(skb); | 72 | ip_forward_options(skb); |
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index cca6729cd6ee..11f34e421270 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -439,9 +439,9 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, | |||
439 | BUILD_BUG_ON(IPSTATS_MIB_ECT1PKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_ECT_1); | 439 | BUILD_BUG_ON(IPSTATS_MIB_ECT1PKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_ECT_1); |
440 | BUILD_BUG_ON(IPSTATS_MIB_ECT0PKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_ECT_0); | 440 | BUILD_BUG_ON(IPSTATS_MIB_ECT0PKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_ECT_0); |
441 | BUILD_BUG_ON(IPSTATS_MIB_CEPKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_CE); | 441 | BUILD_BUG_ON(IPSTATS_MIB_CEPKTS != IPSTATS_MIB_NOECTPKTS + INET_ECN_CE); |
442 | IP_ADD_STATS_BH(net, | 442 | __IP_ADD_STATS(net, |
443 | IPSTATS_MIB_NOECTPKTS + (iph->tos & INET_ECN_MASK), | 443 | IPSTATS_MIB_NOECTPKTS + (iph->tos & INET_ECN_MASK), |
444 | max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs)); | 444 | max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs)); |
445 | 445 | ||
446 | if (!pskb_may_pull(skb, iph->ihl*4)) | 446 | if (!pskb_may_pull(skb, iph->ihl*4)) |
447 | goto inhdr_error; | 447 | goto inhdr_error; |