From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2-resend 0/3] *** SUBJECT HERE *** Date: Tue, 7 Nov 2017 11:14:31 +0900 Message-ID: <20171107111431.0d812b77@shemminger-XPS-13-9360> References: <20171101220508.5be2176f@shemminger-XPS-13-9360> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: To: Thomas Egerer Return-path: Received: from mail-pf0-f169.google.com ([209.85.192.169]:54623 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932912AbdKGCPJ (ORCPT ); Mon, 6 Nov 2017 21:15:09 -0500 Received: by mail-pf0-f169.google.com with SMTP id n89so9174084pfk.11 for ; Mon, 06 Nov 2017 18:15:08 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2 Nov 2017 14:13:22 +0100 Thomas Egerer wrote: > Hello *, > > the following set of three patches tries deals with socket policies. > The first patch adresses the missing filter option for socket > polices. Especially when dealing with many of those, it is quite > cumbersome to filter them from the iproute2-output. So an option > to remove them from the output has been added. > Also when trying to deleteall policies iproute2 tries to delete > socket based policies, too. The result is an error message which > is misleading and unnecessary. So the second patch skips all > socket policies when deleteall-ing policies. > The third patch allow to deleteall policies and states even if > they have a mark. I'm not sure if the current behavior is > intended but if iproute2 finds a policy or state with a mark > it tries to delete the corresponding policy/state *without* > a mark. Also the result is an error and the policy/state is > not deleted. > Resend with modifications as requested by Stephen. > > Regards > Thomas > > Thomas Egerer (3): > xfrm_policy: Add filter option for socket policies > xfrm_policy: Do not attempt to deleteall a socket policy > xfrm_{state,policy}: Allow to deleteall polices/states with marks > > ip/xfrm.h | 1 + > ip/xfrm_policy.c | 22 +++++++++++++++++++++- > ip/xfrm_state.c | 13 +++++++++++++ > 3 files changed, 35 insertions(+), 1 deletion(-) > Applied.