diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-03-30 21:38:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-31 02:54:58 +0200 |
commit | 0dc8249a2e7ce38d9b307d1277b64f8189f53dfc (patch) | |
tree | 6f1be1e79225a0b5abe1fceebb127c83e16db061 /drivers/net/netdevsim/netdevsim.h | |
parent | devlink: Allow setting of packet trap group parameters (diff) | |
download | linux-0dc8249a2e7ce38d9b307d1277b64f8189f53dfc.tar.xz linux-0dc8249a2e7ce38d9b307d1277b64f8189f53dfc.zip |
netdevsim: Add support for setting of packet trap group parameters
Add a dummy callback to set trap group parameters. Return an error when
the 'fail_trap_group_set' debugfs file is set in order to exercise error
paths and verify that error is propagated to user space when should.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 3d37df5057e8..4ded54a21e1e 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -180,6 +180,7 @@ struct nsim_dev { struct nsim_dev_health health; struct flow_action_cookie *fa_cookie; spinlock_t fa_cookie_lock; /* protects fa_cookie */ + bool fail_trap_group_set; bool fail_trap_policer_set; bool fail_trap_policer_counter_get; }; |