]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
octeontx2-pf: Clear stats of all resources when freeing resources
authorSubbaraya Sundeep <sbhatta@marvell.com>
Tue, 16 Jun 2026 19:00:19 +0000 (00:30 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sun, 21 Jun 2026 21:45:44 +0000 (14:45 -0700)
When all MCS resources mapped to a PF are being freed then clear
stats of all those resources too.

Fixes: 815debbbf7b5 ("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>
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c

index 2cc1bdfd9b2e8170459d708bf9e01614354ad151..702cf07490e792952a5836a83b9fea7220486f2e 100644 (file)
@@ -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)