git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/dpaa2: fix dpdmux default interface
[dpdk.git]
/
drivers
/
net
/
dpaa2
/
dpaa2_mux.c
diff --git
a/drivers/net/dpaa2/dpaa2_mux.c
b/drivers/net/dpaa2/dpaa2_mux.c
index
cd2f7b8
..
e8689a7
100644
(file)
--- 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,
}
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__);
if (ret) {
DPAA2_PMD_ERR("setting default interface failed in %s",
__func__);
@@
-353,8
+353,7
@@
dpaa2_create_dpdmux_device(int vdev_fd __rte_unused,
return 0;
init_err:
return 0;
init_err:
- if (dpdmux_dev)
- rte_free(dpdmux_dev);
+ rte_free(dpdmux_dev);
return -1;
}
return -1;
}