]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: add .trap_group_action_set() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 1 Oct 2020 15:11:46 +0000 (18:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 23:31:56 +0000 (16:31 -0700)
commitc50bf2be7306cd37e4a8228acfe0fee36b9097dc
treebff2c8e62caeb0a77d4d2a655d8d3c9a7c3ce347
parent10c24eb23da0dc67934fcc9b5b0f201750ff8cd8
devlink: add .trap_group_action_set() callback

Add a new devlink callback, .trap_group_action_set(), which can be used
by device drivers which do not support controlling the action (drop,
trap) on each trap but rather on the entire group trap.
If this new callback is populated, it will take precedence over the
.trap_action_set() callback when the user requests a change of all the
traps in a group.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c