| 64fcadea | 03-May-2022 |
Thomas Monjalon <[email protected]> |
avoid AltiVec keyword vector
The AltiVec header file is defining "vector", except in C++ build. The keyword "vector" may conflict easily. As a rule, it is better to use the alternative keyword "__ve
avoid AltiVec keyword vector
The AltiVec header file is defining "vector", except in C++ build. The keyword "vector" may conflict easily. As a rule, it is better to use the alternative keyword "__vector", so we will be able to #undef vector after including AltiVec header.
Later it may become possible to #undef vector in rte_altivec.h with a compatibility breakage.
Signed-off-by: Thomas Monjalon <[email protected]> Reviewed-by: David Christensen <[email protected]>
show more ...
|
| a137eb2b | 11-May-2022 |
Stanislaw Kardach <[email protected]> |
examples/l3fwd: fix scalar LPM
The lpm_process_event_pkt() can either process a packet using an architecture specific (defined for X86/SSE, ARM/Neon and PPC64/Altivec) path or a scalar one. The choi
examples/l3fwd: fix scalar LPM
The lpm_process_event_pkt() can either process a packet using an architecture specific (defined for X86/SSE, ARM/Neon and PPC64/Altivec) path or a scalar one. The choice is however done using an ifdef pre-processor macro. Because of that the scalar version was apparently not widely exercised/compiled. Due to some copy/paste errors, the scalar logic in lpm_process_event_pkt() retained a "continue" statement where it should utilize rfc1812_process() and return the port/BAD_PORT.
Fixes: 99fc91d18082 ("examples/l3fwd: add event lpm main loop")
Signed-off-by: Stanislaw Kardach <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
| aae4f5e0 | 13-May-2022 |
Pavan Nikhilesh <[email protected]> |
examples: use event port quiescing
Quiesce event ports used by the workers core on exit to free up any outstanding resources.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jer
examples: use event port quiescing
Quiesce event ports used by the workers core on exit to free up any outstanding resources.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| 22bfcba4 | 13-May-2022 |
Pavan Nikhilesh <[email protected]> |
examples/ipsec-secgw: cleanup worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker
examples/ipsec-secgw: cleanup worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker core might still hold a scheduling context during exit as the next call to rte_event_dequeue_burst() is never made. This might lead to deadlock based on the worker exit timing and when there are very less number of flows.
Add a cleanup function to release any scheduling contexts held by the worker by using RTE_EVENT_OP_RELEASE.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| 622ebb6b | 13-May-2022 |
Pavan Nikhilesh <[email protected]> |
examples/l2fwd-event: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker
examples/l2fwd-event: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker core might still hold a scheduling context during exit, as the next call to rte_event_dequeue_burst() is never made. This might lead to deadlock based on the worker exit timing and when there are very less number of flows.
Add clean up function to release any scheduling contexts held by the worker by using RTE_EVENT_OP_RELEASE.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| 55b22fb3 | 13-May-2022 |
Pavan Nikhilesh <[email protected]> |
examples/l3fwd: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker core
examples/l3fwd: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker core might still hold a scheduling context during exit, as the next call to rte_event_dequeue_burst() is never made. This might lead to deadlock based on the worker exit timing and when there are very less number of flows.
Add clean up function to release any scheduling contexts held by the worker by using RTE_EVENT_OP_RELEASE.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| d80176a0 | 13-May-2022 |
Pavan Nikhilesh <[email protected]> |
examples/eventdev: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker co
examples/eventdev: clean up worker state before exit
Event ports are configured to implicitly release the scheduler contexts currently held in the next call to rte_event_dequeue_burst(). A worker core might still hold a scheduling context during exit, as the next call to rte_event_dequeue_burst() is never made. This might lead to deadlock based on the worker exit timing and when there are very less number of flows.
Add clean up function to release any scheduling contexts held by the worker by using RTE_EVENT_OP_RELEASE.
Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| e4b12ba5 | 25-Apr-2022 |
David Marchand <[email protected]> |
vhost: refactor messages handlers declaration
Move message handler description and callbacks into a single array and remove unneeded VHOST_USER_MAX and VHOST_SLAVE_MAX enums.
Signed-off-by: David M
vhost: refactor messages handlers declaration
Move message handler description and callbacks into a single array and remove unneeded VHOST_USER_MAX and VHOST_SLAVE_MAX enums.
Signed-off-by: David Marchand <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
show more ...
|
| a548f7d5 | 08-Apr-2022 |
Xuan Ding <[email protected]> |
examples/vhost: use API to check in-flight packets
In async data path, call rte_vhost_async_get_inflight_thread_unsafe() API to directly return the number of in-flight packets instead of maintaining
examples/vhost: use API to check in-flight packets
In async data path, call rte_vhost_async_get_inflight_thread_unsafe() API to directly return the number of in-flight packets instead of maintaining a local variable.
Signed-off-by: Xuan Ding <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
show more ...
|
| af676be9 | 07-Apr-2022 |
Raja Zidane <[email protected]> |
examples/l2fwd-crypto: fix stats refresh rate
TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, current definition is correct for cores with frequency of 2GHZ, for cores with
examples/l2fwd-crypto: fix stats refresh rate
TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, current definition is correct for cores with frequency of 2GHZ, for cores with different frequency, it caused different periods between refresh, (i.e. the definition is about 14ms on ARM cores). The devarg that stated the period between stats print was not used, instead, it was always defaulted to 10 seconds (on 2GHZ core).
Use DPDK API to get CPU frequency, to define TIMER_MILLISECOND. Use the refresh period devarg instead of defaulting to 10s always.
Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") Cc: [email protected]
Signed-off-by: Raja Zidane <[email protected]> Acked-by: Matan Azrad <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 03382cf4 | 11-Apr-2022 |
Mattias Rönnblom <[email protected]> |
examples/bond: fix invalid use of trylock
The conditional rte_spinlock_trylock() was used as if it is an unconditional lock operation in a number of places.
Fixes: cc7e8ae84faa ("examples/bond: add
examples/bond: fix invalid use of trylock
The conditional rte_spinlock_trylock() was used as if it is an unconditional lock operation in a number of places.
Fixes: cc7e8ae84faa ("examples/bond: add example application for link bonding mode 6") Cc: [email protected]
Signed-off-by: Mattias Rönnblom <[email protected]> Acked-by: Bruce Richardson <[email protected]> Acked-by: Min Hu (Connor) <[email protected]> Acked-by: Tyler Retzlaff <[email protected]>
show more ...
|
| 0490d69d | 11-Jan-2022 |
Rahul Bhansali <[email protected]> |
examples/l3fwd: fix buffer overflow in Tx
This patch fixes the stack buffer overflow error reported from AddressSanitizer. Function send_packetsx4() tries to access out of bound data from rte_mbuf a
examples/l3fwd: fix buffer overflow in Tx
This patch fixes the stack buffer overflow error reported from AddressSanitizer. Function send_packetsx4() tries to access out of bound data from rte_mbuf and fill it into TX buffer even in the case where no pending packets (len = 0). Performance impact:- No
ASAN error report:- ==819==ERROR: AddressSanitizer: stack-buffer-overflow on address 0xffffe2c0dcf0 at pc 0x0000005e791c bp 0xffffe2c0d7e0 sp 0xffffe2c0d800 READ of size 8 at 0xffffe2c0dcf0 thread T0 #0 0x5e7918 in send_packetsx4 ../examples/l3fwd/l3fwd_common.h:251 #1 0x5e7918 in send_packets_multi ../examples/l3fwd/l3fwd_neon.h:226
Fixes: 96ff445371e0 ("examples/l3fwd: reorganise and optimize LPM code path") Cc: [email protected]
Signed-off-by: Rahul Bhansali <[email protected]> Reviewed-by: Conor Walsh <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 2e7997ce | 07-Mar-2022 |
Tianli Lai <[email protected]> |
examples/kni: add missing trailing newline in log
Add CR character at print link state information.
Fixes: db4e81351fb8 ("examples: use new link status print format") Cc: [email protected]
Signed-of
examples/kni: add missing trailing newline in log
Add CR character at print link state information.
Fixes: db4e81351fb8 ("examples: use new link status print format") Cc: [email protected]
Signed-off-by: Tianli Lai <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| 1c839246 | 22-Feb-2022 |
Wenwu Ma <[email protected]> |
examples/multi_process: make RSS and checksum optional
The default values of rx mq_mode and rx offloads for port will cause symmetric_mp startup failure if the port do not support rss or csum. This
examples/multi_process: make RSS and checksum optional
The default values of rx mq_mode and rx offloads for port will cause symmetric_mp startup failure if the port do not support rss or csum. This patch makes the app to reconfigure the NIC without them. Only quit the app if the second reconfiguration fails.
Signed-off-by: Wenwu Ma <[email protected]> Acked-by: Bruce Richardson <[email protected]> Tested-by: Wei Ling <[email protected]>
show more ...
|
| 750c1779 | 18-Jan-2022 |
Chuanshe Zhang <[email protected]> |
examples/flow_classify: fix failure message
Fixes: bab16ddaf2c1 ("examples/flow_classify: add sample application") Cc: [email protected]
Signed-off-by: Chuanshe Zhang <[email protected]>
examples/flow_classify: fix failure message
Fixes: bab16ddaf2c1 ("examples/flow_classify: add sample application") Cc: [email protected]
Signed-off-by: Chuanshe Zhang <[email protected]> Acked-by: Bernard Iremonger <[email protected]>
show more ...
|
| e7f6d128 | 07-Mar-2022 |
Honnappa Nagarahalli <[email protected]> |
examples/distributor: reduce Tx queue number to 1
Distributor application creates one Tx queue per core. However the transmit is done only from a single core. Hence creating one Tx queue is enough.
examples/distributor: reduce Tx queue number to 1
Distributor application creates one Tx queue per core. However the transmit is done only from a single core. Hence creating one Tx queue is enough.
Fixes: 07db4a975094 ("examples/distributor: new sample app") Cc: [email protected]
Signed-off-by: Honnappa Nagarahalli <[email protected]> Reviewed-by: Ruifeng Wang <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
| 8efffaec | 23-Feb-2022 |
Honnappa Nagarahalli <[email protected]> |
examples/l3fwd: make Rx and Tx queue size configurable
Make Rx and Tx queue sizes configurable from the command line. This helps DTS write better test cases.
Signed-off-by: Honnappa Nagarahalli <ho
examples/l3fwd: make Rx and Tx queue size configurable
Make Rx and Tx queue sizes configurable from the command line. This helps DTS write better test cases.
Signed-off-by: Honnappa Nagarahalli <[email protected]> Reviewed-by: Kathleen Capella <[email protected]> Reviewed-by: Ruifeng Wang <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
| e7a7add1 | 23-Feb-2022 |
Honnappa Nagarahalli <[email protected]> |
examples/l3fwd: share queue size variables
nb_rxd and nb_txd are used in polling mode and event mode of operation. nb_rxd and nb_txd are already global in polling mode but are not visible to event m
examples/l3fwd: share queue size variables
nb_rxd and nb_txd are used in polling mode and event mode of operation. nb_rxd and nb_txd are already global in polling mode but are not visible to event mode code. Make them visible to all parts of the application.
Signed-off-by: Honnappa Nagarahalli <[email protected]> Reviewed-by: Kathleen Capella <[email protected]> Reviewed-by: Ruifeng Wang <[email protected]> Acked-by: Bruce Richardson <[email protected]> Tested-by: Yingya Han < [email protected]>
show more ...
|
| e7e6dd64 | 01-Mar-2022 |
Sean Morrissey <[email protected]> |
examples/l3fwd: support config file for EM
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for EM with a format similar to l3fwd-acl one.
Users can now use the
examples/l3fwd: support config file for EM
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for EM with a format similar to l3fwd-acl one.
Users can now use the default hardcoded route tables or optionally config files for 'l3fwd_em'. Default config files have been provided for use with EM.
Related l3fwd docs have been updated to reflect these changes.
Signed-off-by: Sean Morrissey <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 52def963 | 01-Mar-2022 |
Sean Morrissey <[email protected]> |
examples/l3fwd: support config file for LPM/FIB
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for LPM and FIB, with format similar to l3fwd-acl one.
Users ca
examples/l3fwd: support config file for LPM/FIB
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for LPM and FIB, with format similar to l3fwd-acl one.
Users can now use the default hardcoded route tables or optionally config files. Default config files have been provided for use with LPM and FIB.
Signed-off-by: Sean Morrissey <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Tested-by: Yingya Han <[email protected]>
show more ...
|
| 917229c2 | 04-Mar-2022 |
Wenwu Ma <[email protected]> |
examples/vhost: fix launch with physical port
dpdk-vhost will fail to launch with a 40G i40e port because there are not enough mbufs. This patch adds a new option --total-num-mbufs, through which th
examples/vhost: fix launch with physical port
dpdk-vhost will fail to launch with a 40G i40e port because there are not enough mbufs. This patch adds a new option --total-num-mbufs, through which the user can set larger mbuf pool to avoid this problem.
Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") Cc: [email protected]
Signed-off-by: Wenwu Ma <[email protected]> Reviewed-by: Chenbo Xia <[email protected]>
show more ...
|
| 7cc8ef9c | 25-Feb-2022 |
Stephen Hemminger <[email protected]> |
add missing newline at EOF
The text files did not end with newline.
Signed-off-by: Stephen Hemminger <[email protected]> |
| 73d16d66 | 17-Feb-2022 |
Chengwen Feng <[email protected]> |
examples/vhost: remove DMA type option help info
The dma-type parameter was not supported when dmadev was integrated in vhost, but the help info still exists. This patch deletes it.
Fixes: 53d3f477
examples/vhost: remove DMA type option help info
The dma-type parameter was not supported when dmadev was integrated in vhost, but the help info still exists. This patch deletes it.
Fixes: 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")
Signed-off-by: Chengwen Feng <[email protected]> Reviewed-by: Chenbo Xia <[email protected]>
show more ...
|
| aaf4ac40 | 21-Feb-2022 |
Brian Dooley <[email protected]> |
examples/l2fwd-crypto: fix port mask overflow
Coverity flags an issue with 32-bit value. If max ethports value is configured with a value larger than 32 there will be an issue. Coverity issue: 37586
examples/l2fwd-crypto: fix port mask overflow
Coverity flags an issue with 32-bit value. If max ethports value is configured with a value larger than 32 there will be an issue. Coverity issue: 375863 Unintentional integer overflow
Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") Cc: [email protected]
Signed-off-by: Brian Dooley <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 48a39871 | 23-Feb-2022 |
Nithin Dabilpuram <[email protected]> |
examples/ipsec-secgw: add pool size parameters
Add support to enable per port packet pool and also override vector pool size from command line args. This is useful on some HW to tune performance bas
examples/ipsec-secgw: add pool size parameters
Add support to enable per port packet pool and also override vector pool size from command line args. This is useful on some HW to tune performance based on usecase.
Signed-off-by: Nithin Dabilpuram <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|