Skip to content

Commit

Permalink
common/sfc_efx/base: fix maximum Tx data count
Browse files Browse the repository at this point in the history
[ upstream commit 79b0c19 ]

Maximum data count of a Tx descriptor is advertised to users,
however, this value is mistakenly derived from the Rx define.
Use the Tx one instead. The resulting value will be the same.

Fixes: 1e43fe3 ("net/sfc/base: separate limitations on Tx DMA descriptors")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
  • Loading branch information
ol-ivanmal authored and kevintraynor committed Oct 11, 2022
1 parent fb442d0 commit 67f3304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/common/sfc_efx/base/ef10_nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ ef10_nic_board_cfg(
/* Alignment for WPTR updates */
encp->enc_rx_push_align = EF10_RX_WPTR_ALIGN;

encp->enc_tx_dma_desc_size_max = EFX_MASK32(ESF_DZ_RX_KER_BYTE_CNT);
encp->enc_tx_dma_desc_size_max = EFX_MASK32(ESF_DZ_TX_KER_BYTE_CNT);
/* No boundary crossing limits */
encp->enc_tx_dma_desc_boundary = 0;

Expand Down

0 comments on commit 67f3304

Please sign in to comment.