On Mon, 13 Nov 2023 16:04:51 +0400 (+04)
Ivan Malov <ivan.ma...@arknetworks.am> wrote:

> diff --git a/drivers/net/sfc/sfc_ef100_tx.c b/drivers/net/sfc/sfc_ef100_tx.c
> index 1b6374775f..01f37c2616 100644
> --- a/drivers/net/sfc/sfc_ef100_tx.c
> +++ b/drivers/net/sfc/sfc_ef100_tx.c
> @@ -563,7 +563,7 @@ sfc_ef100_tx_pkt_descs_max(const struct rte_mbuf *m)
>                   * (split into many Tx descriptors).
>                   */
>                  RTE_BUILD_BUG_ON(SFC_EF100_TX_SEND_DESC_LEN_MAX <
> -                                RTE_MIN((unsigned int)EFX_MAC_PDU_MAX,
> +                                MIN((unsigned int)EFX_MAC_PDU_MAX,
>                                   SFC_MBUF_SEG_LEN_MAX));
>          }
> 
> with MIN being defined in drivers/common/sfc_efx/efsys.h as
> #define MIN(v1, v2)   ((v1) < (v2) ? (v1) : (v2))

That should work.

Reply via email to