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
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
eventdev
/
rte_event_eth_tx_adapter.h
diff --git
a/lib/eventdev/rte_event_eth_tx_adapter.h
b/lib/eventdev/rte_event_eth_tx_adapter.h
index
8c59547
..
3908c2d
100644
(file)
--- a/
lib/eventdev/rte_event_eth_tx_adapter.h
+++ b/
lib/eventdev/rte_event_eth_tx_adapter.h
@@
-355,16
+355,19
@@
rte_event_eth_tx_adapter_enqueue(uint8_t dev_id,
uint16_t nb_events,
const uint8_t flags)
{
uint16_t nb_events,
const uint8_t flags)
{
- const struct rte_eventdev *dev = &rte_eventdevs[dev_id];
+ const struct rte_event_fp_ops *fp_ops;
+ void *port;
+ fp_ops = &rte_event_fp_ops[dev_id];
+ port = fp_ops->data[port_id];
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
if (dev_id >= RTE_EVENT_MAX_DEVS ||
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
if (dev_id >= RTE_EVENT_MAX_DEVS ||
-
!rte_eventdevs[dev_id].attached
) {
+
port_id >= RTE_EVENT_MAX_PORTS_PER_DEV
) {
rte_errno = EINVAL;
return 0;
}
rte_errno = EINVAL;
return 0;
}
- if (port
_id >= dev->data->nb_ports
) {
+ if (port
== NULL
) {
rte_errno = EINVAL;
return 0;
}
rte_errno = EINVAL;
return 0;
}
@@
-372,11
+375,9
@@
rte_event_eth_tx_adapter_enqueue(uint8_t dev_id,
rte_eventdev_trace_eth_tx_adapter_enqueue(dev_id, port_id, ev,
nb_events, flags);
if (flags)
rte_eventdev_trace_eth_tx_adapter_enqueue(dev_id, port_id, ev,
nb_events, flags);
if (flags)
- return dev->txa_enqueue_same_dest(dev->data->ports[port_id],
- ev, nb_events);
+ return fp_ops->txa_enqueue_same_dest(port, ev, nb_events);
else
else
- return dev->txa_enqueue(dev->data->ports[port_id], ev,
- nb_events);
+ return fp_ops->txa_enqueue(port, ev, nb_events);
}
/**
}
/**