[dpdk-dev] [PATCH v8 2/9] pci: use OS generic memory mapping functions

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Mon Jun 22 23:54:12 CEST 2020


On Mon, 22 Jun 2020 10:55:22 +0300 talshn at mellanox.com wrote:

[snip]
> @@ -176,10 +177,10 @@ pci_unmap_resource(void *requested_addr, size_t size)
>  		return;
>  
>  	/* Unmap the PCI memory resource of device */
> -	if (munmap(requested_addr, size)) {
> -		RTE_LOG(ERR, EAL, "%s(): cannot munmap(%p, %#zx): %s\n",
> +	if (rte_mem_unmap(requested_addr, size)) {
> +		RTE_LOG(ERR, EAL, "%s(): cannot mem unmap(%p, %#zx): %s\n",
>  			__func__, requested_addr, size,
> -			strerror(errno));
> +			rte_strerror(errno));

errno -> rte_errno

-- 
Dmitry Kozlyuk


More information about the dev mailing list