mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
ipv4: Move exception bucket to nh_common
Similar to the cached routes, make IPv4 exceptions accessible when using an IPv6 nexthop struct with IPv4 routes. Simplify the exception functions by passing in fib_nh_common since that is all it needs, and then cleanup the call sites that have extraneous fib_nh conversions. As with the cached routes this is a change in location only, from fib_nh up to fib_nh_common; no functional change intended. Signed-off-by: David Ahern <dsahern@gmail.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
87063a1fa6
commit
a5995e7107
3 changed files with 24 additions and 31 deletions
|
@ -100,6 +100,7 @@ struct fib_nh_common {
|
|||
/* v4 specific, but allows fib6_nh with v4 routes */
|
||||
struct rtable __rcu * __percpu *nhc_pcpu_rth_output;
|
||||
struct rtable __rcu *nhc_rth_input;
|
||||
struct fnhe_hash_bucket __rcu *nhc_exceptions;
|
||||
};
|
||||
|
||||
struct fib_nh {
|
||||
|
@ -111,7 +112,6 @@ struct fib_nh {
|
|||
#endif
|
||||
__be32 nh_saddr;
|
||||
int nh_saddr_genid;
|
||||
struct fnhe_hash_bucket __rcu *nh_exceptions;
|
||||
#define fib_nh_family nh_common.nhc_family
|
||||
#define fib_nh_dev nh_common.nhc_dev
|
||||
#define fib_nh_oif nh_common.nhc_oif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue