Message ID | 1266966484-1750-1-git-send-email-hadi@cyberus.ca |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: jamal <hadi@cyberus.ca> Date: Tue, 23 Feb 2010 18:08:04 -0500 > From: Jamal Hadi Salim <hadi@cyberus.ca> > > When we clone the SP, we should also clone the mark. > Useful for socket based SPs. > > Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 2a6e646..34a5ef8 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1154,6 +1154,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir) } newp->lft = old->lft; newp->curlft = old->curlft; + newp->mark = old->mark; newp->action = old->action; newp->flags = old->flags; newp->xfrm_nr = old->xfrm_nr;