Skip to contentSkip to conversation

net: sched: act_connmark: don't zap skb->nfct

PATCH Applied Florian Westphal 3 participants 3 messages Apr 28, 2015 – Apr 29, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sched: act_connmark: don't zap skb->nfct

This action is meant to be passive, i.e. we should not alter skb->nfct: If nfct is present just leave it alone.

Compile tested only.

---
shouldn't matter much in practice since this would be used in the ingress path where skb->nfct is NULL in non-lo case.

net/sched/act_connmark.c +0 -2
index 8e47251..295d14b 100644
@@ -63,7 +63,6 @@ static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a,
 		skb->mark = c->mark;
 		/* using overlimits stats to count how many packets marked */
 		ca->tcf_qstats.overlimits++;
-		nf_ct_put(c);
 		goto out;
 	}
 
@@ -82,7 +81,6 @@ static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a,
 	nf_ct_put(c);
 
 out:
-	skb->nfct = NULL;
 	spin_unlock(&ca->tcf_lock);
 	return ca->tcf_action;
 }
Signature · 1 line
2.0.5