diff options
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index fd3646209b65..da0c97f2fab4 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -452,7 +452,7 @@ static void skb_release_head_state(struct sk_buff *skb) | |||
452 | WARN_ON(in_irq()); | 452 | WARN_ON(in_irq()); |
453 | skb->destructor(skb); | 453 | skb->destructor(skb); |
454 | } | 454 | } |
455 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | 455 | #if IS_ENABLED(CONFIG_NF_CONNTRACK) |
456 | nf_conntrack_put(skb->nfct); | 456 | nf_conntrack_put(skb->nfct); |
457 | #endif | 457 | #endif |
458 | #ifdef NET_SKBUFF_NF_DEFRAG_NEEDED | 458 | #ifdef NET_SKBUFF_NF_DEFRAG_NEEDED |
@@ -602,15 +602,14 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old) | |||
602 | new->ip_summed = old->ip_summed; | 602 | new->ip_summed = old->ip_summed; |
603 | skb_copy_queue_mapping(new, old); | 603 | skb_copy_queue_mapping(new, old); |
604 | new->priority = old->priority; | 604 | new->priority = old->priority; |
605 | #if defined(CONFIG_IP_VS) || defined(CONFIG_IP_VS_MODULE) | 605 | #if IS_ENABLED(CONFIG_IP_VS) |
606 | new->ipvs_property = old->ipvs_property; | 606 | new->ipvs_property = old->ipvs_property; |
607 | #endif | 607 | #endif |
608 | new->protocol = old->protocol; | 608 | new->protocol = old->protocol; |
609 | new->mark = old->mark; | 609 | new->mark = old->mark; |
610 | new->skb_iif = old->skb_iif; | 610 | new->skb_iif = old->skb_iif; |
611 | __nf_copy(new, old); | 611 | __nf_copy(new, old); |
612 | #if defined(CONFIG_NETFILTER_XT_TARGET_TRACE) || \ | 612 | #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) |
613 | defined(CONFIG_NETFILTER_XT_TARGET_TRACE_MODULE) | ||
614 | new->nf_trace = old->nf_trace; | 613 | new->nf_trace = old->nf_trace; |
615 | #endif | 614 | #endif |
616 | #ifdef CONFIG_NET_SCHED | 615 | #ifdef CONFIG_NET_SCHED |