* [net-next-2.6 PATCH 1/1] xfrm: clone mark when cloning policy
[not found] <sk-mark-clone>
@ 2010-02-23 23:08 ` jamal
2010-02-23 23:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: jamal @ 2010-02-23 23:08 UTC (permalink / raw)
To: davem; +Cc: netdev, Jamal Hadi Salim
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>
---
net/xfrm/xfrm_policy.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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;
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next-2.6 PATCH 1/1] xfrm: clone mark when cloning policy
2010-02-23 23:08 ` [net-next-2.6 PATCH 1/1] xfrm: clone mark when cloning policy jamal
@ 2010-02-23 23:10 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-02-23 23:10 UTC (permalink / raw)
To: hadi; +Cc: netdev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-23 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <sk-mark-clone>
2010-02-23 23:08 ` [net-next-2.6 PATCH 1/1] xfrm: clone mark when cloning policy jamal
2010-02-23 23:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).