fed8f4d5f9
Added devlink parameters to create and delete custom CPT engine groups. Example: devlink dev param set pci/0002:20:00.0 name egrp_create value \ "se:32;se.out" cmode runtime devlink dev param set pci/0002:20:00.0 name egrp_delete value \ "egrp:1" cmode runtime Signed-off-by: Srujana Challa <schalla@marvell.com> Signed-off-by: Shijith Thotton <sthotton@marvell.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
21 lines
441 B
C
21 lines
441 B
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
* Copyright (C) 2021 Marvell.
|
|
*/
|
|
|
|
#ifndef __OTX2_CPT_DEVLINK_H
|
|
#define __OTX2_CPT_DEVLINK_H
|
|
|
|
#include "otx2_cpt_common.h"
|
|
#include "otx2_cptpf.h"
|
|
|
|
struct otx2_cpt_devlink {
|
|
struct devlink *dl;
|
|
struct otx2_cptpf_dev *cptpf;
|
|
};
|
|
|
|
/* Devlink APIs */
|
|
int otx2_cpt_register_dl(struct otx2_cptpf_dev *cptpf);
|
|
void otx2_cpt_unregister_dl(struct otx2_cptpf_dev *cptpf);
|
|
|
|
#endif /* __OTX2_CPT_DEVLINK_H */
|