aboutsummaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorIdo Schimmel2020-01-14 13:23:09 +0200
committerDavid S. Miller2020-01-14 18:53:35 -0800
commit6324d0fa03bf118e9682b6f3da437deaadb61924 (patch)
tree7d26791a03f990af174053d672cc66bc431697ed /net/atm
parent0fadc0a2b1c472c50a6d05b76c5f73c769bce81e (diff)
ipv4: Replace route in list before notifying
Subsequent patches will add an offload / trap indication to routes which will signal if the route is present in hardware or not. After programming the route to the hardware, drivers will have to ask the IPv4 code to set the flags by passing the route's key. In the case of route replace, the new route is notified before it is actually inserted into the FIB alias list. This can prevent simple drivers (e.g., netdevsim) that program the route to the hardware in the same context it is notified in from being able to set the flag. Solve this by first inserting the new route to the list and rollback the operation in case the route was vetoed. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions