From b08ef9e6c7f3ca16d2cc2e8b59900c1c88503291 Mon Sep 17 00:00:00 2001 From: Kiran Kumar K Date: Fri, 21 Aug 2020 12:29:30 +0530 Subject: [PATCH] net/octeontx2: set max VTAG insertion size When TX side VTAG insertion is enabled, SMQ should be configured with the maximum VTAG insertion size to avoid generating NIX_SQINT_SEND_ERR interrupt. Since the default value is zero, This patch configures the VTAG insertion size to the max supported value. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob --- drivers/net/octeontx2/otx2_tm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/octeontx2/otx2_tm.c b/drivers/net/octeontx2/otx2_tm.c index 874b0d72f5..fdd56697f1 100644 --- a/drivers/net/octeontx2/otx2_tm.c +++ b/drivers/net/octeontx2/otx2_tm.c @@ -581,8 +581,9 @@ populate_tm_reg(struct otx2_eth_dev *dev, * smaller */ reg[k] = NIX_AF_SMQX_CFG(schq); - regval[k] = BIT_ULL(50) | NIX_MIN_HW_FRS; - regval_mask[k] = ~(BIT_ULL(50) | 0x7f); + regval[k] = BIT_ULL(50) | ((uint64_t)NIX_MAX_VTAG_INS << 36) | + NIX_MIN_HW_FRS; + regval_mask[k] = ~(BIT_ULL(50) | (0x7ULL << 36) | 0x7f); k++; /* Parent and schedule conf */ -- 2.20.1