From 8f241478d649bfafb73f7fe0e4ae5e3d80b73bab Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 7 May 2015 16:02:14 +0200 Subject: In IPEDMA use negotiated payload instead of maximum supported by device --- dma/ipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dma') diff --git a/dma/ipe.c b/dma/ipe.c index 89c645f..fc75fb3 100644 --- a/dma/ipe.c +++ b/dma/ipe.c @@ -206,7 +206,7 @@ int dma_ipe_start(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, pcilib_dm #else /* IPEDMA_TLP_SIZE */ link_info = pcilib_get_pcie_link_info(vctx->pcilib); if (link_info) { - tlp_size = 1<max_payload; + tlp_size = 1<payload; if (tlp_size > IPEDMA_MAX_TLP_SIZE) tlp_size = IPEDMA_MAX_TLP_SIZE; } else tlp_size = 128; -- cgit v1.2.3