mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 00:44:31 +01:00
octeontx2-af: Display new bandwidth profiles too in debugfs
Consider the new profiles of cn20k too while displaying bandwidth profile contexts in debugfs. Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Link: https://patch.msgid.link/1761388367-16579-11-git-send-email-sbhatta@marvell.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
f7774633cf
commit
47a1208776
1 changed files with 7 additions and 2 deletions
|
|
@ -2121,7 +2121,9 @@ static void print_nix_cn10k_rq_ctx(struct seq_file *m,
|
|||
seq_printf(m, "W1: ipsecd_drop_ena \t\t%d\nW1: chi_ena \t\t\t%d\n\n",
|
||||
rq_ctx->ipsecd_drop_ena, rq_ctx->chi_ena);
|
||||
|
||||
seq_printf(m, "W2: band_prof_id \t\t%d\n", rq_ctx->band_prof_id);
|
||||
seq_printf(m, "W2: band_prof_id \t\t%d\n",
|
||||
(u16)rq_ctx->band_prof_id_h << 10 | rq_ctx->band_prof_id);
|
||||
|
||||
seq_printf(m, "W2: policer_ena \t\t%d\n", rq_ctx->policer_ena);
|
||||
seq_printf(m, "W2: spb_sizem1 \t\t\t%d\n", rq_ctx->spb_sizem1);
|
||||
seq_printf(m, "W2: wqe_skip \t\t\t%d\nW2: sqb_ena \t\t\t%d\n",
|
||||
|
|
@ -2639,7 +2641,10 @@ static void print_band_prof_ctx(struct seq_file *m,
|
|||
(prof->rc_action == 1) ? "DROP" : "RED";
|
||||
seq_printf(m, "W1: rc_action\t\t%s\n", str);
|
||||
seq_printf(m, "W1: meter_algo\t\t%d\n", prof->meter_algo);
|
||||
seq_printf(m, "W1: band_prof_id\t%d\n", prof->band_prof_id);
|
||||
|
||||
seq_printf(m, "W1: band_prof_id\t%d\n",
|
||||
(u16)prof->band_prof_id_h << 7 | prof->band_prof_id);
|
||||
|
||||
seq_printf(m, "W1: hl_en\t\t%d\n", prof->hl_en);
|
||||
|
||||
seq_printf(m, "W2: ts\t\t\t%lld\n", (u64)prof->ts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue