mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 00:43:08 -04:00
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 <gakula@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6baeb3951c
commit
a7314371b3
@@ -4200,6 +4200,9 @@ static int rvu_nix_block_init(struct rvu *rvu, struct nix_hw *nix_hw)
|
||||
/* Restore CINT timer delay to HW reset values */
|
||||
rvu_write64(rvu, blkaddr, NIX_AF_CINT_DELAY, 0x0ULL);
|
||||
|
||||
/* For better performance use NDC TX instead of NDC RX for SQ's SQEs" */
|
||||
rvu_write64(rvu, blkaddr, NIX_AF_SEB_CFG, 0x1ULL);
|
||||
|
||||
if (is_block_implemented(hw, blkaddr)) {
|
||||
err = nix_setup_txschq(rvu, nix_hw, blkaddr);
|
||||
if (err)
|
||||
|
||||
@@ -263,6 +263,7 @@
|
||||
#define NIX_AF_SDP_TX_FIFO_STATUS (0x0640)
|
||||
#define NIX_AF_TX_NPC_CAPTURE_CONFIG (0x0660)
|
||||
#define NIX_AF_TX_NPC_CAPTURE_INFO (0x0670)
|
||||
#define NIX_AF_SEB_CFG (0x05F0)
|
||||
|
||||
#define NIX_AF_DEBUG_NPC_RESP_DATAX(a) (0x680 | (a) << 3)
|
||||
#define NIX_AF_SMQX_CFG(a) (0x700 | (a) << 16)
|
||||
|
||||
Reference in New Issue
Block a user