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)
commit8e1514579246ddc36ba0b860fc8bdd03be085aee
tree32c95c6dfb74e8076f0dac2b1a6b66323bf2b0fc
parent9d899dbe23016856effc01eafec31c587a3c8791
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