octeontx2-af: Perform cpt lf teardown in non FLR path
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Wed, 13 Oct 2021 05:56:20 +0000 (11:26 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Oct 2021 03:01:06 +0000 (20:01 -0700)
commit7054d39ccf7e862ebb569c73ab251f1968d1b640
tree28690a5b60726de8899a1ef25da5768c342bb6f9
parent4826090719d4bb525b101f1916c68c3b5594910c
octeontx2-af: Perform cpt lf teardown in non FLR path

Perform CPT LF teardown in non FLR path as well via cpt_lf_free()
Currently CPT LF teardown and reset sequence is only
done when FLR is handled with CPT LF still attached.

This patch also fixes cpt_lf_alloc() to set EXEC_LDWB in
CPT_AF_LFX_CTL2 when being completely overwritten as that is
the default value and is better for performance.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c