net: rename IP_INC_STATS_BH()
Rename IP_INC_STATS_BH() to __IP_INC_STATS(), to better express this is used in non preemptible context. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
08e3baef65
commit
b45386efa2
@@ -217,13 +217,13 @@ static int br_validate_ipv4(struct net *net, struct sk_buff *skb)
|
||||
|
||||
len = ntohs(iph->tot_len);
|
||||
if (skb->len < len) {
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INTRUNCATEDPKTS);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INTRUNCATEDPKTS);
|
||||
goto drop;
|
||||
} else if (len < (iph->ihl*4))
|
||||
goto inhdr_error;
|
||||
|
||||
if (pskb_trim_rcsum(skb, len)) {
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INDISCARDS);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INDISCARDS);
|
||||
goto drop;
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ static int br_validate_ipv4(struct net *net, struct sk_buff *skb)
|
||||
return 0;
|
||||
|
||||
inhdr_error:
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INHDRERRORS);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INHDRERRORS);
|
||||
drop:
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user