]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-Move-fib_nh-and-fib6_nh-to-a-common-struct'
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:04 +0000 (10:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:04 +0000 (10:48 -0700)
commita02b27fa7e0d0204b9ce7b2789f6f71eae24f58c
treee1b340126841f37f96730a0e84d9428344612273
parent76aec8943bc9f62c63c5a8f296bcfcc9d0eb06b6
parent010f30a3db9f9fa3e8f4cd11905a5cad2e459ad5
Merge branch 'net-Move-fib_nh-and-fib6_nh-to-a-common-struct'

David Ahern says:

====================
net: Move fib_nh and fib6_nh to a common struct

First set of three with the end goal of enabling IPv6 gateways with IPv4
routes.

This set refactors ipv4 and ipv6 code to create init and release
helpers for each protocol and moving common elements to a fib_nh_common
struct.

v3
- split the reject setting into 2 with helper to the checks. This
  avoids changing cfg->fc_flags in fib6_nh_init

v2
- addressed Ido's comments: cleanup on failure path in nh_init helpers,
  ordering in fib6_nh_release, and removal of RTF_GATEWAY from fib6_info
  uses in mlxsw
====================

Signed-off-by: David S. Miller <davem@davemloft.net>