forked from Minki/linux
dccp: rename DCCP_INC_STATS_BH()
Rename DCCP_INC_STATS_BH() to __DCCP_INC_STATS() Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6aef70a851
commit
aa62d76b6e
@ -198,9 +198,9 @@ struct dccp_mib {
|
||||
};
|
||||
|
||||
DECLARE_SNMP_STAT(struct dccp_mib, dccp_statistics);
|
||||
#define DCCP_INC_STATS(field) SNMP_INC_STATS(dccp_statistics, field)
|
||||
#define DCCP_INC_STATS_BH(field) SNMP_INC_STATS_BH(dccp_statistics, field)
|
||||
#define DCCP_DEC_STATS(field) SNMP_DEC_STATS(dccp_statistics, field)
|
||||
#define DCCP_INC_STATS(field) SNMP_INC_STATS(dccp_statistics, field)
|
||||
#define __DCCP_INC_STATS(field) SNMP_INC_STATS_BH(dccp_statistics, field)
|
||||
#define DCCP_DEC_STATS(field) SNMP_DEC_STATS(dccp_statistics, field)
|
||||
|
||||
/*
|
||||
* Checksumming routines
|
||||
|
@ -359,7 +359,7 @@ send_sync:
|
||||
goto discard;
|
||||
}
|
||||
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_INERRS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_INERRS);
|
||||
discard:
|
||||
__kfree_skb(skb);
|
||||
return 0;
|
||||
|
@ -318,7 +318,7 @@ static void dccp_v4_err(struct sk_buff *skb, u32 info)
|
||||
case DCCP_REQUESTING:
|
||||
case DCCP_RESPOND:
|
||||
if (!sock_owned_by_user(sk)) {
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_ATTEMPTFAILS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_ATTEMPTFAILS);
|
||||
sk->sk_err = err;
|
||||
|
||||
sk->sk_error_report(sk);
|
||||
@ -533,8 +533,8 @@ static void dccp_v4_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb)
|
||||
bh_unlock_sock(ctl_sk);
|
||||
|
||||
if (net_xmit_eval(err) == 0) {
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_OUTSEGS);
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_OUTRSTS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_OUTSEGS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_OUTRSTS);
|
||||
}
|
||||
out:
|
||||
dst_release(dst);
|
||||
@ -637,7 +637,7 @@ int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
|
||||
drop_and_free:
|
||||
reqsk_free(req);
|
||||
drop:
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_ATTEMPTFAILS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_ATTEMPTFAILS);
|
||||
return -1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dccp_v4_conn_request);
|
||||
|
@ -156,7 +156,7 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
||||
case DCCP_RESPOND: /* Cannot happen.
|
||||
It can, it SYNs are crossed. --ANK */
|
||||
if (!sock_owned_by_user(sk)) {
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_ATTEMPTFAILS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_ATTEMPTFAILS);
|
||||
sk->sk_err = err;
|
||||
/*
|
||||
* Wake people up to see the error
|
||||
@ -277,8 +277,8 @@ static void dccp_v6_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb)
|
||||
if (!IS_ERR(dst)) {
|
||||
skb_dst_set(skb, dst);
|
||||
ip6_xmit(ctl_sk, skb, &fl6, NULL, 0);
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_OUTSEGS);
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_OUTRSTS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_OUTSEGS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_OUTRSTS);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -378,7 +378,7 @@ static int dccp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
|
||||
drop_and_free:
|
||||
reqsk_free(req);
|
||||
drop:
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_ATTEMPTFAILS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_ATTEMPTFAILS);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ struct sock *dccp_create_openreq_child(const struct sock *sk,
|
||||
}
|
||||
dccp_init_xmit_timers(newsk);
|
||||
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_PASSIVEOPENS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_PASSIVEOPENS);
|
||||
}
|
||||
return newsk;
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ out_nonsensical_length:
|
||||
return 0;
|
||||
|
||||
out_invalid_option:
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_INVALIDOPT);
|
||||
__DCCP_INC_STATS(DCCP_MIB_INVALIDOPT);
|
||||
rc = DCCP_RESET_CODE_OPTION_ERROR;
|
||||
out_featneg_failed:
|
||||
DCCP_WARN("DCCP(%p): Option %d (len=%d) error=%u\n", sk, opt, len, rc);
|
||||
|
@ -28,7 +28,7 @@ static void dccp_write_err(struct sock *sk)
|
||||
|
||||
dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED);
|
||||
dccp_done(sk);
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_ABORTONTIMEOUT);
|
||||
__DCCP_INC_STATS(DCCP_MIB_ABORTONTIMEOUT);
|
||||
}
|
||||
|
||||
/* A write timeout has occurred. Process the after effects. */
|
||||
@ -100,7 +100,7 @@ static void dccp_retransmit_timer(struct sock *sk)
|
||||
* total number of retransmissions of clones of original packets.
|
||||
*/
|
||||
if (icsk->icsk_retransmits == 0)
|
||||
DCCP_INC_STATS_BH(DCCP_MIB_TIMEOUTS);
|
||||
__DCCP_INC_STATS(DCCP_MIB_TIMEOUTS);
|
||||
|
||||
if (dccp_retransmit_skb(sk) != 0) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user