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 <kirankumark@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
Kiran Kumar K 2020-08-21 12:29:30 +05:30 committed by Ferruh Yigit
parent 5700d0f0b4
commit b08ef9e6c7

View File

@ -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 */