]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: Add RTNH_F_TRAP flag
authorIdo Schimmel <idosch@nvidia.com>
Wed, 4 Nov 2020 13:30:27 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 19:28:49 +0000 (11:28 -0800)
commit4f13aaa844b963cb053473f0b366941c997e552c
treec5fbc6d6374662afca3a5bfffb20d51c06a1c2be
parent3d141bb7a8cf725cf822e20b7baa56f82a2e085e
rtnetlink: Add RTNH_F_TRAP flag

The flag indicates to user space that the nexthop is not programmed to
forward packets in hardware, but rather to trap them to the CPU. This is
needed, for example, when the MAC of the nexthop neighbour is not
resolved and packets should reach the CPU to trigger neighbour
resolution.

The flag will be used in subsequent patches by netdevsim to test nexthop
objects programming to device drivers and in the future by mlxsw as
well.

Changes since RFC:
* Reword commit message

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/rtnetlink.h
net/ipv4/fib_semantics.c