netdevsim: Add support for setting of packet trap group parameters
authorIdo Schimmel <idosch@mellanox.com>
Mon, 30 Mar 2020 19:38:23 +0000 (22:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 00:54:58 +0000 (17:54 -0700)
commit0dc8249a2e7ce38d9b307d1277b64f8189f53dfc
tree6f1be1e79225a0b5abe1fceebb127c83e16db061
parentc064875a63528e8ebcefc0ae450ed0fd904d08c4
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>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h