On 27/02/18 20:58, Yuval Mintz wrote:
> The various MFC entries are being held in the same kind of mr_tables
> for both ipmr and ip6mr, and their traversal logic is identical.
> Also, with the exception of the addresses [and other small tidbits]
> the major bulk of the nla setting is identical.
> 
> Unite as much of the dumping as possible between the two.
> Notice this requires creating an mr_table iterator for each, as the
> for-each preprocessor macro can't be used by the common logic.
> 
> Signed-off-by: Yuval Mintz <yuv...@mellanox.com>
> ---
>  include/linux/mroute_base.h |  29 ++++++++
>  net/ipv4/ipmr.c             | 161 
> +++++++++++---------------------------------
>  net/ipv4/ipmr_base.c        | 123 +++++++++++++++++++++++++++++++++
>  net/ipv6/ip6mr.c            | 156 +++++++++++-------------------------------
>  4 files changed, 230 insertions(+), 239 deletions(-)
> 

Acked-by: Nikolay Aleksandrov <niko...@cumulusnetworks.com>

Reply via email to