diff options
| author | Ido Schimmel <[email protected]> | 2020-01-14 13:23:09 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-01-14 18:53:35 -0800 |
| commit | 6324d0fa03bf118e9682b6f3da437deaadb61924 (patch) | |
| tree | 7d26791a03f990af174053d672cc66bc431697ed /tools/perf/scripts/python | |
| parent | 0fadc0a2b1c472c50a6d05b76c5f73c769bce81e (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 <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions