]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit631ca0b14810ef8c47e734b910edcc04c5f3b9e0
tree28690a5b60726de8899a1ef25da5768c342bb6f9
parente6cc6a28f805e3f59c9ee024de9c12813d1f8de0
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