]> 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)
commitb1f88e57cee1e2f549c1f190602f1b3e3634ec7f
treee1b340126841f37f96730a0e84d9428344612273
parentfad76f9ad7cdee6ee3acb5ba2ec894706b3b5dde
parent4c42f36b098a5cf96e8c9000af1cc3e9e7233ce4
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>