Skip to content

Commit a731437

Browse files
Geetha sowjanyadavem330
authored andcommitted
octeontx2-af: Use NDC TX for transmit packet data
For better performance set hardware to use NDC TX for reading packet data specified NIX_SEND_SG_S. Signed-off-by: Geetha sowjanya <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6baeb39 commit a731437

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,6 +4200,9 @@ static int rvu_nix_block_init(struct rvu *rvu, struct nix_hw *nix_hw)
42004200
/* Restore CINT timer delay to HW reset values */
42014201
rvu_write64(rvu, blkaddr, NIX_AF_CINT_DELAY, 0x0ULL);
42024202

4203+
/* For better performance use NDC TX instead of NDC RX for SQ's SQEs" */
4204+
rvu_write64(rvu, blkaddr, NIX_AF_SEB_CFG, 0x1ULL);
4205+
42034206
if (is_block_implemented(hw, blkaddr)) {
42044207
err = nix_setup_txschq(rvu, nix_hw, blkaddr);
42054208
if (err)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@
263263
#define NIX_AF_SDP_TX_FIFO_STATUS (0x0640)
264264
#define NIX_AF_TX_NPC_CAPTURE_CONFIG (0x0660)
265265
#define NIX_AF_TX_NPC_CAPTURE_INFO (0x0670)
266+
#define NIX_AF_SEB_CFG (0x05F0)
266267

267268
#define NIX_AF_DEBUG_NPC_RESP_DATAX(a) (0x680 | (a) << 3)
268269
#define NIX_AF_SMQX_CFG(a) (0x700 | (a) << 16)

0 commit comments

Comments
 (0)