dccp: rename DCCP_INC_STATS_BH()
authorEric Dumazet <edumazet@google.com>
Wed, 27 Apr 2016 23:44:28 +0000 (16:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 02:48:22 +0000 (22:48 -0400)
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>
net/dccp/dccp.h
net/dccp/input.c
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/minisocks.c
net/dccp/options.c
net/dccp/timer.c

index b0e28d24e1a749ce1cfa7204a7cbdd201da8368f..a4c6e2fed91c950b90a11ca6cf44946ef51d98f6 100644 (file)
@@ -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
index 3bd14e8853969d8e69f1b67b6eaecd4cf16864e1..2437ecc13b82fb83f13f5280391d2d64470a471d 100644 (file)
@@ -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;
index f6d183f8f3322218fda743952ce3124d5f3b3e4f..4b78067669d6512b314eaa214259070544a668c4 100644 (file)
@@ -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);
index 8ceb3cebcad4b6510f04049813cf31a6a7530053..e175b8fe1a8771c90df3c06a326d216985667cbb 100644 (file)
@@ -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;
 }
 
index 1994f8af646b15fe668c01b207567f9016865c4f..53eddf99e4f6eb7f40f4a69359956e0d25803add 100644 (file)
@@ -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;
 }
index 9bce31886bda4e285d89e0f5d8d344956f01ce00..b82b7ee9a1d2dce6ab583a673e59a998c67d871f 100644 (file)
@@ -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);
index 3ef7acef3ce8c17f3a2e873b8178b7ee2f7cd619..4ff22c24ff1417be0f62b9abb43535706dfe65c1 100644 (file)
@@ -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) {
                /*