Skip to content

Commit f0138e2

Browse files
idoschdavem330
authored andcommitted
mlxsw: pci: Adjust value of CPU egress traffic class
During initialization, when creating the send descriptor queues (SDQs), we specify the CPU egress traffic class of each SDQ. The maximum number of classes of this type is different in the two ASICs supported by this PCI driver. New firmware versions check this value is set correctly, which causes errors on the Spectrum ASIC, as its max exposed egress traffic class is lower than 7. Solve this by setting this field to 3, which is an acceptable value for both ASICs. Note that we currently do not expose the QoS capabilities of the ASICs, so setting this to an hardcoded value is OK for now. Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 56b8718 commit f0138e2

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int mlxsw_pci_sdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox,
384384

385385
/* Set CQ of same number of this SDQ. */
386386
mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, q->num);
387-
mlxsw_cmd_mbox_sw2hw_dq_sdq_tclass_set(mbox, 7);
387+
mlxsw_cmd_mbox_sw2hw_dq_sdq_tclass_set(mbox, 3);
388388
mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */
389389
for (i = 0; i < MLXSW_PCI_AQ_PAGES; i++) {
390390
dma_addr_t mapaddr = __mlxsw_pci_queue_page_get(q, i);

0 commit comments

Comments
 (0)