Acked-by: Hemant Agrawal <[email protected]>
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: [email protected] Signed-off-by: Tianli Lai <[email protected]> --- 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__);

