From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com ([209.85.128.195]:40738 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751730AbeB0WkF (ORCPT ); Tue, 27 Feb 2018 17:40:05 -0500 Received: by mail-wr0-f195.google.com with SMTP id o76so413793wrb.7 for ; Tue, 27 Feb 2018 14:40:04 -0800 (PST) Subject: Re: [PATCH net-next 08/11] ipmr, ip6mr: Unite mfc seq logic To: Yuval Mintz , netdev@vger.kernel.org Cc: mlxsw@mellanox.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org References: <1519757908-32863-1-git-send-email-yuvalm@mellanox.com> <1519757908-32863-9-git-send-email-yuvalm@mellanox.com> From: Nikolay Aleksandrov Message-ID: Date: Wed, 28 Feb 2018 00:40:02 +0200 MIME-Version: 1.0 In-Reply-To: <1519757908-32863-9-git-send-email-yuvalm@mellanox.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 27/02/18 20:58, Yuval Mintz wrote: > With the exception of the final dump, ipmr and ip6mr have the exact same > seq logic for traversing a given mr_table. Refactor that code and make > it common. > > Signed-off-by: Yuval Mintz > --- > include/linux/mroute_base.h | 69 ++++++++++++++++++++++++++++++++ > net/ipv4/ipmr.c | 93 +++---------------------------------------- > net/ipv4/ipmr_base.c | 62 +++++++++++++++++++++++++++++ > net/ipv6/ip6mr.c | 97 ++++----------------------------------------- > 4 files changed, 143 insertions(+), 178 deletions(-) > Acked-by: Nikolay Aleksandrov