Skip to content

Commit 28866d6

Browse files
Geetha sowjanyadavem330
authored andcommitted
octeontx2-af: Fix SDP MAC link credits configuration
Current driver allows only packet size < 512B as SDP_LINK_CREDIT register is set to default value. This patch fixes this issue by configure the register with maximum HW supported value to allow packet size > 512B. Fixes: 2f7f33a ("octeontx2-pf: Add representors for sdp MAC") Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a747e02 commit 28866d6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/net/ethernet/marvell/octeontx2/af/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ enum nix_scheduler {
159159
#define SDP_HW_MIN_FRS 16
160160
#define CN10K_LMAC_LINK_MAX_FRS 16380 /* 16k - FCS */
161161
#define CN10K_LBK_LINK_MAX_FRS 65535 /* 64k */
162+
#define SDP_LINK_CREDIT 0x320202
162163

163164
/* NIX RX action operation*/
164165
#define NIX_RX_ACTIONOP_DROP (0x0ull)

drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4672,6 +4672,9 @@ static void nix_link_config(struct rvu *rvu, int blkaddr,
46724672
rvu_get_lbk_link_max_frs(rvu, &lbk_max_frs);
46734673
rvu_get_lmac_link_max_frs(rvu, &lmac_max_frs);
46744674

4675+
/* Set SDP link credit */
4676+
rvu_write64(rvu, blkaddr, NIX_AF_SDP_LINK_CREDIT, SDP_LINK_CREDIT);
4677+
46754678
/* Set default min/max packet lengths allowed on NIX Rx links.
46764679
*
46774680
* With HW reset minlen value of 60byte, HW will treat ARP pkts

0 commit comments

Comments
 (0)