[PATCH v2] net/dpaa2: fix dpdmux default interface

Hemant Agrawal hemant.agrawal at oss.nxp.com
Thu Mar 31 12:19:14 CEST 2022


Acked-by:  Hemant Agrawal <hemant.agrawal at nxp.com>

On 3/30/2022 3:31 AM, Tianli Lai wrote:
> if dpdmux objects created by restool tools with
> the argument "--default-if=<if-id-number>", this
> function would change it to 1
>
> Fixes: 1def64c2d79e ("net/dpaa2: add dpdmux initialization and configuration")
> Cc: nipun.gupta at nxp.com
>
> Signed-off-by: Tianli Lai <laitianli at tom.com>
> ---
>   drivers/net/dpaa2/dpaa2_mux.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c
> index bd4596b891..e8689a7832 100644
> --- a/drivers/net/dpaa2/dpaa2_mux.c
> +++ b/drivers/net/dpaa2/dpaa2_mux.c
> @@ -296,7 +296,7 @@ dpaa2_create_dpdmux_device(int vdev_fd __rte_unused,
>   	}
>   
>   	ret = dpdmux_if_set_default(&dpdmux_dev->dpdmux, CMD_PRI_LOW,
> -				    dpdmux_dev->token, 1);
> +				    dpdmux_dev->token, attr.default_if);
>   	if (ret) {
>   		DPAA2_PMD_ERR("setting default interface failed in %s",
>   			      __func__);


More information about the dev mailing list