BTW, will you please add following fix tags to your commit message Fixes: 1def64c2d79e ("net/dpaa2: add dpdmux initialization and configuration") Cc: nipun.gu...@nxp.com
> -----Original Message----- > From: Hemant Agrawal (OSS) <hemant.agra...@oss.nxp.com> > Sent: Tuesday, March 29, 2022 7:01 PM > To: Tianli Lai <laitia...@tom.com>; dev@dpdk.org > Cc: Hemant Agrawal <hemant.agra...@nxp.com>; Sachin Saxena (OSS) > <sachin.sax...@oss.nxp.com> > Subject: Re: [PATCH] net/dpaa2: fix dpdmux default interface > Importance: High > > Acked-by: Hemant Agrawal <hemant.agra...@nxp.com> > > > On 3/30/2022 1:56 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 > > > > Signed-off-by: Tianli Lai <laitia...@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__);