raw/ifpga: fix device name format
authorWei Huang <wei.huang@intel.com>
Thu, 29 Apr 2021 02:33:40 +0000 (22:33 -0400)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Apr 2021 08:25:28 +0000 (10:25 +0200)
commit978bb0b33f4d17f4bba38f271a8fd32cbb28d34c
treed51f854ea9e7a05aa9bbe0eda100a495376e4924
parentbb3ef9aaa478c92a76546cec98b5ffd832762309
raw/ifpga: fix device name format

The device name format used in ifpga_rawdev_create() was changed to
"IFPGA:%02x:%02x.%x", but the format used in ifpga_rawdev_destroy()
was left as "IFPGA:%x:%02x.%x", it should be changed synchronously.

To prevent further similar errors, macro "IFPGA_RAWDEV_NAME_FMT" is
defined to replace this format string.

Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree")
Cc: stable@dpdk.org
Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga/ifpga_rawdev.c
drivers/raw/ifpga/ifpga_rawdev.h
drivers/raw/ifpga/rte_pmd_ifpga.c