From: Nipun Gupta Date: Fri, 12 Oct 2018 10:04:12 +0000 (+0530) Subject: net/dpaa2: fix IOVA conversion for congestion memory X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=543dbfec6e85ede9943679cc9b6e99319111256e;p=dpdk.git net/dpaa2: fix IOVA conversion for congestion memory The code was incorrectly using the Virtual mode, whent the IOVA mode was set as Physical. Fixes: 5ae1edff6895 ("dpaa2: prepare for 32-bit build") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 880034fcfc..9ae326023c 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -568,7 +568,8 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev, */ cong_notif_cfg.threshold_exit = CONG_EXIT_TX_THRESHOLD; cong_notif_cfg.message_ctx = 0; - cong_notif_cfg.message_iova = (size_t)dpaa2_q->cscn; + cong_notif_cfg.message_iova = + (size_t)DPAA2_VADDR_TO_IOVA(dpaa2_q->cscn); cong_notif_cfg.dest_cfg.dest_type = DPNI_DEST_NONE; cong_notif_cfg.notification_mode = DPNI_CONG_OPT_WRITE_MEM_ON_ENTER |