octeontx2-af: fix lbk link credits on cn10k
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Thu, 8 Jun 2023 11:42:01 +0000 (17:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2023 18:53:02 +0000 (19:53 +0100)
commit87e12a17eef476bbf768dc3a74419ad461f36fbc
treec7c46924d1fb52569c5ff529c86b64fb6b9619e7
parent4e635f9d86165e47f5440196f2ebdb258efb8341
octeontx2-af: fix lbk link credits on cn10k

Fix LBK link credits on CN10K to be same as CN9K i.e
16 * MAX_LBK_DATA_RATE instead of current scheme of
calculation based on LBK buf length / FIFO size.

Fixes: 6e54e1c5399a ("octeontx2-af: cn10K: Add MTU configuration")
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c