Skip to content

Commit ae7515f

Browse files
committed
devlink: extend devlink_param *set pointer
JIRA: https://issues.redhat.com/browse/RHEL-62110 Conflicts: - apply missing hunk to otx2_cpt_dl_t106_mode_set() now that 82f89f1 ("crypto: octeontx2 - add devlink option to set t106 mode") is present as well Upstream commit(s): commit 5625ca5 Author: Mateusz Polchlopek <mateusz.polchlopek@intel.com> Date: Fri Apr 19 04:08:49 2024 -0400 devlink: extend devlink_param *set pointer Extend devlink_param *set function pointer to take extack as a param. Sometimes it is needed to pass information to the end user from set function. It is more proper to use for that netlink instead of passing message to dmesg. Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Jan Stancek <jstancek@redhat.com>
1 parent 0e2dad3 commit ae7515f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/crypto/marvell/octeontx2/otx2_cpt_devlink.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ static int otx2_cpt_dl_t106_mode_get(struct devlink *dl, u32 id,
4747
}
4848

4949
static int otx2_cpt_dl_t106_mode_set(struct devlink *dl, u32 id,
50-
struct devlink_param_gset_ctx *ctx)
50+
struct devlink_param_gset_ctx *ctx,
51+
struct netlink_ext_ack *extack)
5152
{
5253
struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
5354
struct otx2_cptpf_dev *cptpf = cpt_dl->cptpf;

0 commit comments

Comments
 (0)