diff options
author | Prabhakar Kushwaha <prabhakar@freescale.com> | 2015-12-24 15:33:13 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-01-27 08:13:11 -0800 |
commit | 6073548a0be534c8ca52061a0d727bf156a1a816 (patch) | |
tree | fb1d35ac78ebbb5546ae5b3542da1b069bf6fec2 /drivers/net | |
parent | 879a59ac902f862daf974dcab1726b9b515e278e (diff) | |
download | u-boot-imx-6073548a0be534c8ca52061a0d727bf156a1a816.zip u-boot-imx-6073548a0be534c8ca52061a0d727bf156a1a816.tar.gz u-boot-imx-6073548a0be534c8ca52061a0d727bf156a1a816.tar.bz2 |
driver: net: ldpaa: Report back only error frames for tx
Management Complex FW 9.0 puts a new requirement to provide Tx
confirmation and error queue configuration by calling
dpni_set_tx_conf API.
Configure report of only error frames for a tx frame.
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ldpaa_eth/ldpaa_eth.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 09163a6..5138e78 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -783,6 +783,7 @@ static int ldpaa_dpni_bind(struct ldpaa_eth_priv *priv) { struct dpni_pools_cfg pools_params; struct dpni_tx_flow_cfg dflt_tx_flow; + struct dpni_tx_conf_cfg tx_conf_cfg; int err = 0; pools_params.num_dpbp = 1; @@ -807,6 +808,17 @@ static int ldpaa_dpni_bind(struct ldpaa_eth_priv *priv) return err; } + memset(&tx_conf_cfg, 0, sizeof(struct dpni_tx_conf_cfg)); + tx_conf_cfg.errors_only = true; + /*Set tx-conf and error configuration*/ + err = dpni_set_tx_conf(dflt_mc_io, MC_CMD_NO_FLAGS, + dflt_dpni->dpni_handle, + priv->tx_flow_id, &tx_conf_cfg); + if (err) { + printf("dpni_set_tx_conf() failed\n"); + return err; + } + return 0; } |