mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
08e3baef65
commit
b45386efa2
8 changed files with 29 additions and 29 deletions
|
@ -915,11 +915,11 @@ static int ip_error(struct sk_buff *skb)
|
|||
if (!IN_DEV_FORWARD(in_dev)) {
|
||||
switch (rt->dst.error) {
|
||||
case EHOSTUNREACH:
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INADDRERRORS);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INADDRERRORS);
|
||||
break;
|
||||
|
||||
case ENETUNREACH:
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INNOROUTES);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INNOROUTES);
|
||||
break;
|
||||
}
|
||||
goto out;
|
||||
|
@ -934,7 +934,7 @@ static int ip_error(struct sk_buff *skb)
|
|||
break;
|
||||
case ENETUNREACH:
|
||||
code = ICMP_NET_UNREACH;
|
||||
IP_INC_STATS_BH(net, IPSTATS_MIB_INNOROUTES);
|
||||
__IP_INC_STATS(net, IPSTATS_MIB_INNOROUTES);
|
||||
break;
|
||||
case EACCES:
|
||||
code = ICMP_PKT_FILTERED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue