summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_lookup.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-01-14 12:23:09 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-15 03:53:35 +0100
commit6324d0fa03bf118e9682b6f3da437deaadb61924 (patch)
tree7d26791a03f990af174053d672cc66bc431697ed /net/ipv4/fib_lookup.h
parentnet: socionext: get rid of huge dma sync in netsec_alloc_rx_data (diff)
downloadlinux-6324d0fa03bf118e9682b6f3da437deaadb61924.tar.xz
linux-6324d0fa03bf118e9682b6f3da437deaadb61924.zip
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/ipv4/fib_lookup.h')
0 files changed, 0 insertions, 0 deletions