From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH 0/3] Allow 'ip rule' command to use protocol Date: Sat, 17 Feb 2018 16:35:20 -0700 Message-ID: <97fd7a4e-76ee-722b-6a58-92c30b1264ae@cumulusnetworks.com> References: <20180217124753.2879-1-sharpd@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Donald Sharp , netdev@vger.kernel.org Return-path: Received: from mail-io0-f196.google.com ([209.85.223.196]:36792 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbeBQXfE (ORCPT ); Sat, 17 Feb 2018 18:35:04 -0500 Received: by mail-io0-f196.google.com with SMTP id t22so7835755iob.3 for ; Sat, 17 Feb 2018 15:35:03 -0800 (PST) In-Reply-To: <20180217124753.2879-1-sharpd@cumulusnetworks.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2/17/18 5:47 AM, Donald Sharp wrote: > Fix iprule.c to use the actual `struct fib_rule_hdr` and to > allow the end user to see and use the protocol keyword > for rule manipulations. > > Donald Sharp (3): > ip: Use the `struct fib_rule_hdr` for rules > ip: Display ip rule protocol used > ip: Allow rules to accept a specified protocol > > include/linux/fib_rules.h | 2 +- > ip/iprule.c | 114 ++++++++++++++++++++++++++-------------------- > 2 files changed, 65 insertions(+), 51 deletions(-) > you are missing a patch to add protocol to iprule_list_flush_or_save so 'ip ru flush proto NAME' flushes all rules with that protocol.