| #
b450a990 |
| 24-Mar-2022 |
David Marchand <[email protected]> |
eventdev/eth_rx: fix telemetry Rx stats reset
Caught by covscan:
1. dpdk-21.11/lib/eventdev/rte_event_eth_rx_adapter.c:3279: logical_vs_bitwise: "~(*__ctype_b_loc()[(int)*params] & 2048 /* (unsigne
eventdev/eth_rx: fix telemetry Rx stats reset
Caught by covscan:
1. dpdk-21.11/lib/eventdev/rte_event_eth_rx_adapter.c:3279: logical_vs_bitwise: "~(*__ctype_b_loc()[(int)*params] & 2048 /* (unsigned short)_ISdigit */)" is always 1/true regardless of the values of its operand. This occurs as the logical second operand of "||". 2. dpdk-21.11/lib/eventdev/rte_event_eth_rx_adapter.c:3279: remediation: Did you intend to use "!" rather than "~"?
While isdigit return value should be compared as an int to 0, prefer ! since all of this file uses this convention.
Fixes: 814d01709328 ("eventdev/eth_rx: support telemetry") Cc: [email protected]
Signed-off-by: David Marchand <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2 |
|
| #
95138712 |
| 14-Feb-2022 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: fix queue config query
Remove the memcpy usage in queue config get function for `event` variable which is 8 byte size and use direct copy. Also provide vector information and event
eventdev/eth_rx: fix queue config query
Remove the memcpy usage in queue config get function for `event` variable which is 8 byte size and use direct copy. Also provide vector information and event buffer size in the queue config info.
Fixes: da781e6488 ("eventdev/eth_rx: support Rx queue config get") Cc: [email protected]
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
|
Revision tags: v22.03-rc1 |
|
| #
74b034ff |
| 04-Feb-2022 |
Weiguo Li <[email protected]> |
eventdev/eth_rx: fix parameters parsing memory leak
The memory get from strdup should be freed when parameter parsing finished, and also should be freed when error occurs.
Fixes: 814d01709328 ("eve
eventdev/eth_rx: fix parameters parsing memory leak
The memory get from strdup should be freed when parameter parsing finished, and also should be freed when error occurs.
Fixes: 814d01709328 ("eventdev/eth_rx: support telemetry") Fixes: 9e583185318f ("eventdev/eth_rx: support telemetry") Cc: [email protected]
Signed-off-by: Weiguo Li <[email protected]> Acked-by: Ganapati Kundapura <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
6ff23631 |
| 22-Jan-2022 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: add event port get API
This patch introduces new api for retrieving event port id of eth rx adapter.
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Ja
eventdev/eth_rx: add event port get API
This patch introduces new api for retrieving event port id of eth rx adapter.
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
de3c3a2f |
| 13-Dec-2021 |
Pavan Nikhilesh <[email protected]> |
eventdev/eth_rx: fix missing internal port checks
When event delivery is through internal port, stats are maintained by HW and we should avoid reading SW data structures for stats. Fix missing inter
eventdev/eth_rx: fix missing internal port checks
When event delivery is through internal port, stats are maintained by HW and we should avoid reading SW data structures for stats. Fix missing internal port checks.
Fixes: 995b150c1ae1 ("eventdev/eth_rx: add queue stats API") Cc: [email protected]
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
7be78d02 |
| 29-Nov-2021 |
Josh Soref <[email protected]> |
fix spelling in comments and strings
The tool comes from https://github.com/jsoref
Signed-off-by: Josh Soref <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]>
|
|
Revision tags: v21.11, v21.11-rc4, v21.11-rc3 |
|
| #
572dce2b |
| 10-Nov-2021 |
Mattias Rönnblom <[email protected]> |
eventdev/eth_rx: fix stalls on event device backpressure
In the Eventdev Ethernet RX Adapter, correctly handle the case where the circular enqueue buffer head and last index point to the same elemen
eventdev/eth_rx: fix stalls on event device backpressure
In the Eventdev Ethernet RX Adapter, correctly handle the case where the circular enqueue buffer head and last index point to the same element.
This bug may be triggered in case there is backpressure from the event device to the RX adapter.
Fixes: 8113fd15e229 ("eventdev/eth_rx: make enqueue buffer circular")
Signed-off-by: Mattias Rönnblom <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc2 |
|
| #
578402f2 |
| 01-Nov-2021 |
Mattias Rönnblom <[email protected]> |
eventdev: support device maintenance in adapters
Introduce support for event devices requiring calls to rte_event_maintain() in the Ethernet RX, Timer and Crypto Eventdev adapters.
Signed-off-by: M
eventdev: support device maintenance in adapters
Introduce support for event devices requiring calls to rte_event_maintain() in the Ethernet RX, Timer and Crypto Eventdev adapters.
Signed-off-by: Mattias Rönnblom <[email protected]> Tested-by: Richard Eklycke <[email protected]>
show more ...
|
| #
9e583185 |
| 28-Oct-2021 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: support telemetry
Added telemetry support for rxa_queue_stats and rxa_queue_stats_reset to get and reset rx queue stats respectively.
Signed-off-by: Naga Harish K S V <s.v.naga.har
eventdev/eth_rx: support telemetry
Added telemetry support for rxa_queue_stats and rxa_queue_stats_reset to get and reset rx queue stats respectively.
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
995b150c |
| 28-Oct-2021 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: add queue stats API
This patch adds new api ``rte_event_eth_rx_adapter_queue_stats_get`` to retrieve queue stats. The queue stats are in the format ``struct rte_event_eth_rx_adapter
eventdev/eth_rx: add queue stats API
This patch adds new api ``rte_event_eth_rx_adapter_queue_stats_get`` to retrieve queue stats. The queue stats are in the format ``struct rte_event_eth_rx_adapter_queue_stats``.
For resetting the queue stats, ``rte_event_eth_rx_adapter_queue_stats_reset`` api is added.
The adapter stats_get and stats_reset apis are also updated to handle queue level event buffer use case.
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc1 |
|
| #
daa02b5c |
| 15-Oct-2021 |
Olivier Matz <[email protected]> |
mbuf: add namespace to offload flags
Fix the mbuf offload flags namespace by adding an RTE_ prefix to the name. The old flags remain usable, but a deprecation warning is issued at compilation.
Sign
mbuf: add namespace to offload flags
Fix the mbuf offload flags namespace by adding an RTE_ prefix to the name. The old flags remain usable, but a deprecation warning is issued at compilation.
Signed-off-by: Olivier Matz <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Somnath Kotur <[email protected]>
show more ...
|
| #
81da8a5f |
| 18-Oct-2021 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: fix WRR buffer overrun
When a poll queue is removed from a rx_adapter instance, the WRR poll array is recomputed. The wrr array length is reduced in this case. The next wrr position
eventdev/eth_rx: fix WRR buffer overrun
When a poll queue is removed from a rx_adapter instance, the WRR poll array is recomputed. The wrr array length is reduced in this case. The next wrr position to poll is stored in wrr_pos variable of rx_adapter instance. This wrr_pos can become invalid in some cases after wrr is recomputed. Using this variable to get the next queue and device pair may leed to wrr buffer overruns.
Resetting the wrr_pos to zero after recomputation of wrr array fixes the buffer overrun issue.
Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation") Cc: [email protected]
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
f26f2ca6 |
| 18-Oct-2021 |
Pavan Nikhilesh <[email protected]> |
eventdev: make trace API internal
Slowpath trace APIs are only used in rte_eventdev.c so make them as internal.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jay Jayatheerthan
eventdev: make trace API internal
Slowpath trace APIs are only used in rte_eventdev.c so make them as internal.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Abhinandan Gujjar <[email protected]>
show more ...
|
| #
a256a743 |
| 18-Oct-2021 |
Pavan Nikhilesh <[email protected]> |
eventdev: remove rte prefix for internal structs
Remove rte_ prefix from rte_eth_event_enqueue_buffer, rte_event_eth_rx_adapter and rte_event_crypto_adapter as they are only used in rte_event_eth_rx
eventdev: remove rte prefix for internal structs
Remove rte_ prefix from rte_eth_event_enqueue_buffer, rte_event_eth_rx_adapter and rte_event_crypto_adapter as they are only used in rte_event_eth_rx_adapter.c and rte_event_crypto_adapter.c
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Abhinandan Gujjar <[email protected]>
show more ...
|
| #
814d0170 |
| 13-Oct-2021 |
Ganapati Kundapura <[email protected]> |
eventdev/eth_rx: support telemetry
Added telemetry callbacks to get Rx adapter stats, reset stats and to get Rx queue config information.
Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel
eventdev/eth_rx: support telemetry
Added telemetry callbacks to get Rx adapter stats, reset stats and to get Rx queue config information.
Signed-off-by: Ganapati Kundapura <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Naga Harish K S V <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
b06bca69 |
| 06-Oct-2021 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: add per-queue event buffer
Added per queue buffer. To configure per queue event buffer size, application sets rte_event_eth_rx_adapter_params::use_queue_event_buf flag as true while
eventdev/eth_rx: add per-queue event buffer
Added per queue buffer. To configure per queue event buffer size, application sets rte_event_eth_rx_adapter_params::use_queue_event_buf flag as true while using rte_event_eth_rx_adapter_create_with_params().
The per queue event buffer size is populated in rte_event_eth_rx_adapter_queue_conf::event_buf_size and passed to rte_event_eth_rx_adapter_queue_add().
Signed-off-by: Naga Harish K S V <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]>
show more ...
|
| #
bc0df25c |
| 06-Oct-2021 |
Naga Harish K S V <[email protected]> |
eventdev/eth_rx: add event buffer size configurability
Currently event buffer is static array with a default size defined internally.
To configure event buffer size from application, rte_event_eth_
eventdev/eth_rx: add event buffer size configurability
Currently event buffer is static array with a default size defined internally.
To configure event buffer size from application, rte_event_eth_rx_adapter_create_with_params() API is added which takes struct rte_event_eth_rx_adapter_params to configure event buffer size in addition other params. The event buffer size is rounded up for better buffer utilization and performance. In case of NULL params argument, default event buffer size is used.
Signed-off-by: Naga Harish K S V <[email protected]> Signed-off-by: Ganapati Kundapura <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
da781e64 |
| 16-Sep-2021 |
Ganapati Kundapura <[email protected]> |
eventdev/eth_rx: support Rx queue config get
Added rte_event_eth_rx_adapter_queue_conf_get() API to get rx queue information - event queue identifier, flags for handling received packets, scheduler
eventdev/eth_rx: support Rx queue config get
Added rte_event_eth_rx_adapter_queue_conf_get() API to get rx queue information - event queue identifier, flags for handling received packets, scheduler type, event priority, polling frequency of the receive queue and flow identifier in rte_event_eth_rx_adapter_queue_conf structure
Signed-off-by: Ganapati Kundapura <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
83ab470d |
| 28-Sep-2021 |
Ganapati Kundapura <[email protected]> |
eventdev/eth_rx: use timestamp as dynamic mbuf field
Add support to register timestamp dynamic field in mbuf.
Update the timestamp in mbuf for each packet before enqueuing to event device if the ti
eventdev/eth_rx: use timestamp as dynamic mbuf field
Add support to register timestamp dynamic field in mbuf.
Update the timestamp in mbuf for each packet before enqueuing to event device if the timestamp is not already set.
Adding the timestamp in Rx adapter avoids additional latency due to the event device.
Signed-off-by: Ganapati Kundapura <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
929ebdd5 |
| 15-Sep-2021 |
Pavan Nikhilesh <[email protected]> |
eventdev/eth_rx: simplify event vector config
Include vector configuration into the structure ``rte_event_eth_rx_adapter_queue_conf`` that is used to configure Rx adapter ethernet device Rx queue pa
eventdev/eth_rx: simplify event vector config
Include vector configuration into the structure ``rte_event_eth_rx_adapter_queue_conf`` that is used to configure Rx adapter ethernet device Rx queue parameters. This simplifies event vector configuration as it avoids splitting configuration per Rx queue.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jay Jayatheerthan <[email protected]> Acked-by: Ray Kinsella <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
8113fd15 |
| 30-Aug-2021 |
Ganapati Kundapura <[email protected]> |
eventdev/eth_rx: make enqueue buffer circular
Rx adapter uses memove() to move unprocessed events to the beginning of the packet enqueue buffer. The use memmove() was found to consume good amount of
eventdev/eth_rx: make enqueue buffer circular
Rx adapter uses memove() to move unprocessed events to the beginning of the packet enqueue buffer. The use memmove() was found to consume good amount of CPU cycles (about 20%).
This patch removes the use of memove() while implementing a circular buffer to avoid copying of data. With this change RX adapter is able to fill the buffer of 16384 events.
Signed-off-by: Ganapati Kundapura <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
f9bdee26 |
| 13-Oct-2021 |
Konstantin Ananyev <[email protected]> |
ethdev: hide internal structures
Move rte_eth_dev, rte_eth_dev_data, rte_eth_rxtx_callback and related data into private header (ethdev_driver.h). Few minor changes to keep DPDK building after that.
ethdev: hide internal structures
Move rte_eth_dev, rte_eth_dev_data, rte_eth_rxtx_callback and related data into private header (ethdev_driver.h). Few minor changes to keep DPDK building after that.
Signed-off-by: Konstantin Ananyev <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]> Tested-by: Feifei Wang <[email protected]>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2 |
|
| #
f6681ab7 |
| 30-Apr-2021 |
Chengwen Feng <[email protected]> |
eventdev: fix memory leakage on thread creation failure
This patch fixes the issue that epoll_events memory is not released after the intr thread created fail.
Fixes: 3810ae435783 ("eventdev: add i
eventdev: fix memory leakage on thread creation failure
This patch fixes the issue that epoll_events memory is not released after the intr thread created fail.
Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") Cc: [email protected]
Signed-off-by: Chengwen Feng <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| #
0bac9fc7 |
| 30-Apr-2021 |
Chengwen Feng <[email protected]> |
eventdev: remove redundant thread name setting
The thread name already set by rte_ctrl_thread_create() API, so remove the call of rte_thread_setname() API.
Fixes: 3810ae435783 ("eventdev: add inter
eventdev: remove redundant thread name setting
The thread name already set by rte_ctrl_thread_create() API, so remove the call of rte_thread_setname() API.
Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") Cc: [email protected]
Signed-off-by: Chengwen Feng <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
|
Revision tags: v21.05-rc1 |
|
| #
99a2dd95 |
| 20-Apr-2021 |
Bruce Richardson <[email protected]> |
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also m
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal'
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|