diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b6cced304b26..262efdbc346b 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -156,7 +156,7 @@ struct nf_conntrack { | |||
156 | }; | 156 | }; |
157 | #endif | 157 | #endif |
158 | 158 | ||
159 | #ifdef CONFIG_BRIDGE_NETFILTER | 159 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
160 | struct nf_bridge_info { | 160 | struct nf_bridge_info { |
161 | atomic_t use; | 161 | atomic_t use; |
162 | unsigned int mask; | 162 | unsigned int mask; |
@@ -534,7 +534,7 @@ struct sk_buff { | |||
534 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | 534 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) |
535 | struct nf_conntrack *nfct; | 535 | struct nf_conntrack *nfct; |
536 | #endif | 536 | #endif |
537 | #ifdef CONFIG_BRIDGE_NETFILTER | 537 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
538 | struct nf_bridge_info *nf_bridge; | 538 | struct nf_bridge_info *nf_bridge; |
539 | #endif | 539 | #endif |
540 | unsigned int len, | 540 | unsigned int len, |
@@ -556,8 +556,6 @@ struct sk_buff { | |||
556 | /* one bit hole */ | 556 | /* one bit hole */ |
557 | kmemcheck_bitfield_end(flags1); | 557 | kmemcheck_bitfield_end(flags1); |
558 | 558 | ||
559 | |||
560 | |||
561 | /* fields enclosed in headers_start/headers_end are copied | 559 | /* fields enclosed in headers_start/headers_end are copied |
562 | * using a single memcpy() in __copy_skb_header() | 560 | * using a single memcpy() in __copy_skb_header() |
563 | */ | 561 | */ |
@@ -3016,7 +3014,7 @@ static inline void nf_conntrack_get(struct nf_conntrack *nfct) | |||
3016 | atomic_inc(&nfct->use); | 3014 | atomic_inc(&nfct->use); |
3017 | } | 3015 | } |
3018 | #endif | 3016 | #endif |
3019 | #ifdef CONFIG_BRIDGE_NETFILTER | 3017 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
3020 | static inline void nf_bridge_put(struct nf_bridge_info *nf_bridge) | 3018 | static inline void nf_bridge_put(struct nf_bridge_info *nf_bridge) |
3021 | { | 3019 | { |
3022 | if (nf_bridge && atomic_dec_and_test(&nf_bridge->use)) | 3020 | if (nf_bridge && atomic_dec_and_test(&nf_bridge->use)) |
@@ -3034,7 +3032,7 @@ static inline void nf_reset(struct sk_buff *skb) | |||
3034 | nf_conntrack_put(skb->nfct); | 3032 | nf_conntrack_put(skb->nfct); |
3035 | skb->nfct = NULL; | 3033 | skb->nfct = NULL; |
3036 | #endif | 3034 | #endif |
3037 | #ifdef CONFIG_BRIDGE_NETFILTER | 3035 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
3038 | nf_bridge_put(skb->nf_bridge); | 3036 | nf_bridge_put(skb->nf_bridge); |
3039 | skb->nf_bridge = NULL; | 3037 | skb->nf_bridge = NULL; |
3040 | #endif | 3038 | #endif |
@@ -3057,7 +3055,7 @@ static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src, | |||
3057 | if (copy) | 3055 | if (copy) |
3058 | dst->nfctinfo = src->nfctinfo; | 3056 | dst->nfctinfo = src->nfctinfo; |
3059 | #endif | 3057 | #endif |
3060 | #ifdef CONFIG_BRIDGE_NETFILTER | 3058 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
3061 | dst->nf_bridge = src->nf_bridge; | 3059 | dst->nf_bridge = src->nf_bridge; |
3062 | nf_bridge_get(src->nf_bridge); | 3060 | nf_bridge_get(src->nf_bridge); |
3063 | #endif | 3061 | #endif |
@@ -3072,7 +3070,7 @@ static inline void nf_copy(struct sk_buff *dst, const struct sk_buff *src) | |||
3072 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | 3070 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) |
3073 | nf_conntrack_put(dst->nfct); | 3071 | nf_conntrack_put(dst->nfct); |
3074 | #endif | 3072 | #endif |
3075 | #ifdef CONFIG_BRIDGE_NETFILTER | 3073 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
3076 | nf_bridge_put(dst->nf_bridge); | 3074 | nf_bridge_put(dst->nf_bridge); |
3077 | #endif | 3075 | #endif |
3078 | __nf_copy(dst, src, true); | 3076 | __nf_copy(dst, src, true); |