Skip to content

Commit

Permalink
net/dpaa2: fix dpdmux default interface
Browse files Browse the repository at this point in the history
[ upstream commit 0b5da8c ]

if dpdmux objects created by restool tools with
the argument "--default-if=<if-id-number>", this
function would change it to 1

Fixes: 1def64c ("net/dpaa2: add dpdmux initialization and configuration")

Signed-off-by: Tianli Lai <laitianli@tom.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
laitianli authored and kevintraynor committed May 9, 2022
1 parent d8898f0 commit 9c267cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dpaa2/dpaa2_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down

0 comments on commit 9c267cb

Please sign in to comment.