mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Implements routines to set and get different settings of the congestion control. This will enable the users to modify the settings according to their network. Currently supporting only GEN 0 version of the parameters. Reading these files queries the firmware and report the values currently programmed. Writing to the files sends commands that update the congestion control settings Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/1737301535-6599-1-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
36 lines
987 B
C
36 lines
987 B
C
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
|
|
/*
|
|
* Copyright (c) 2024, Broadcom. All rights reserved. The term
|
|
* Broadcom refers to Broadcom Limited and/or its subsidiaries.
|
|
*
|
|
* Description: Debugfs header
|
|
*/
|
|
|
|
#ifndef __BNXT_RE_DEBUGFS__
|
|
#define __BNXT_RE_DEBUGFS__
|
|
|
|
void bnxt_re_debug_add_qpinfo(struct bnxt_re_dev *rdev, struct bnxt_re_qp *qp);
|
|
void bnxt_re_debug_rem_qpinfo(struct bnxt_re_dev *rdev, struct bnxt_re_qp *qp);
|
|
|
|
void bnxt_re_debugfs_add_pdev(struct bnxt_re_dev *rdev);
|
|
void bnxt_re_debugfs_rem_pdev(struct bnxt_re_dev *rdev);
|
|
|
|
void bnxt_re_register_debugfs(void);
|
|
void bnxt_re_unregister_debugfs(void);
|
|
|
|
#define CC_CONFIG_GEN_EXT(x, y) (((x) << 16) | (y))
|
|
#define CC_CONFIG_GEN0_EXT0 CC_CONFIG_GEN_EXT(0, 0)
|
|
|
|
#define BNXT_RE_CC_PARAM_GEN0 14
|
|
|
|
struct bnxt_re_cc_param {
|
|
struct bnxt_re_dev *rdev;
|
|
struct dentry *dentry;
|
|
u32 offset;
|
|
u8 cc_gen;
|
|
};
|
|
|
|
struct bnxt_re_dbg_cc_config_params {
|
|
struct bnxt_re_cc_param gen0_parms[BNXT_RE_CC_PARAM_GEN0];
|
|
};
|
|
#endif
|