aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_conntrack_core.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 3deeb900263b..d59640e2377b 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -563,7 +563,7 @@ static int early_drop(struct list_head *chain)
563 if (del_timer(&ct->timeout)) { 563 if (del_timer(&ct->timeout)) {
564 death_by_timeout((unsigned long)ct); 564 death_by_timeout((unsigned long)ct);
565 dropped = 1; 565 dropped = 1;
566 NF_CT_STAT_INC(early_drop); 566 NF_CT_STAT_INC_ATOMIC(early_drop);
567 } 567 }
568 nf_ct_put(ct); 568 nf_ct_put(ct);
569 return dropped; 569 return dropped;
@@ -821,7 +821,7 @@ nf_conntrack_in(int pf, unsigned int hooknum, struct sk_buff **pskb)
821 821
822 /* Previously seen (loopback or untracked)? Ignore. */ 822 /* Previously seen (loopback or untracked)? Ignore. */
823 if ((*pskb)->nfct) { 823 if ((*pskb)->nfct) {
824 NF_CT_STAT_INC(ignore); 824 NF_CT_STAT_INC_ATOMIC(ignore);
825 return NF_ACCEPT; 825 return NF_ACCEPT;
826 } 826 }
827 827
@@ -840,8 +840,8 @@ nf_conntrack_in(int pf, unsigned int hooknum, struct sk_buff **pskb)
840 * core what to do with the packet. */ 840 * core what to do with the packet. */
841 if (l4proto->error != NULL && 841 if (l4proto->error != NULL &&
842 (ret = l4proto->error(*pskb, dataoff, &ctinfo, pf, hooknum)) <= 0) { 842 (ret = l4proto->error(*pskb, dataoff, &ctinfo, pf, hooknum)) <= 0) {
843 NF_CT_STAT_INC(error); 843 NF_CT_STAT_INC_ATOMIC(error);
844 NF_CT_STAT_INC(invalid); 844 NF_CT_STAT_INC_ATOMIC(invalid);
845 return -ret; 845 return -ret;
846 } 846 }
847 847
@@ -849,13 +849,13 @@ nf_conntrack_in(int pf, unsigned int hooknum, struct sk_buff **pskb)
849 &set_reply, &ctinfo); 849 &set_reply, &ctinfo);
850 if (!ct) { 850 if (!ct) {
851 /* Not valid part of a connection */ 851 /* Not valid part of a connection */
852 NF_CT_STAT_INC(invalid); 852 NF_CT_STAT_INC_ATOMIC(invalid);
853 return NF_ACCEPT; 853 return NF_ACCEPT;
854 } 854 }
855 855
856 if (IS_ERR(ct)) { 856 if (IS_ERR(ct)) {
857 /* Too stressed to deal. */ 857 /* Too stressed to deal. */
858 NF_CT_STAT_INC(drop); 858 NF_CT_STAT_INC_ATOMIC(drop);
859 return NF_DROP; 859 return NF_DROP;
860 } 860 }
861 861
@@ -868,7 +868,7 @@ nf_conntrack_in(int pf, unsigned int hooknum, struct sk_buff **pskb)
868 DEBUGP("nf_conntrack_in: Can't track with proto module\n"); 868 DEBUGP("nf_conntrack_in: Can't track with proto module\n");
869 nf_conntrack_put((*pskb)->nfct); 869 nf_conntrack_put((*pskb)->nfct);
870 (*pskb)->nfct = NULL; 870 (*pskb)->nfct = NULL;
871 NF_CT_STAT_INC(invalid); 871 NF_CT_STAT_INC_ATOMIC(invalid);
872 return -ret; 872 return -ret;
873 } 873 }
874 874