Message ID | 20230608114201.31112-3-naveenm@marvell.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 87e12a17eef476bbf768dc3a74419ad461f36fbc |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | RVU NIX AF driver fixes | expand |
On 6/8/2023 4:42 AM, Naveen Mamindlapalli wrote: > From: Nithin Dabilpuram <ndabilpuram@marvell.com> > > 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> > --- > drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c > index 967370c0a649..cbb6d7e62d90 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 */ > } >
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c index 967370c0a649..cbb6d7e62d90 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 */ }