Patch "octeontx2-af: fix lbk link credits on cn10k" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    octeontx2-af: fix lbk link credits on cn10k

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     octeontx2-af-fix-lbk-link-credits-on-cn10k.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c35de945638b606c64840573b6afbca6eb9517e2
Author: Nithin Dabilpuram <ndabilpuram@xxxxxxxxxxx>
Date:   Thu Jun 8 17:12:01 2023 +0530

    octeontx2-af: fix lbk link credits on cn10k
    
    [ Upstream commit 87e12a17eef476bbf768dc3a74419ad461f36fbc ]
    
    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@xxxxxxxxxxx>
    Signed-off-by: Naveen Mamindlapalli <naveenm@xxxxxxxxxxx>
    Reviewed-by: Sridhar Samudrala <sridhar.samudrala@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
index 6ea14c8bd59b8..dee2f2086bb5d 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
@@ -4067,10 +4067,6 @@ int rvu_mbox_handler_nix_set_rx_cfg(struct rvu *rvu, struct nix_rx_cfg *req,
 
 static u64 rvu_get_lbk_link_credits(struct rvu *rvu, u16 lbk_max_frs)
 {
-	/* CN10k supports 72KB FIFO size and max packet size of 64k */
-	if (rvu->hw->lbk_bufsize == 0x12000)
-		return (rvu->hw->lbk_bufsize - lbk_max_frs) / 16;
-
 	return 1600; /* 16 * max LBK datarate = 16 * 100Gbps */
 }
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux