diff options
author | Amit Cohen <amcohen@nvidia.com> | 2021-02-07 10:22:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-08 16:47:03 -0800 |
commit | 134c7532424067b3006024c1acc44bd195245622 (patch) | |
tree | 0a76789731ac3ffedb83a8a3418ce98124944a6f /tools/perf/scripts/python/stackcollapse.py | |
parent | f57ab5b75f7193e194c83616cd104f41c8350f68 (diff) |
netdevsim: fib: Add debugfs to debug route offload failure
Add "fail_route_offload" flag to disallow offloading routes.
It is needed to test "offload failed" notifications.
Create the flag as part of nsim_fib_create() under fib directory and set
it to false by default.
When FIB_EVENT_ENTRY_{REPLACE, APPEND} are triggered and
"fail_route_offload" value is true, set the appropriate hardware flag to
make the kernel emit RTM_NEWROUTE notification with RTM_F_OFFLOAD_FAILED
flag.
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions