git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: add SRAM manager model
[dpdk.git]
/
drivers
/
bus
/
ifpga
/
ifpga_bus.c
diff --git
a/drivers/bus/ifpga/ifpga_bus.c
b/drivers/bus/ifpga/ifpga_bus.c
index
addbc3e
..
62887da
100644
(file)
--- a/
drivers/bus/ifpga/ifpga_bus.c
+++ b/
drivers/bus/ifpga/ifpga_bus.c
@@
-32,8
+32,6
@@
#include "ifpga_logs.h"
#include "ifpga_common.h"
#include "ifpga_logs.h"
#include "ifpga_common.h"
-int ifpga_bus_logtype;
-
/* Forward declaration to access Intel FPGA bus
* on which iFPGA devices are connected
*/
/* Forward declaration to access Intel FPGA bus
* on which iFPGA devices are connected
*/
@@
-164,7
+162,7
@@
ifpga_scan_one(struct rte_rawdev *rawdev,
afu_dev->id.port = afu_pr_conf.afu_id.port;
if (rawdev->dev_ops && rawdev->dev_ops->dev_info_get)
afu_dev->id.port = afu_pr_conf.afu_id.port;
if (rawdev->dev_ops && rawdev->dev_ops->dev_info_get)
- rawdev->dev_ops->dev_info_get(rawdev, afu_dev);
+ rawdev->dev_ops->dev_info_get(rawdev, afu_dev
, sizeof(*afu_dev)
);
if (rawdev->dev_ops &&
rawdev->dev_ops->dev_start &&
if (rawdev->dev_ops &&
rawdev->dev_ops->dev_start &&
@@
-474,10
+472,4
@@
static struct rte_bus rte_ifpga_bus = {
};
RTE_REGISTER_BUS(IFPGA_BUS_NAME, rte_ifpga_bus);
};
RTE_REGISTER_BUS(IFPGA_BUS_NAME, rte_ifpga_bus);
-
-RTE_INIT(ifpga_init_log)
-{
- ifpga_bus_logtype = rte_log_register("bus.ifpga");
- if (ifpga_bus_logtype >= 0)
- rte_log_set_level(ifpga_bus_logtype, RTE_LOG_NOTICE);
-}
+RTE_LOG_REGISTER_DEFAULT(ifpga_bus_logtype, NOTICE);