[PATCH RFC ipsec-next] xfrm: Check Reverse-Mark Lookup Before ADDSA/DELSA

2018-07-25 Thread Nathan Harold
k, bits outside the mask of a given SA mark will be ignored, and the match will succeed. This patch does not make any changes to the 'data' path, so SAs with such oddly-defined marks will still be unmatch-able. Signed-off-by: Nathan Harold --- n

[PATCH ipsec-next] xfrm: Allow xfrmi if_id to be updated by UPDSA

2018-07-19 Thread Nathan Harold
) allocation of a SPI 2) algorithm and key negotiation 3) insertion into the data path Signed-off-by: Nathan Harold --- net/xfrm/xfrm_state.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 27c84e63c7ff..c4c563d9be47 100644

Re: [PATCH ipsec-next] xfrm: Allow Set Mark to be Updated Using UPDSA

2018-07-16 Thread Nathan Harold
is settled, I plan to upload a patch to update the xfrm_if_id, which I planned to nestle in to this same logic (and with similar, albeit possibly more-straightforward rationale). -Nathan On Mon, Jul 2, 2018 at 10:14 PM, Eyal Birger wrote: > Hi Nathan, > > On Fri, 29 Jun 2018 15:07

[PATCH ipsec-next] xfrm: Allow Set Mark to be Updated Using UPDSA

2018-06-29 Thread Nathan Harold
r. Signed-off-by: Nathan Harold Change-Id: Ia05c6733a94c1901cd1e54eb7c7e237704678d71 --- net/xfrm/xfrm_state.c | 9 + 1 file changed, 9 insertions(+) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index e04a510ec992..c9ffcdfa89f6 100644 --- a/net/xfrm/xfrm_state.c +++

[PATCH] iproute2: fix 'ip xfrm monitor all' command

2018-05-30 Thread Nathan Harold
nvoking 'ip xfrm monitor' with no argument, can be called consistent with the syntax for other ip commands that accept an 'all'. Signed-off-by: Nathan Harold --- ip/xfrm_monitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ip/xfrm_monitor.c b/ip/

Re: [PATCH ipsec-next] xfrm: Allow Output Mark to be Updated Using UPDSA

2018-05-10 Thread Nathan Harold
ot;unused" state while the SA remains ACTIVE, so I think simpler is better (same reasoning applied to the current change). -Nathan On Wed, May 9, 2018 at 10:44 PM, Eyal Birger wrote: > Hi Nathan, > > On Wed, 9 May 2018 13:46:26 -0700 > Nathan Harold wrote: > >> Allow UP

[PATCH ipsec-next] xfrm: Allow Output Mark to be Updated Using UPDSA

2018-05-09 Thread Nathan Harold
clobbered. The per-SA lock and the xfrm_state_lock are taken in that order to avoid a deadlock with xfrm_timer_handler(), which also takes the locks in that order. Signed-off-by: Nathan Harold Change-Id: Ia05c6733a94c1901cd1e54eb7c7e237704678d71 --- net/xfrm/xfrm_state.c | 7 +++ 1 file