devlink: extend devlink_trap_report() to accept cookie and pass
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Feb 2020 10:45:21 +0000 (11:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2020 19:05:54 +0000 (11:05 -0800)
commit5a2e106c746d2740f425cce3ac039321c924dc85
tree479cd840ec8772d4f7844f7eff969bca4870ca9d
parent742b8cceaabc3ed09d4c4d527d9c6311c4925545
devlink: extend devlink_trap_report() to accept cookie and pass

Add cookie argument to devlink_trap_report() allowing driver to pass in
the user cookie. Pass on the cookie down to drop monitor code.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c
drivers/net/netdevsim/dev.c
include/net/devlink.h
net/core/devlink.c