Added support for setting or modifying MCAM entry count at runtime via devlink params. commands: devlink dev param show pci/0002:02:00.0: name mcam_count type driver-specific values: cmode runtime value 16 devlink dev param set pci/0002:02:00.0 name mcam_count value 64 cmode runtime Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
21 lines
375 B
C
21 lines
375 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Marvell RVU PF/VF Netdev Devlink
|
|
*
|
|
* Copyright (C) 2021 Marvell.
|
|
*
|
|
*/
|
|
|
|
#ifndef OTX2_DEVLINK_H
|
|
#define OTX2_DEVLINK_H
|
|
|
|
struct otx2_devlink {
|
|
struct devlink *dl;
|
|
struct otx2_nic *pfvf;
|
|
};
|
|
|
|
/* Devlink APIs */
|
|
int otx2_register_dl(struct otx2_nic *pfvf);
|
|
void otx2_unregister_dl(struct otx2_nic *pfvf);
|
|
|
|
#endif /* RVU_DEVLINK_H */
|