octeontx2-af: return VWQE timer delay in NIX HW info
PATCH 1/1 octeontx2-af: return VWQE timer delay in NIX HW info
From: Shijith Thotton <[email protected]>
Update the NIX_GET_HW_INFO mailbox message to return the VWQE timer delay, which is used for vector packet wait time calculation. Repurpose the existing rsvs16 reserved field in struct nix_hw_info to vwqe_delay and populate it by reading the NIX_AF_VWQE_TIMER register (applicable for non-OTX2 silicon).
--- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 2 +- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +1 -1
@@ -1463,7 +1463,7 @@ struct nix_inline_ipsec_lf_cfg {struct nix_hw_info {struct mbox_msghdr hdr; -u16 rsvs16; +u16 vwqe_delay;u16 max_mtu;u16 min_mtu;u32 rpm_dwrr_mtu;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +5 -0
@@ -3936,6 +3936,11 @@ int rvu_mbox_handler_nix_get_hw_info(struct rvu *rvu, struct msg_req *req,if (blkaddr <0 )return NIX_AF_ERR_AF_LF_INVALID ; + rsp->vwqe_delay =0 ; +if (!is_rvu_otx2 (rvu)) + rsp->vwqe_delay =rvu_read64 (rvu, blkaddr,NIX_AF_VWQE_TIMER ) & +GENMASK_ULL (9 ,0 ); +if (is_lbk_vf (rvu, pcifunc))rvu_get_lbk_link_max_frs (rvu, &rsp->max_mtu);else
Signature · 1 line
2.48.1
Quoted 10 lines · On Wed, Jul 15, 2026 at 01:01:11PM +0530, [email protected] wrote:
From: Shijith Thotton <[email protected]>
Update the
NIX_GET_HW_INFOmailbox message to return the VWQE timer delay, which is used for vector packet wait time calculation. Repurpose the existing rsvs16 reserved field in structnix_hw_infotovwqe_delayand populate it by reading theNIX_AF_VWQE_TIMERregister (applicable for non-OTX2 silicon).Signed-off-by Shijith Thotton <[email protected]>Signed-off-by Nitin Shetty J <[email protected]>
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 9 lines · On Wed, 15 Jul 2026 13:01:11 +0530 you wrote:
From: Shijith Thotton <[email protected]>
Update the
NIX_GET_HW_INFOmailbox message to return the VWQE timer delay, which is used for vector packet wait time calculation. Repurpose the existing rsvs16 reserved field in structnix_hw_infotovwqe_delayand populate it by reading theNIX_AF_VWQE_TIMERregister (applicable for non-OTX2 silicon).[...]
Here is the summary with links:
- [net-next] octeontx2-af: return VWQE timer delay in NIX HW info
https://git.kernel.org/netdev/net-next/c/92f0217f8afd
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html