]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Add error log forcn10k_map_unmap_rq_policer()
authorWentao Liang <vulab@iscas.ac.cn>
Tue, 8 Apr 2025 03:26:02 +0000 (11:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:33 +0000 (11:05 +0100)
commit5e615cecf32eaae8cff239f30a72cf96f642e621
tree93f98945f09601b57edda01bf207ca925760ecd5
parent5badeca146b24c449a67706e3d7e2c2801f1376a
octeontx2-pf: Add error log forcn10k_map_unmap_rq_policer()

[ Upstream commit 9c056ec6dd1654b1420dafbbe2a69718850e6ff2 ]

The cn10k_free_matchall_ipolicer() calls the cn10k_map_unmap_rq_policer()
for each queue in a for loop without checking for any errors.

Check the return value of the cn10k_map_unmap_rq_policer() function during
each loop, and report a warning if the function fails.

Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250408032602.2909-1-vulab@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c