]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Don't reset previous pfc config
authorHariprasad Kelam <hkelam@marvell.com>
Thu, 7 Jul 2022 16:30:48 +0000 (22:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jul 2022 13:05:22 +0000 (14:05 +0100)
commiteeef83f8b736222645c4e8edad3e071474743963
tree32c95c6dfb74e8076f0dac2b1a6b66323bf2b0fc
parentdef778d22cd0ad64821c1152bc0b1817e74495fd
octeontx2-af: Don't reset previous pfc config

Current implementation is such that driver first resets the
existing PFC config before applying new pfc configuration.
This creates a problem like once PF or VFs requests PFC config
previous pfc config by other PFVfs is getting reset.

This patch fixes the problem by removing unnecessary resetting
of PFC config. Also configure Pause quanta value to smaller as
current value is too high.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.h