From: Sunil Kumar Kori Date: Mon, 16 Dec 2019 15:02:53 +0000 (+0530) Subject: common/octeontx2: reduce wait time for mbox messages X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9a6dde4cd5515bef2263948d5ef15aae4fd8a94d;p=dpdk.git common/octeontx2: reduce wait time for mbox messages After each mbox send operation, context waits for minimum 1ms to get corresponding response although response can come earlier. So reducing wait time to lower granularity. Signed-off-by: Sunil Kumar Kori Acked-by: Jerin Jacob --- diff --git a/drivers/common/octeontx2/otx2_mbox.c b/drivers/common/octeontx2/otx2_mbox.c index c359bf42f3..cc341aac3f 100644 --- a/drivers/common/octeontx2/otx2_mbox.c +++ b/drivers/common/octeontx2/otx2_mbox.c @@ -278,8 +278,9 @@ mbox_wait(struct otx2_mbox *mbox, int devid, uint32_t rst_timo) volatile struct otx2_mbox_dev *mdev = &mbox->dev[devid]; uint32_t timeout = 0, sleep = 1; + rst_timo = rst_timo * 1000; /* Milli seconds to micro seconds */ while (mdev->num_msgs > mdev->msgs_acked) { - rte_delay_ms(sleep); + rte_delay_us(sleep); timeout += sleep; if (timeout >= rst_timo) { struct mbox_hdr *tx_hdr =