net/dpaa2: fix DPDMUX error behaviour
Driver is giving the wrong interface ID while setting the error behaviour. This patch fixes the issue by passing the correct MAC interface index value to the API. Fixes: 3d43972b1b42 ("net/dpaa2: do not drop parse error packets by dpdmux") Cc: stable@dpdk.org Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
fe10f6cc1c
commit
e45956ce18
@ -66,6 +66,9 @@
|
||||
/* Tx confirmation enabled */
|
||||
#define DPAA2_TX_CONF_ENABLE 0x06
|
||||
|
||||
/* DPDMUX index for DPMAC */
|
||||
#define DPAA2_DPDMUX_DPMAC_IDX 0
|
||||
|
||||
/* HW loopback the egress traffic to self ingress*/
|
||||
#define DPAA2_TX_MAC_LOOPBACK_MODE 0x20
|
||||
|
||||
|
@ -336,7 +336,7 @@ dpaa2_create_dpdmux_device(int vdev_fd __rte_unused,
|
||||
|
||||
ret = dpdmux_if_set_errors_behavior(&dpdmux_dev->dpdmux,
|
||||
CMD_PRI_LOW,
|
||||
dpdmux_dev->token, dpdmux_id,
|
||||
dpdmux_dev->token, DPAA2_DPDMUX_DPMAC_IDX,
|
||||
&mux_err_cfg);
|
||||
if (ret) {
|
||||
DPAA2_PMD_ERR("dpdmux_if_set_errors_behavior %s err %d",
|
||||
|
Loading…
x
Reference in New Issue
Block a user