summaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Collapse)AuthorFilesLines
2024-01-17octeon: native driver for Marvell Octeon SoCDamjan Marion1-0/+46
Type: feature Change-Id: I6898625c4e8854f777407dac3159e4c639a54860 Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com> Signed-off-by: Damjan Marion <damarion@cisco.com>
2024-01-12libmemif: fix segfault and buffer overflow in examplesTianyu Li3-4/+6
- Fix buffer overflow caused by strncpy(dst, src, strlen(src)), use sized buffer to ensure overflow safe. - Fix test_app getopt usage When use example/icmp_responder in slave mode - Fix segfault when buffer size is not specified - Fix wrong packet send out. Type: fix Signed-off-by: Tianyu Li <tianyu.li@arm.com> Change-Id: I5ed47fd8e630420d7ae0203a2605d2b9abd33d2a
2024-01-12libmemif: fix for memif_init_queues slot mathmbly1-5/+9
Increase slot variable to u32 to address combinations of num-queues and queue-size that cause slot variable to wrap when declared as u16, e.g. num-queues > 8 && queue-size is 2^12 Type: fix Change-Id: I5bd6198d60395156a06f1a280ea2594824ceaa9d Signed-off-by: mbly <mbly@ciena.com>
2024-01-12libmemif: Fix for memif_buffer_alloc rewind logicmbly1-18/+13
Rewind logic was not supporting count = 1, where size was > memif_buffer_size and a rewind is required. Fixed slot-->next_buf bug for !master as well. Type: fix Change-Id: I65cf0d3d0c105f37125412a613e5ff8c5da9a3a2 Signed-off-by: mbly <mbly@ciena.com>
2024-01-12libmemif: added testsDaniel Béreš8-1/+881
This patch provides unit tests for libmemif written in Unity Type: test Signed-off-by: Daniel Béreš <dberes@cisco.com> Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I19116def6e6d28efd5f460c93911245474a11321
2024-01-11hs-test: add more assertsFilip Tehlar5-13/+13
Type: test Change-Id: Ia285ff39d9b19464ea086ec847ceaf52c6c0195c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2024-01-11hs-test: add tls proxy testFilip Tehlar3-12/+22
Type: test Change-Id: I8f3f4c464907356bb1990ea53f0f46befc057acf Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2024-01-11hs-test: retry command on test setup failureFilip Tehlar1-3/+15
Type: test Change-Id: Iad744c4b3f79820e8bd0dd2ef9f18e4f7718e845 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2024-01-09session: support for cl port reuseFlorin Coras1-2/+3
Adds support for connectionless listener port reuse. Until now, cl listeners had fifos allocated to them and therefore only one app worker could ever listen, i.e., a session cannot have multiple fifos. To circumvent the limitation, this separates the fifos from the listener by allocating new cl sessions for each app worker that reuses the app listener. Flows are hashed to app worker cl sessions but, for now, this is not a consistent/fixed hash. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ic6533cd47f2765903669f88c288bd592fb17a19e
2023-12-23hs-test: more proxy vars for docker buildsFlorin Coras1-2/+6
Type: improvement Change-Id: Ica9d87abde7a1dc0b4007911a7e0abab46dfb75d Signed-off-by: Florin Coras <fcoras@cisco.com>
2023-12-22hs-test: use prebuilt curl with http3 supportFlorin Coras3-36/+5
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I4d17ae3f7736dc10c68ca6e304699ea39d012f6c
2023-12-15hs-test: decrease docker image sizeFilip Tehlar1-2/+5
Type: test Change-Id: Ic1ad2f1f983ad8f8e8e8813f941e11757930c92e Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-12-15hs-test: remove unnecessary app ns configsFilip Tehlar4-32/+26
Type: test Change-Id: I0226227dc756a5a3af5e9d3b0d65a38c0aa55b3d Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-11-30hs-test: add http prom testFilip Tehlar3-0/+16
Type: test Change-Id: Ia15ecc3cf2c087a6959601ff02e187c32570ff60 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-11-15docs: Remove references to vlan-strip-offload as it is deprecatedSteven Luong1-4/+0
Type: fix Change-Id: I3a258433cf507f48cd67332387eb7fef103a88f8 Signed-off-by: Steven Luong <sluong@cisco.com>
2023-10-26hsa: unify echo test setupFilip Tehlar2-31/+86
Type: test Change-Id: I8665492c2f7755901a428aacdb27e98329ff557a Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-10-05vpp-swan: fix config to run containersGabriel Oginski1-2/+2
This patch changes config to run containers on Ubuntu 22.04. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: I3be48099cb48d2c4a04526c15780244614bef3d4
2023-09-15vpp-swan: fix configuration of policiesGabriel Oginski1-15/+16
This patch fixes configuration of priority, port and type of protocol for inbound and outbound policies in policy-based IPsec of this plugin. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: I01ddc2e13ebbe87380e66a525aac1b615f619604
2023-09-05hs-test: point gdb to vpp source filesFilip Tehlar4-1/+15
Type: test Change-Id: Ie5867737e5d49fd45cc15b690af3493263fb2f6f Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-09-05hs-test: verbose output on single test runFilip Tehlar1-1/+1
Type: test Change-Id: I12ae7db36a6f7f9758fd195088877dfcd5606f84 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-09-04hs-test: log external appsFilip Tehlar7-94/+97
Type: test Change-Id: Id2b0d408bd46f20b81422506f9db4eb655feddac Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-09-04hs-test: fix gdb attachFilip Tehlar1-3/+2
Type: test Change-Id: Ic48ca7a3aab47df50d4e38e6123c90140c944172 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-08-16tests docs: update python3 venv packagesDave Wallace2-2/+1
- Package update performed by 1. updating pip, pip-tools, setuptools 2. 'make test-refresh-deps' on ubuntu 22.04 3. fixing 'make test' and 'make docs' issues on ubuntu 22.04 4. 'make test-refresh-deps' on ubuntu 20.04 - Add dependency for 'make test-refresh-deps' to insure python venv is set up. - Update of python formatter, black, caused reformating of 41 python code files. Type: make Change-Id: I7cafdf4b5189065ac57cb6b254937f6e0897a924 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2023-07-31libmemif: add support for buffer sizeMohsin Kazmi1-2/+11
Type: improvement buffer size can be configurable: ./test_app -b 9216 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Id77f6baac27d45dec3d5b7ea8a9a53acf2a302fc
2023-07-28hs-test: improve get statsFilip Tehlar2-4/+19
Type: test Change-Id: Ie681ee43007f4fe787d51d80bda9b433dcb6c09a Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-07-24vpp-swan: fix handler API messagesGabriel Oginski1-19/+26
In the current implementation there is a bug related to the incorrect message handling due to the wrong id. The fix changes logic responsible for handling incoming API messages by correcting their ids. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: Iea29506053c9fd2e1d01bce83e7f4a6e1de39321
2023-07-19vpp-swan: change flow in function for add routeGabriel Oginski3-16/+27
This patch addresses the issue when the list of available interfaces is not up to date. Due to this issue adding a new route fails and finally the connection is not established. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: I3a63c0dd99ebc28ea149b4b23867440937682761
2023-07-19vpp-swan: fix incorrect msg ID in register_eventGabriel Oginski1-5/+7
This patch addresses the issue where the message ID registration in the register_event function is incorrect. Due to this incorrect registration, the lookup for the corresponding callback on received messages fails, eventually leading to a segmentation fault and double-free memory space. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: If95182f972f64adb44d514e18c831cc9627d8f0f
2023-07-19vpp-swan: fix function to get sw_if_indexGabriel Oginski1-6/+23
In the current implementation there is a bug in the function responsible for getting software interface index by the name of the interface. Incorrect function is used to send the API message, also the handler with replied message is incorrect. The fix changes function to send dump message and also adds handler with replied message in the correct way. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: Id1a3ba2ce7e92d216907f344431b9e2acb1d5572
2023-07-06build: generate debug info rpm packages for opensuseLaszlo Kiraly1-0/+2
Enabling debug info RPM creation in spec file. Type: fix Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech> Change-Id: Id284b135ec4125905145f7902a6e1cf42ba65aa4
2023-07-04packetforge: fix has_key invalid in python3Ting Xu2-5/+5
Python Dict attribute "has_key" was removed in Python3. Use "in" operation instead. Type: fix Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: I7b63b0689e9970ca798921368c5616875f7d5682
2023-06-27hs-test: add nginx+quic testFilip Tehlar18-5/+235
Type: test Change-Id: I15e4f2fb84cb4f34b6fea95978db000854a63e78 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-06-22tests docs: fix lcov code coverage report generationDave Wallace3-67/+0
- Updated/rebased version of https://gerrit.fd.io/r/c/vpp/+/34199 Type: test Change-Id: I43913ecfd11a4578bdb10c4be76253fe38d57976 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2023-06-08hs-test: increase test run timeoutFilip Tehlar1-1/+1
Type: test Change-Id: Ica211c79373777c3352d6ccbb619c0d67b70fa06 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-06-08hs-test: rename address allocatorFilip Tehlar4-59/+59
Type: test Change-Id: I1745719315d4e0785df5a03aa4312f84c40cb18f Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-06-01hs-test: fix vcl test parameterFilip Tehlar1-1/+1
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ieb6e46439d8e66a792f9c508e7dc49ecdd392487
2023-05-30libmemif: add testing applicationMohsin Kazmi3-1/+317
Type: test This application creates two memif interfaces which connect to an external application i.e. VPP. Usage: 1) Start VPP with following config. create interface memif id 0 master create interface memif id 1 master set int state memif0/0 up set int state memif0/1 up create packet-generator interface pg0 set int state pg0 up create packet-generator interface pg1 set int state pg1 up set int l2 xconn pg0 memif0/0 set int l2 xconn memif0/0 pg0 set int l2 xconn pg1 memif0/1 set int l2 xconn memif0/1 pg1 packet-generator new { \ name memif \ limit -1 \ node ethernet-input \ size 64-64 \ interface pg0 \ worker 0 \ data { \ IP4: 42:01:0a:00:00:0a -> 02:fe:4b:6e:4d:c1 \ UDP: 172.16.2.2 -> 172.16.0.2 \ UDP: 1234 -> 1234 \ length 30 checksum 0 incrementing 1 \ } \ } 2) Compile and Run the test_app in another terminal. mkdir -p extras/libmemif/build cd extras/libmemif/build cmake .. make sudo ./examples/test_app 3) Run in VPP cli vpp# packet enable 4) Run monitor to see the throughput and pps vpp# monitor interface memif0/0 Or vpp# monitor interface memif0/1 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I4b9062fca8ad3020225adb7b1b09e5d66b1a7d48
2023-05-24hs-test: add vcl echo testsFilip Tehlar3-32/+63
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I3e543cb292c7ed0f9d240f8f2473a1db07aff0fd
2023-05-20hs-test: support for multiple workersFilip Tehlar13-48/+173
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ie90e4b02c268bc3ca40171b03829f5686fb83162
2023-05-15packetforge: add option to show spec and mask onlyTing Xu4-40/+141
In some cases with Generic FLow, it is only required to show the pattern of spec and mask, but no need to add the flow. Therefore, add an option in packetforge so that users can show spec and mask only. Type: improvement Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: I7b3040689eb82d0b58924712ee6fc9cfa0a42fa1
2023-04-26hs-test: add missing make target for .deps.okDave Wallace1-0/+3
Type: make Change-Id: I8983778b4c2f5123b27aeeb1fdc4721c8e9c9160 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2023-04-26hs-test: remove untagged images after buildFilip Tehlar1-0/+6
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I55731fa546df01ac4bd327b444ac1a5c2052bed1
2023-04-25vpp-swan: assign src/dst port in udp encapGabriel Oginski1-1/+3
This patch add in missing src/dst port assignment in SA for udp port if encap. Type: fix Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com> Change-Id: I84219c016c5a32590aba0371c01ad8d44cbf4c5c
2023-04-25build: correct variable nameKoki Kiriyama1-1/+1
Type: fix Signed-off-by: Koki Kiriyama <kiriyama.kk@gmail.com> Change-Id: I47c4c91aa6f973bd93dca352f470642e90aa70e0
2023-04-24hs-test: adjust performace testing parametersFilip Tehlar1-1/+3
Apache ab sometimes fails during extensive performace testing. This patch makes sure hs-test perf tests always pass. Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I0921682f0f07df3af45b342b9a7ddfa1af037ceb
2023-04-18hs-test: filter relevant data from perf tests outputFilip Tehlar1-2/+15
Type: test Change-Id: I90faed91639ce1792646531cfc0cac649d737f16 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-03-29hs-test: containerize ab and wrkFilip Tehlar5-32/+64
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I66af84257fa0692d9be3445d49b52fb7ca810d27
2023-03-24hs-test: remove colons from log filesFilip Tehlar1-1/+1
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I56c57de180e44c888458e4f4020802ce9b4a6b8b
2023-03-16hs-test: check exit value of ab/wrkFilip Tehlar1-1/+2
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I967e91e4ea97edff427013c92376b388d6ce5d85
2023-03-15hs-test: use consistent naming conventionMaros Ondrejicka17-238/+205
Exported indentifiers in Go start with capital letters. Only few fields in hs-test, which are being unmarshaled from yaml are required to be exported. Every other field name or method name should start with lower-case letter, to be consistent with this naming convention. Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I7eab0eef9fd08a7890c77b6ce1aeb3fa4b80f3cd