mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 09:17:30 -04:00
octeontx2-pf: Clear stats of all resources when freeing resources
When all MCS resources mapped to a PF are being freed then clear
stats of all those resources too.
Fixes: 815debbbf7 ("octeontx2-pf: mcs: Clear stats before freeing resource")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/1781636420-19816-2-git-send-email-sbhatta@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
d4b7440f73
commit
fd4460721f
@@ -182,6 +182,7 @@ static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir,
|
||||
clear_req->id = hw_rsrc_id;
|
||||
clear_req->type = type;
|
||||
clear_req->dir = dir;
|
||||
clear_req->all = all;
|
||||
|
||||
req = otx2_mbox_alloc_msg_mcs_free_resources(mbox);
|
||||
if (!req)
|
||||
|
||||
Reference in New Issue
Block a user