Octeontx2-af: fix pause frame configuration in GMP mode
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 26 Mar 2024 05:27:20 +0000 (10:57 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 Mar 2024 10:56:47 +0000 (11:56 +0100)
commit40d4b4807cadd83fb3f46cc8cd67a945b5b25461
tree2d2554b2157aa11a72079aeadcbdb1fb30c0965d
parente4a58989f5c839316ac63675e8800b9eed7dbe96
Octeontx2-af: fix pause frame configuration in GMP mode

The Octeontx2 MAC block (CGX) has separate data paths (SMU and GMP) for
different speeds, allowing for efficient data transfer.

The previous patch which added pause frame configuration has a bug due
to which pause frame feature is not working in GMP mode.

This patch fixes the issue by configurating appropriate registers.

Fixes: f7e086e754fe ("octeontx2-af: Pause frame configuration at cgx")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240326052720.4441-1-hkelam@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c