Return-Path: Received: from mail-pg0-f66.google.com ([74.125.83.66]:35893 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965663AbeCADq4 (ORCPT ); Wed, 28 Feb 2018 22:46:56 -0500 Received: by mail-pg0-f66.google.com with SMTP id i14so1821270pgv.3 for ; Wed, 28 Feb 2018 19:46:56 -0800 (PST) Subject: Re: [PATCH v4 iproute2-next 0/3] Allow 'ip rule' command to use protocol To: Donald Sharp , netdev@vger.kernel.org References: <20180221015348.32646-1-sharpd@cumulusnetworks.com> <20180228234400.14321-1-sharpd@cumulusnetworks.com> From: David Ahern Message-ID: <79ec670a-3cc1-5b7e-4925-26d84ff8edd9@gmail.com> Date: Wed, 28 Feb 2018 20:46:53 -0700 MIME-Version: 1.0 In-Reply-To: <20180228234400.14321-1-sharpd@cumulusnetworks.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 2/28/18 4:43 PM, 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 manipulation. > > v2: Rearrange and code changes as per David Ahern > v3: Fix some missed RTN_XXX to appropriate FR_XX and doc changes > v4: Cleanup some code, fix 'ip rule save' no parameters and doc changes > > 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/uapi/linux/fib_rules.h | 1 + > ip/iprule.c | 173 +++++++++++++++++++++++++---------------- > man/man8/ip-rule.8 | 18 ++++- > 3 files changed, 126 insertions(+), 66 deletions(-) > Applied to iproute2-next. Please submit a followup for listing with the protocol as a filter.