diff options
author | Petr Machata <[email protected]> | 2021-03-11 19:03:12 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-03-11 16:12:59 -0800 |
commit | 597f48e46b6e9142d30eaa5881c1b98338f092db (patch) | |
tree | 4fdbbf76667fc27c2f1859e4fb9169c2bc7f15c2 /lib/test_overflow.c | |
parent | 1d5d0a078672d36fa958ca3495c66d399c1808b9 (diff) |
nexthop: Pass nh_config to replace_nexthop()
Currently, replace assumes that the new group that is given is a
fully-formed object. But mpath groups really only have one attribute, and
that is the constituent next hop configuration. This may not be universally
true. From the usability perspective, it is desirable to allow the replace
operation to adjust just the constituent next hop configuration and leave
the group attributes as such intact.
But the object that keeps track of whether an attribute was or was not
given is the nh_config object, not the next hop or next-hop group. To allow
(selective) attribute updates during NH group replacement, propagate `cfg'
to replace_nexthop() and further to replace_nexthop_grp().
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions