From: Kiran Kumar K Date: Fri, 21 Aug 2020 06:59:30 +0000 (+0530) Subject: net/octeontx2: set max VTAG insertion size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b08ef9e6c7f3ca16d2cc2e8b59900c1c88503291;p=dpdk.git 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 --- 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 */