aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22fix(core): IP neighboroper-rls2310-230925pmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Id72bbee0f5623f82cb097a5169c60fda3584d83e (cherry picked from commit d5eb45d573f0e021c0e48ffce570b6a0e0aaf7b9)
2023-09-22fix(core): TRex self loop testspmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I8945daffd500f689b3eb630f1ce7e1dc4f05aca8 (cherry picked from commit 38d1d35ea7bdb653b96f0c7e1b3227cd293d8c22)
2023-09-21fix(core): AWS BPS limitpmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I684be7f41772b96d918b5f009d2052139f7219cf (cherry picked from commit 9409865ed1c3b9b1c0d488eb01188e1d9d58e244)
2023-09-21feat(core): Multilink backendpmikus2-48/+150
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I8d168979ab9722e0056e97edb228f29cbfa245e3
2023-08-18fix(core): AVF init problemoper-230821pmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I67eac5f0e68e9e84041816a8a6e6b8df3fdff664
2023-08-17feat(swasync): switch to polling modeVratko Polak3-21/+40
Performance of adaptive mode is bad (different bug), keep continuity of ipsec swasync tests (when VPP allows). As 23.06-release does not have the new API message, the new CSIT code needs to be more careful around CRC checking. + Add new crc collection with the new API call used. + Also keep the old collection so older VPP does not fail. + Document how papi executor works with VPP without a message. + Prevent CRC checker from raising bodus errors with old VPP. Change-Id: I9ff933a8a9558289d22d55526905d63e7894378c Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-08-17feat(ansible): Bump DPDK 23.07pmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ieb1576aa45e689dda8358c4ad4708b3b09b5216c
2023-08-15fix(core): Pylint leftoverspmikus2-3/+3
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I8d3e93f61ba7929b79da386fbfcece992fea7324
2023-08-15GSO: Add export of results to json files.Tibor Frank2-2/+3
Change-Id: Iac742f0571b11e06662af6bf1b680d0b4e196ddd Signed-off-by: Tibor Frank <tifrank@cisco.com>
2023-08-11feat(core): QAT initialization refactorpmikus3-79/+47
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Idc91da55ab0b5c6b8eb53e8b4ce4da18a1ae891c
2023-08-07fix(core): Disable core dbg analysispmikus1-4/+5
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ia85c4a48155c1e760120a61b39bacbb9de1ab673
2023-08-04fix(core): QAT VF bindpmikus1-11/+15
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iafae1a1f538b928d3bb80bf9610a0bf7de646f8a
2023-07-27fix(core): QAT initializationpmikus3-85/+107
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I28af64b7d39a97bbb84f9d987a3f5d3a2d02701b
2023-07-27feat(core): Core allocationpmikus5-109/+119
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I782b87190dbee6e0a12c97f616b80539cd6614bd
2023-07-17feat(crc): print warnings in crc checker scriptVratko Polak1-1/+16
Robot already prints warnings when running tests, but not many people are looking at robot console output. This makes the warnings visible also in VPP API CRC job console log. Change-Id: I9044a2970f46e132ec80ae0faa2e0adacc889447 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-07-14feat(crc): bump messages for cycle after 2306Vratko Polak2-9/+17
The supported VPP code is 380c62d7040bf285d449f1d05692141c40089470 which is the latest commit before stable/2306 diverged from master. + Separate messages into blocks with paths to .api sources. + Prepare memif for use_dma (currently always false). + Use srv6 test teardown action in srv6 device tests. - Do not use sr_policy_add_v2 from 37258 yet. - Leave a TODO to do it eventually, for now inputs are too different. - Do not use index based policer calls from 37873. - The policer_add_del is not deprecated yet and inputs are different. Change-Id: I350138f09542ec12ce4bec140203175940ccf9d4 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-07-14feat(aws): Add new flavorspmikus1-1/+13
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ie63b3d6c7ff376d808587e7c96f386946c939a81
2023-07-14fix(jumpavg): penalize stdev also for size=2Vratko Polak1-4/+7
This fix is mainly needed for bisection using PDR values. The impact on trending is smaller but still beneficial, as this fix should reduce the amount of false anomalies for two-band and other unstable tests. + Update metadata for 0.4.1 release into PyPI. Change-Id: Iabab4df50f4c4ad034362820904a237c507fa710 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-06-20fix(core): Altra issues with mlxpmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iad8e468200df4ab77f4ed44010b1b029e840714f
2023-06-16Add cryptodev device 4xxxYulong Pei2-2/+8
QAT_4xxx is integrated QAT device on SPR platform. Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com> Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: If1d4b3d72a2c66855ac8c1c42516f0cb78bdfab2
2023-06-15fix(core): hard vpp killpmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ie99c70ebda54153eb361954cbbd4f8191454a022
2023-06-09feat(infra): CX6 for 3n-altoper-rls2306-230612pmikus2-1/+8
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iea4c536a6e421efdaf493fb3cba0dde5abad162d
2023-06-07feat(jumpavg): support small values via unit paramVratko Polak7-46/+88
Previously, Jumpavg was known to give wrong results when the data contains values of order one or smaller. This change introduces a new "unit" parameter, which changes how the information content is calculated. For example if the data values are mutiplies of 0.01, the unit parameter should be set to 0.01 to compensate. For callers not knowing their correct unit value, another parameter is introduced, called "sbps" (meaning Significant Bits Per Sample). A binary integer number with this many ones is how much units should the maximal sample be. This way jumpavg computes the corresponding "unit" value to use. If neither "unit" nor "sbps" are given, the "sbps" value of 12 is applied. + Rename files to conform to snake_style naming. + Fix normalization for the "opposite triangle" distribution. + Simplify logic, all groups now start as "normal", not "unknown". + Minor style improvements as suggested by pylint. + From user perspective, this change should be backward compatible. - The normalization fix is a behavior change, but it is a bugfix and the new behavior should be better. Change-Id: I5a5ca11757f087fff13faf1d0b8e34a741400258 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-06-02fix(dpdk): CX7 supportoper-230605pmikus1-2/+6
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ib98b25bd3c98b5e6dbcb1bfe8478bd41bf37d71c
2023-06-01fix(core): Comparison hashpmikus1-1/+3
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I84b46e6a792d72cb56a9a42d40db8cc13866b836
2023-05-26feat(core): T-Rex 3.03pmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I58607f50e2889092e40ff831ed4f1515444e29f8
2023-05-25fix(core): Trex typopmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I4924054b414dc450df14a02a29081549c8620787
2023-05-25fix(core): dual_socket supportpmikus1-3/+3
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I881dda8b2fec32b8f489ec97df6592937f6193fa
2023-05-25fix(TrafficGenerator): correct tg_topology reverseVratko Polak1-1/+1
Change-Id: Ibef272705ea889d58bb9c5b69a8566f6e38de1d1 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-05-24feat(reassembly): add few suites for ip reassemblyVratko Polak2-3/+10
In tunneling scenarios, VPP needs to reassembly packet fragments before decapsulation. Conveniently, VPP also fragments the packets after encapsulation (at least for some encapsulation protocols) if they do not fit into MTU. So this change adds few suites, adapted from existing 3-node ones which additionally lower MTU on DUT1-DUT2 link. The intended packet size is 1518B. 64B packets will fit, and most of IMIX packets will also fit without fragmentation. VPP refuses to reassembly 9000B packets as they have too many fragments. + Add a keyword so suites need only one additional line of code. + Add new test tag REASSEMBLY for the added suites. + Tell autogen the one soak test case for reaseembly should be 1518B. - It is possible to increase fragment limit for 9000B, not done yet. - Ipsec policy suites are added but they should not be used. - VPP does fragmentation twice (before and after encapsulation). - VPP does not perform reassembly (only last fragment is decrypted). - TRex does not realize the packet from VPP is only a fragment. - The result is false pass with unfairly good performance. + Suites still included, to simplify verifying VPP fixes for the above. Change-Id: If33c60d767fea161d9e4ffabb8ded3d81c8f39ed Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-05-24refactor(trex): Startup configurationpmikus3-111/+312
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I16defefa5edd01638bc382be4f5e8cbca4fe9453
2023-05-23fix(docs): Minor tweakspmikus1-1/+0
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I1537f3383d44ace8e705e5c744713d0863ca67d0
2023-05-22feat(interface): apply MTU for dpdk plugin ifacesVratko Polak1-14/+10
When changing MTU on a running VPP, the interface has to be down. - Other plugins (rdma, avf, af_xdp) need vastly different logic, so support for them will be added later. + Mlx5-core does not need to set MTU on Linux interface. + MTU setting now does not happen at final setting path up, it happens in driver initialization layer instead E.g. AVF tests will not attempt to change MTU. + MTU edit removed from some non-hardware interfaces (including memif) e.g. bond interfaces. MTU on parent hw interface seems to be enough. + The non-jumbo MTU value used is 1800, so 1518B tests with additional encapsulation can still work. + When VPP MTU setting fails, the failure is now propagated. Previously, the failure was just logged and ignored, but now there is no reason to hide it. Ticket: CSIT-1797 Change-Id: I3b853f1faf90001d544cbbb87b2affbb882ffba0 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-05-16fix(core): AVF unbindpmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ifa3964f290d75ebae094d1d46ce27b5d133c2158
2023-05-15fix(core): Container entropypmikus1-5/+3
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I45760143ae0ccb0cc0edf0931ad47f5cf48ec968
2023-05-12fix(qemu): increase vm boot timeJuraj Linkeš1-2/+2
On 3n-tsh testbed, the vm sometimes times out when booting. Increasing the timeout is harmless since it doesn't affect perfomance. JIRA: CSIT-1877 Change-Id: I45eebdfba2fcd7c9a0be083ebb3515d37724e965 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
2023-05-10feat(infra): Remove system.d dependencypmikus3-63/+90
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Icb7b6124dcba7bb57c18ceb91120284f6fe02c2e
2023-05-05fix(core): Docker detectionpmikus1-7/+11
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I976f96410b06b4f4d7500b03b1f5dd54486bbf42
2023-05-05fix(core): Unbind only when neededpmikus1-3/+11
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I7b7b8744fac6669a696253acb94e7a5d713fdb5b
2023-05-05fix(core): Add vpp log pathpmikus1-0/+3
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I76e47610a0caa8af8e48a295ce08e799280404be
2023-05-05fix(core): Move log files to defaultpmikus1-5/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ie88729cbd3916372cdbf5769974654edf066d5d7
2023-05-05feat(core): Remove some dead codepmikus1-29/+0
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: If90e443a2d60459c6cbc6a85ba619e72242318a5
2023-05-05fix(core): Code stylingpmikus1-16/+20
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I76907c214cfae76c3d101ebd14813fd3a77504f8
2023-05-05fix(core): vppctl pathpmikus1-2/+2
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ia6778b0c49906a686427b9c1ca7f5658e8993e63
2023-04-20Add 100k tunnels ipsec policy mode with fastpath enabled test suiteYulong Pei2-25/+57
Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com> Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: I3708253adf4c7421ff48eee6aefb735b39726359
2023-04-19fix(core): wrong to unbind driver if pci device in unbinded driver stateYulong Pei1-2/+4
Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: I7515bf952f8b6dbae180726da6a8bd4821c7af26
2023-04-18fix(api): bump messages to 23.02 usageVratko Polak3-7/+9
New features are generally not used in CSIT, but some edits in code are needed to continue using defaults. 3 messages have newer versions: * bridge_domain_add_del_v2 * ipsec_spd_entry_add_del_v2 * lb_add_del_vip_v2 Change-Id: Ibcc089ccbf933c019b5e7188c06ef229e68d39a8 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-04-03Enable IPsec policy fast path inboundYulong Pei1-0/+18
This will greatly improve the performance of IPsec policy cases Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com> Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: Ib42b5650791be7fcc8649873eaf12616aeba5aec
2023-04-03remove dpdk_nic_bind.py dependencyYulong Pei2-27/+22
dpdk_nic_bind.py from <trex>/scripts/ is out of date, often bumped into errors when using it to bind nic port, e.g. /usr/bin/python3 dpdk_nic_bind.py --bind=vfio-pci 0000:ca:00.0 /opt/trex-core-3.00/scripts/dpdk_nic_bind.py:40: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives   from distutils.util import strtobool Error: bind failed for 0000:ca:00.0 - Cannot bind to driver vfio-pci so remove dpdk_nic_bind.py dependency in csit. Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: I5a3f641cd77d339aa7a213f410ce2efe7c322b8a Signed-off-by: Yulong Pei <yulong.pei@intel.com>
2023-03-28feat(core): Add 2n-spr topologypmikus1-0/+6
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I3f7efcbfc82f683e7afc986d00fa71ae7413d93d