]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: Add RTM_F_OFFLOAD_FAILED flag
authorAmit Cohen <amcohen@nvidia.com>
Sun, 7 Feb 2021 08:22:49 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2021 00:47:02 +0000 (16:47 -0800)
commitc2d62975747eb8362fa4ffc1e6da707e0be3681e
tree49b5ac0d68c35fd3b0d5f1f3c000540da08351b0
parent8da07f02439d5b42a93137ca6afbdda1fc2283b5
rtnetlink: Add RTM_F_OFFLOAD_FAILED flag

The flag indicates to user space that route offload failed.

Previous patch set added the ability to emit RTM_NEWROUTE notifications
whenever RTM_F_OFFLOAD/RTM_F_TRAP flags are changed, but if the offload
fails there is no indication to user-space.

The flag will be used in subsequent patches by netdevsim and mlxsw to
indicate to user space that route offload failed, so that users will
have better visibility into the offload process.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h