diff options
| author | Geetha sowjanya <gakula@marvell.com> | 2026-09-22 15:51:48 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-28 18:20:22 -0700 |
| commit | 056994563935e049093f100efaad7e63ad113814 (patch) | |
| tree | 574c7f031357a78d3790eb82eb26575023c4855a /tools/perf/scripts/python | |
| parent | 382cf9768987331f6576c97bfb44d9434e3555f6 (diff) | |
octeontx2-pf: Fix aura BPID assignment when CONFIG_DCB is enabled
Previously, BPID assignment under CONFIG_DCB assumed
`queue_to_pfc_map` was always initialized. For SDP VFs this leads to
invalid memory access as it was not initialized.
This patch adds a NULL check for `queue_to_pfc_map` before
dereferencing it. Also, simplifies the logic by always assigning a
default BPID first, then conditionally overriding it if CONFIG_DCB is
enabled and the map exists.
Fixes: 184fb40f731b ("octeontx2-pf: Avoid adding dcbnl_ops for LBK and SDP vf")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Subrat Pandey <subratp@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260922102149.2078168-2-subratp@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
