On Tue, Sep 08, 2020 at 09:02:33AM -0600, David Ahern wrote: > On 9/8/20 3:10 AM, Ido Schimmel wrote: > > From: Ido Schimmel <ido...@nvidia.com> > > > > The flag indicates to user space that the nexthop is not programmed to > > forward packets in hardware, but rather to trap them. > > please elaborate in the commit message on what 'trap' is doing. I most > likely will forget a few years from now.
Reworded to: " 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. Signed-off-by: Ido Schimmel <ido...@nvidia.com> Reviewed-by: David Ahern <dsah...@gmail.com> " > > > > > 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. > > > > Signed-off-by: Ido Schimmel <ido...@nvidia.com> > > --- > > include/uapi/linux/rtnetlink.h | 6 ++++-- > > net/ipv4/fib_semantics.c | 2 ++ > > 2 files changed, 6 insertions(+), 2 deletions(-) > > > > Reviewed-by: David Ahern <dsah...@gmail.com>