eal: hide internal device event structure
This structure is not used in the public API.
Fixes: a753e53d51
("eal: add device event monitor framework")
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
This commit is contained in:
parent
e200535c1c
commit
22a2f54f25
@ -70,9 +70,6 @@ Deprecation Notices
|
||||
* eal: The function ``rte_eal_remote_launch`` will return new error codes
|
||||
after read or write error on the pipe, instead of calling ``rte_panic``.
|
||||
|
||||
* eal: The ``rte_dev_event`` structure will be made private to the EAL as no
|
||||
public API makes use of it.
|
||||
|
||||
* rte_atomicNN_xxx: These APIs do not take memory order parameter. This does
|
||||
not allow for writing optimized code for all the CPU architectures supported
|
||||
in DPDK. DPDK will adopt C11 atomic operations semantics and provide wrappers
|
||||
|
@ -87,6 +87,9 @@ API Changes
|
||||
* eal: The ``rte_logs`` struct and global symbol was made private
|
||||
and is no longer part of the API.
|
||||
|
||||
* eal: Made the ``rte_dev_event`` structure private to the EAL as no public API
|
||||
used it.
|
||||
|
||||
* mem: Removed the unioned field ``phys_addr`` from
|
||||
the structures ``rte_memseg`` and ``rte_memzone``.
|
||||
The field ``iova`` is remaining from the old unions.
|
||||
|
@ -33,12 +33,6 @@ enum rte_dev_event_type {
|
||||
RTE_DEV_EVENT_MAX /**< max value of this enum */
|
||||
};
|
||||
|
||||
struct rte_dev_event {
|
||||
enum rte_dev_event_type type; /**< device event type */
|
||||
int subsystem; /**< subsystem id */
|
||||
char *devname; /**< device name */
|
||||
};
|
||||
|
||||
typedef void (*rte_dev_event_cb_fn)(const char *device_name,
|
||||
enum rte_dev_event_type event,
|
||||
void *cb_arg);
|
||||
|
@ -133,6 +133,12 @@ dev_uev_socket_fd_create(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct rte_dev_event {
|
||||
enum rte_dev_event_type type; /**< device event type */
|
||||
int subsystem; /**< subsystem id */
|
||||
char *devname; /**< device name */
|
||||
};
|
||||
|
||||
static int
|
||||
dev_uev_parse(const char *buf, struct rte_dev_event *event, int length)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user