diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-11-15 10:59:03 (GMT) |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-15 10:59:03 (GMT) |
commit | 76a2d3bcfcc86e2a8044258515b86492a37631a3 (patch) | |
tree | f6363f3a6d48becbfe15320744cddc6d4bab30a6 /include/net/netfilter/nf_nat_core.h | |
parent | 0f8e80044b26b4b30213a3fdffebd325cdc21362 (diff) | |
download | linux-fsl-qoriq-76a2d3bcfcc86e2a8044258515b86492a37631a3.tar.xz |
netfilter: nf_nat: don't use atomic bit operation
As we own the conntrack and the others can't see it until we confirm it,
we don't need to use atomic bit operation on ct->status.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net/netfilter/nf_nat_core.h')
-rw-r--r-- | include/net/netfilter/nf_nat_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_nat_core.h b/include/net/netfilter/nf_nat_core.h index 33602ab..5aec85c 100644 --- a/include/net/netfilter/nf_nat_core.h +++ b/include/net/netfilter/nf_nat_core.h @@ -21,9 +21,9 @@ static inline int nf_nat_initialized(struct nf_conn *ct, enum nf_nat_manip_type manip) { if (manip == IP_NAT_MANIP_SRC) - return test_bit(IPS_SRC_NAT_DONE_BIT, &ct->status); + return ct->status & IPS_SRC_NAT_DONE_BIT; else - return test_bit(IPS_DST_NAT_DONE_BIT, &ct->status); + return ct->status & IPS_DST_NAT_DONE_BIT; } struct nlattr; |