From: Andrew Rybchenko Date: Tue, 13 Oct 2020 13:45:31 +0000 (+0100) Subject: net/sfc: log DMA allocations addresses X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2d98a5a6c224cedec8fe3150be2149258cc150ad;p=dpdk.git net/sfc: log DMA allocations addresses The information about DMA allocations is very useful for debugging. Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc.c b/drivers/net/sfc/sfc.c index 559f9039c2..cfba485ad2 100644 --- a/drivers/net/sfc/sfc.c +++ b/drivers/net/sfc/sfc.c @@ -52,6 +52,11 @@ sfc_dma_alloc(const struct sfc_adapter *sa, const char *name, uint16_t id, esmp->esm_mz = mz; esmp->esm_base = mz->addr; + sfc_info(sa, + "DMA name=%s id=%u len=%lu socket_id=%d => virt=%p iova=%lx", + name, id, len, socket_id, esmp->esm_base, + (unsigned long)esmp->esm_addr); + return 0; }