mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
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>
This commit is contained in:
committed by
David S. Miller
parent
742b8cceaa
commit
5a2e106c74
@@ -385,7 +385,7 @@ static void nsim_dev_trap_report(struct nsim_dev_port *nsim_dev_port)
|
||||
*/
|
||||
local_bh_disable();
|
||||
devlink_trap_report(devlink, skb, nsim_trap_item->trap_ctx,
|
||||
&nsim_dev_port->devlink_port);
|
||||
&nsim_dev_port->devlink_port, NULL);
|
||||
local_bh_enable();
|
||||
consume_skb(skb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user