raw/ifpga/base: fix physical address info
authorTianfei Zhang <tianfei.zhang@intel.com>
Fri, 21 Jun 2019 08:40:16 +0000 (16:40 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 13:35:26 +0000 (15:35 +0200)
Fix miss phy_addr on ifpga_acc_get_region_info() function.

Fixes: 56bb54ea1bd ("raw/ifpga/base: add Intel FPGA OPAE share code")
Cc: stable@dpdk.org
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga_rawdev/base/ifpga_api.c

index 53d101d..7ae626d 100644 (file)
@@ -76,6 +76,7 @@ static int ifpga_acc_get_region_info(struct opae_accelerator *acc,
        info->flags = ACC_REGION_READ | ACC_REGION_WRITE | ACC_REGION_MMIO;
        info->len = afu_info->region[info->index].len;
        info->addr = afu_info->region[info->index].addr;
+       info->phys_addr = afu_info->region[info->index].phys_addr;
 
        return 0;
 }