Florin Coras [Tue, 15 Oct 2024 02:43:42 +0000 (19:43 -0700)]
hsa: switch proxy to using first worker connects
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I04821236ba8ab02525bd99a1ed4572dfcf5e5131
Matus Fabian [Tue, 8 Oct 2024 18:06:32 +0000 (20:06 +0200)]
http: Content-Length value parsing improvement
Type: improvement
Change-Id: Ida8ca43b5fed41fc0b13a2dde97e7e35c55283c9
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Damjan Marion [Mon, 14 Oct 2024 15:43:04 +0000 (17:43 +0200)]
vppinfra: fix page stats for large heaps
Type: fix
Fixes:
6bfd076
Change-Id: I8da83a8a755e5893da627c0555039c62975a5e84
Signed-off-by: Damjan Marion <damjan.marion@gmail.com>
Matus Fabian [Tue, 8 Oct 2024 11:58:37 +0000 (13:58 +0200)]
hs-test: http_static wrk tests
Type: test
Change-Id: I87cddb88f2a62e79d66832827134ddaa95740839
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Matus Fabian [Fri, 4 Oct 2024 12:35:26 +0000 (14:35 +0200)]
http: timer pool assert crash fix
Two iterations over expiret timers:
1) ivalidate timer handle and mark the connection as having a pending
timer
2) send RPCs to workers
Type: fix
Change-Id: Iadc031c4e6d6f7bbd851d0421e6e0ea2d2b5e70f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Matus Fabian [Wed, 9 Oct 2024 18:30:41 +0000 (20:30 +0200)]
http: track half-open sessions
It might happen that app detach during connecting period and worker
is not valid anymore when http_ts_connected_callback is called.
Type: improvement
Change-Id: I95f094e8bc0352728a61e3fe74ab0745859e2457
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Stanislav Zaikin [Mon, 14 Oct 2024 10:42:44 +0000 (12:42 +0200)]
ip: fix ip_local_reassembly_get handler
Type: fix
Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
Change-Id: I6431557d01756174005df26350c28299f83fcee0
Alexander Skorichenko [Tue, 8 Oct 2024 09:38:07 +0000 (11:38 +0200)]
snort: add timestamps to packets
Type: improvement
Change-Id: I810679c8a73c4d1b3fc2cc2300ded46a30d68e8f
Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Adrian Villin [Wed, 25 Sep 2024 12:49:11 +0000 (14:49 +0200)]
hs-test: added dry run mode
- DRYRUN=true will set up most containers. Some need to be started
manually (curl, nginx...). The framework will create a vpp-config
file with interface configs that will get executed on VPP startup.
- set Ginkgo to use -v instead of -vv when running a single test
- s.Log() now supports formatting
- added 'useEnvVars' parameter to container.Exec
Type: test
Change-Id: Id1da7947a1448ee4b74b86cc4f243442256a5ba8
Signed-off-by: Adrian Villin <avillin@cisco.com>
Ole Troan [Thu, 20 Jun 2024 20:33:19 +0000 (22:33 +0200)]
dpdk: xstats as symlinks
Type: improvement
Change-Id: I0df26e5a4d486b694ec90ba27b485a75bf264b20
Signed-off-by: Ole Troan <otroan@employees.org>
Adrian Villin [Wed, 9 Oct 2024 09:03:35 +0000 (11:03 +0200)]
hs-test: support running multiple specific tests
- make test TEST=[test1],[test2] runs those two tests in random order
Type: test
Change-Id: I1a1af7c99ef7867ca94cec4175605f428dcd58fd
Signed-off-by: Adrian Villin <avillin@cisco.com>
Damjan Marion [Tue, 8 Oct 2024 18:47:38 +0000 (20:47 +0200)]
vppinfra: devicetree improvements
Type: improvement
Change-Id: If20ae74658702399f626b1af7bd3519e05a5d422
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 8 Oct 2024 21:14:49 +0000 (23:14 +0200)]
dev: add helper functions
Type: improvement
Change-Id: I7c9e882b1cdf141b34e84dbfed46b392624d1f62
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 8 Oct 2024 21:51:28 +0000 (23:51 +0200)]
armada: fix tx queue init
Type: fix
Fixes:
4e51841
Change-Id: Ife3cb43f54cc0700c469f89b0a5af0ff44143807
Signed-off-by: Damjan Marion <damarion@cisco.com>
Mohsin Kazmi [Mon, 7 Oct 2024 21:53:04 +0000 (21:53 +0000)]
pg: fix the coverity warning
Type: fix
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Ida88c304f110b05051211ce243fd04ce811a9d4d
Florin Coras [Mon, 7 Oct 2024 19:32:22 +0000 (12:32 -0700)]
http_static: fix first and add segment size
Allow segments bigger than 4GB
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I510f7cff75883fdbd6c0c22efff9a14e26c755f4
Steven Luong [Mon, 7 Oct 2024 19:02:45 +0000 (12:02 -0700)]
hsa: cannot delete/unlisten default uri
Although it is rare that one wants to remove the default uri listener,
we should still support it.
The problem is that we strip the null character on unformatting the input.
We should not add a null character on formatting the default uri.
Type: fix
Change-Id: I08520dbd2a2448639ce023f9fd75555bc620e7ee
Signed-off-by: Steven Luong <sluong@cisco.com>
Matus Fabian [Mon, 7 Oct 2024 10:56:32 +0000 (12:56 +0200)]
hs-test: force test failure when vpp core present
Type: test
Change-Id: I874ee185a51dda9b620f3b783e466b8e88600d18
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Klement Sekera [Fri, 19 Apr 2024 07:15:01 +0000 (09:15 +0200)]
ip: add extended shallow reassembly
This patch adds some fixes and improvements:
Fixes bug where save_rewrite_length gets overwritten on reassembly
handoff.
Fixes bug where duplicate fragments could cause a reassembly context
to be lost, because the race losing thread would remove bihash entry
created by winning thread.
Improves tracing by adding more events.
Adds extended shallow reassembly. This is a toggleable option, which if
turned on will cause reassembly to wait for both first and last
fragments to calculate total IP payload length. Furthermore it'll store
a local copy of first fragment and necessary data to retrieve it in
vnet_buffer2. This allows downstream features to access full L3/L4
headers when dealing with fragments.
Type: fix
Change-Id: I81695070533410c5815291dbc65ea71c87e3ae05
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Klement Sekera [Mon, 7 Oct 2024 11:05:12 +0000 (13:05 +0200)]
ip: fix feature logic
This fixes ip6 feature logic, so error and handoff packets are no longer
sent to next feature instead of being dropped/handed off.
Type: fix
Change-Id: If280de5345d9ed3b553dd3b3fa40274619d333ae
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Klement Sekera [Sat, 13 Apr 2024 09:04:23 +0000 (11:04 +0200)]
ip: add ip6 shallow reassembly output feature
Type: improvement
Change-Id: I0cb4014f03abdd0e55d4bb7ff40ae293a6ed3562
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Klement Sekera [Tue, 19 Mar 2024 10:06:59 +0000 (11:06 +0100)]
vapi: don't store dict in length field
Rather validate the format and use proper Field call.
Type: fix
Fixes:
d7a32ebd9948ff37c15d8b6e0e5d9cf243026239
Change-Id: I78ac1e62911d613dc0d7a9bd6e8784fbe7f0a797
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Klement Sekera [Sat, 13 Apr 2024 09:03:49 +0000 (11:03 +0200)]
ip: fix ip4 shallow reassembly output feature handoff
Use a new frame queue for output feature instead of passing frames
to standard feature.
Fixes bug where save_rewrite_length gets overwritten on reassembly
handoff.
Type: fix
Change-Id: I6c6191aec5f1c89e1ca0510a08781e390d327bbf
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Mohsin Kazmi [Thu, 3 Oct 2024 23:18:17 +0000 (23:18 +0000)]
pg: add support to delete pg interface
Type: improvement
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I3102fded415c644673fb79a0fdb7a7448ce20f26
Florin Coras [Thu, 3 Oct 2024 07:34:03 +0000 (00:34 -0700)]
session vcl: add support for vcl transport attributes
Session layer can push transport attributes to vcl sessions which are
stored as vector for session lifetime.
Store original_dst_ip and port when available in vcl session attribute
vector.
Type: feature
Change-Id: Iab6c65ddcfed220fc919f564cd19083561812faf
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Fri, 4 Oct 2024 05:06:02 +0000 (01:06 -0400)]
hs-test: fix core_pattern volume mounts
If system is configured to use something like apport, avoid mounting.
Type: fix
Change-Id: I6af900bd334acba974c9c4ae30c3b2ce26d1f49b
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Thu, 3 Oct 2024 20:54:05 +0000 (13:54 -0700)]
session: use proper name for ct transport
Type: refactor
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iebf5155a429c77143df9eb44f504fea28cddaf98
Matus Fabian [Wed, 2 Oct 2024 07:00:19 +0000 (09:00 +0200)]
hs-test: prom consecutive connections test
Type: test
Change-Id: Ide4571dd8ac9bcb64fcd5ba408b6d1f99d34185f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Adrian Villin [Thu, 19 Sep 2024 15:19:39 +0000 (17:19 +0200)]
hs-test: added nginx multi-thread tests
- added Dockerfile.envoy
- removed nginx vcl.conf file as it's created by
the framework now
Type: test
Change-Id: I5f2be015c864c8d2aa938a22b1abece64989999b
Signed-off-by: Adrian Villin <avillin@cisco.com>
Florin Coras [Thu, 3 Oct 2024 08:19:24 +0000 (01:19 -0700)]
session: allow session input rpcs
Type: improvement
Change-Id: Ib8e9f9fb6dfc553cc9e344544961832fecbea8c1
Signed-off-by: Florin Coras <fcoras@cisco.com>
Adrian Villin [Wed, 2 Oct 2024 13:07:40 +0000 (15:07 +0200)]
hs-test: use nginx 1.26.2 for NginxHttp3Test
- test is no longer marked as extended
- no building required -> removed nginx build scripts
Type: test
Change-Id: I1814b1e4b7e514f81797efa3b5c1e818d2fe4cda
Signed-off-by: Adrian Villin <avillin@cisco.com>
Steven Luong [Wed, 2 Oct 2024 16:35:33 +0000 (09:35 -0700)]
session: incomprehensible error message for adding sdl and rule-table entry
1. When the backend engine is not enable, adding an entry returns
a confusing error message.
DBGvpp# session sdl add 191.1.1.30/32 action 1 tag blue-v4-rule1
session sdl add 191.1.1.30/32 action 1 tag blue-v4-rule1
unknown input `add 191.1.1.30/32 action 1 ta...'
DBGvpp#
2. When the sdl or rule-table entry is already present, adding the duplicate
entry returns a confusing error message.
DBGvpp# session sdl add 8.8.8.1/32 action 0
session sdl add 8.8.8.1/32 action 0
DBGvpp# session sdl add 8.8.8.1/32 action 0
session sdl add 8.8.8.1/32 action 0
session: session is already enable. Must disable first
DBGvpp#
The problem is because there are multiple cli commands start with "session".
When the command is failed with the best match chain, it passes the
command to the other parser chains which start with the keyword "session".
The other cli chain also fails to parse the command. The error message
that the previous parser chain returned may be overwritten by
the newest error message.
The fix is to not return an error in sdl and rule-table parser command chain.
Type: fix
Change-Id: If0165324a763f47ec98ab79a41c3ee9b10057454
Signed-off-by: Steven Luong <sluong@cisco.com>
Dave Wallace [Tue, 1 Oct 2024 01:00:13 +0000 (21:00 -0400)]
build: fix dpdk mellanox driver build setting
- dpdk mellanox driver setting requires rdma-core.mk is included
before dpdk.mk makefile. Include check for rdma-core_version
variable definition in dpdk.mk to prevent a re-occurance of this
issue.
Type: fix
Fixes:
70522a1dc
Change-Id: I297cbd734ac7abe970eac7fb317d06b7acfc5a40
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Ivan Ivanets [Fri, 27 Sep 2024 14:11:18 +0000 (17:11 +0300)]
tests: fix wireguard test case failures
Type: test
There are random failures in the wireguard test cases that are not related to concurrency issues.
The root cause is a retry of the handshake initiation after (REKEY_TIMEOUT + JITTER) ms, where JITTER is a random value between 0 and 333 ms.
Solution: Add a filter parameter for the `send_and_expect` method of the vpptestcase.
This filter allows for excluding unexpected handshake initiation packets when the responder sends two packets (with `message_type = 1` and `message_type = 2`),while only a single packet (with `message_type = 2`) is expected.
Change-Id: I62816931fc1b85e2202f3d36eb6c2a23714644d5
Signed-off-by: Ivan Ivanets <iivanets@cisco.com>
Matus Fabian [Mon, 30 Sep 2024 11:52:12 +0000 (13:52 +0200)]
http: http_state_wait_server_reply fix
We enqueue 2 segments to app, first is masg (http_msg_t) and second
as much as possible of the raw data, so it must be:
max_enq - sizeof (msg)
Type: fix
Change-Id: Ib7ece7e0ad1aac99d687d49149f1bccea599b10f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Adrian Villin [Thu, 26 Sep 2024 09:24:34 +0000 (11:24 +0200)]
hs-test: replaced gofmt with goimports
- goimports properly formats imports
Type: test
Change-Id: I78c162dd552fd3ee3d59955d7ea215af30601425
Signed-off-by: Adrian Villin <avillin@cisco.com>
Steven Luong [Fri, 27 Sep 2024 15:35:45 +0000 (08:35 -0700)]
session: fix SDL to use remote instead local
The language is
local == VPP local interface
remote == sender prefix to VPP node
SDL acts on remote prefix.
Type: fix
Change-Id: I82917c6ef801fc67430dfdd15c5630cb7a6347e0
Signed-off-by: Steven Luong <sluong@cisco.com>
Steven Luong [Tue, 24 Sep 2024 23:17:00 +0000 (16:17 -0700)]
hsa: Add multiple listeners support
It is desirable that http cli server can support multiple listeners.
This is needed for supporting both ip4 and ip6 at the same time.
Added the optional keyword listener add | del to the
http cli server command.
Example usage: start ip4 default uri and then add ip6 uri
http cli server
http cli server uri http://2001::2/80 listener add
Type: improvement
Change-Id: I884a4cd64ff676f9759a062b6d607a1742f610f3
Signed-off-by: Steven Luong <sluong@cisco.com>
Alexander Skorichenko [Thu, 12 Sep 2024 07:32:46 +0000 (09:32 +0200)]
snort: API functions for plugin
Also, made disconnect-instance and delete-instance functions
available via cli.
Type: feature
Change-Id: I7939d27867959cb871b1cc7205b94410b53906fd
Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Florin Coras [Tue, 17 Oct 2023 18:59:49 +0000 (11:59 -0700)]
tls: cleanup engine hs cb and improve ctx formatting
Handshake completion is now tracked via a ctx flag so we no longer need
ctx_handshake_is_over.
Also, as we no longer prealloc application sessions, improve ctx state
formatting.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: If48588ecde13e56fb99d1a46238bda53ed4eae1b
Damjan Marion [Wed, 25 Sep 2024 13:54:07 +0000 (15:54 +0200)]
dev: dev process node scheduling improvements
Type: improvement
Change-Id: If39e4d2b46820d5c0465fcc40d255fa95d137d38
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 10 Sep 2024 15:07:49 +0000 (17:07 +0200)]
vlib: process node scheduler rework
This commit allow use od cooperative multitasking with multiple
descheduling reasons (i.e. event wait and suspend) inside the same
process node. In previus code remote node will wake up process node
by sending event evein if process node is waiting in
vlib_process_ssupend().
This change also allowed new vlib_process_yield() API which deschedules
current process and it puts it into the end of queue.
Change-Id: I846e5a99b4ea1809eb80895f6ffe0ef0b2fd21ae
Type: improvement
Signed-off-by: Damjan Marion <damarion@cisco.com>
Alok Mishra [Tue, 24 Sep 2024 15:54:37 +0000 (20:54 +0500)]
octeon: fix pause flow control for lbk/sdp devices
Pause frame flow control is not supported for LBK (Loopback) and
SDP (System DPI Packet Interface Unit) devices.
This patch skips the pause flow configuration for these devices.
Type: fix
Fixes:
53239b4
Signed-off-by: Alok Mishra <almishra@marvell.com>
Change-Id: I3096fcef9df4ad59d64bfabb83f91f13813128a8
Damjan Marion [Wed, 25 Sep 2024 13:52:16 +0000 (15:52 +0200)]
vppinfra: add CLIB_SWAP()
Type: improvement
Change-Id: I1911a9d6a0ca8e1d24ce7b95281886392081ffc6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Florin Coras [Wed, 25 Sep 2024 06:37:40 +0000 (23:37 -0700)]
session: set dgram mss when not constrained by transport
Type: fix
Change-Id: I12ddcd56f2fecb504180cdc044a3b3c3d1db7e3c
Signed-off-by: Florin Coras <fcoras@cisco.com>
Radislav Chugunov [Mon, 2 Sep 2024 07:47:09 +0000 (10:47 +0300)]
build: add missing fib_walk.h to VNET_HEADERS
Type: fix
Change-Id: Ie64ce16ea512b855a1b886eceb94c0e6ba33df05
Signed-off-by: Radislav Chugunov <chgnrdv@gmail.com>
Hyong Youb Kim [Tue, 6 Aug 2024 04:50:39 +0000 (21:50 -0700)]
dpdk: add new device ID for Cisco VIC VF
VIC now supports standard SR-IOV, as opposed to VM-FEX SR-IOV. It uses
a new device ID 0x02b7 for VF. Add it to the supported list.
Type: improvement
Change-Id: Ifc91c66f5e75dd005aa9d8a47700896a941abab5
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Tom Jones [Thu, 1 Feb 2024 16:10:44 +0000 (16:10 +0000)]
dpdk: Enable dpdk build on FreeBSD
Type: improvement
Change-Id: If897f3bdfc131f8d7c01718057b54087eff02d7a
Signed-off-by: Tom Jones <thj@freebsd.org>
Tom Jones [Wed, 11 Sep 2024 15:42:32 +0000 (15:42 +0000)]
vppinfra: exclude clib_dt_node_add_child on FreeBSD
clib_dt_read_from_sysfs is the only user of clib_dt_node_add_child, on
FreeBSD this causes a build failure due to an unused function. Place
clib_dt_node_add_child behind an include guard for linux only.
Type: fix
Change-Id: I9641ffd10d9d15e1e552f570cd386211d3b4ab39
Signed-off-by: Tom Jones <thj@freebsd.org>
Alok Mishra [Mon, 2 Sep 2024 13:28:21 +0000 (18:28 +0500)]
octeon: enable h/w vlan tagging support
This patch enables h/w vlan tagging by setting MAX_VTAG_INS
field in NIX_AF_SMQ_CFG register.
This is required to configure VLAN tag insertion
by the hardware for egress packets
Type: feature
Signed-off-by: Alok Mishra <almishra@marvell.com>
Change-Id: Ifcdf9c1e5b0b8ddc27cabab597ae91780ceca095
Andrew Yourtchenko [Wed, 25 Sep 2024 09:54:37 +0000 (11:54 +0200)]
misc: Initial 25.02-rc0 commit
Type: docs
Change-Id: Ic8f0204752b93339203fe9ba04fdb77ba635e6d8
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Stanislav Zaikin [Mon, 9 Sep 2024 13:00:33 +0000 (15:00 +0200)]
ipsec: cleanup tun protect on interface removal
when a protected tunnel gets deleted it's necessary to run a proper
cleanup
Type: fix
Change-Id: I9d2c60ecbf97c4df299ac5c2228b036bf3478a56
Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
Alok Mishra [Fri, 9 Aug 2024 08:29:24 +0000 (13:29 +0500)]
octeon: enable ethernet pause frame support
This patch adds support for MAC pause flow control.
By default, pause flow control is enabled in the device
configuration.
Type: feature
Signed-off-by: Alok Mishra <almishra@marvell.com>
Change-Id: I0f448479a38fae615d87af7e736c6053ada89cca
Monendra Singh Kushwaha [Fri, 20 Sep 2024 15:03:38 +0000 (20:33 +0530)]
octeon: fix error handling for packet with error
Type: fix
Change-Id: Ieb97f1526939bcd732c155d3a7535dca71971258
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Monendra Singh Kushwaha [Mon, 23 Sep 2024 09:40:10 +0000 (15:10 +0530)]
octeon: fix SDP device link information
This patch fixes SDP (System DPI Packet Interface Unit)
device link information.
Type: fix
Change-Id: I4563094601d9bb24132e4dc712cde14daa7f4364
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
XiaomingJiang [Mon, 23 Sep 2024 08:42:40 +0000 (16:42 +0800)]
http_static: fix memory hss_session using after be freed
Type: fix
Change-Id: Ic3d3de4198310361de876a8224e4f7cd0b48b698
Signed-off-by: XiaomingJiang <jiangxiaoming@outlook.com>
Dave Wallace [Fri, 13 Sep 2024 18:29:24 +0000 (14:29 -0400)]
build: archive make install-ext-deps build logs in ci
- also add build/external artifacts to .gitignore file
Type: make
Change-Id: I9c8f4a312bbfddfa8024531e7246518c8c3589a4
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Florin Coras [Fri, 20 Sep 2024 16:40:57 +0000 (09:40 -0700)]
udp: node counter for connected sessions
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4c0c1b27adb3e3ea3c3ff6353b068447db19fa85
Matus Fabian [Fri, 20 Sep 2024 11:25:39 +0000 (13:25 +0200)]
hs-test: proxy testing improvements
- nginx and curl timeouts are extended if debug flag is set
- added write-out for curl (outputs extra info after transfer is done)
Type: test
Change-Id: I3f6c336a14cd00b9ae8669d2fa26e00709162100
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Matus Fabian [Fri, 20 Sep 2024 08:44:08 +0000 (10:44 +0200)]
hs-test: debugging utility methods
Type: test
Change-Id: I0c7e8424e53f1ad1896cd8439027e6081ccfeb28
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Andrew Yourtchenko [Thu, 19 Sep 2024 11:29:54 +0000 (13:29 +0200)]
pvti: remove clib_warning at init time
Type: fix
Change-Id: I62ccd96ea3549205510ff53118eab1fa3613d009
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Andrew Yourtchenko [Tue, 17 Sep 2024 13:01:44 +0000 (15:01 +0200)]
l2: fix DVR test failure on AWS Graviton on Ubuntu 22.04
The AWS Graviton make test fails in dvr_test.py on Ubuntu 22.04,
due to a mismatching source MAC address. Debian 11 tests run fine.
The following can be seen in the log.txt trace:
00:00:00:756422: ethernet-input
frame: flags 0x1, hw-if-index 3, sw-if-index 3
IP4: 02:03:00:00:ff:02 -> de:ad:00:00:00:00 802.1q vlan 92
00:00:00:756435: l2-input
l2-input: sw_if_index 6 dst de:ad:00:00:00:00 src 02:03:00:00:ff:02 [l2-input-vtr l2-learn l2-fwd l2-flood l2-flood ]
00:00:00:756438: l2-input-vtr
l2-input-vtr: sw_if_index 6 dst de:ad:00:00:00:00 src 02:03:00:00:00:00 data 08 00 45 00 00 80 00 01 00 00 40 11
00:00:00:756441: l2-learn
l2-learn: sw_if_index 6 dst de:ad:00:00:00:00 src 02:03:00:00:00:00 bd_index 1
Note how l2-input-vtr node has the two lowest bytes of the source MAC corrupted.
Discussing with Benoit, since this could be caused by unaligned memory accesses,
using clib_memcpy_fast.
Type: fix
Change-Id: I28991e1166335df0edd1e4b84fa72a2b1d0bb9bf
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Adrian Villin [Wed, 26 Jun 2024 07:47:10 +0000 (09:47 +0200)]
hs-test: containerize iperf tests
Type: test
Change-Id: I2c0bb76d96ccadd5ecfd6a04565420855043699e
Signed-off-by: Adrian Villin <avillin@cisco.com>
Monendra Singh Kushwaha [Fri, 13 Sep 2024 10:40:37 +0000 (16:10 +0530)]
octeon: fix compilation on octeon9
Type: fix
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Change-Id: I9ffa78122dcd6b98cad9902e43ba8432fcd572b1
Aritra Basu [Wed, 28 Aug 2024 21:02:34 +0000 (14:02 -0700)]
vcl: add http support to vcl_test_protos
Type: improvement
Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a
Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Andrew Yourtchenko [Tue, 23 Jan 2024 11:57:51 +0000 (11:57 +0000)]
pvti: Packet Vector Tunnel Interface
This plugin implements a PoC of UDP-based tunnel substrate whose aim is
to specifically provide higher MTU to the upper layers by chunking
the payload PDUs into smaller packets with full 5-tuple.
At the same time, if there are multiple small packets to
the same destination during the vector processing, they
are packed into "carrier" packets up to underlay MTU size.
It does assume a trustworthy underlying medium, thus for the
operation over Internet it requires the use of encryption layer
underneath.
Type: feature
Change-Id: I323958fa8de62584f6ed15643ea689568a9a62bc
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Kai Ji [Fri, 13 Sep 2024 16:06:02 +0000 (16:06 +0000)]
dpdk: bump to DPDK 24.07 and RDMA 52.0
This patch bumps DPDK version to 24.07 and RDMA version
per dpdk 24.07 release notes (rdma-core >= 52.0)
Type: feature
Change-Id: I07c6f27becdbcd3696b821bbfd145610775cf51e
Signed-off-by: Kai Ji <kai.ji@intel.com>
Florin Coras [Tue, 10 Sep 2024 22:24:39 +0000 (15:24 -0700)]
session: improve sh session cli
Add support for:
- "sh session verbose thread <n> [lcl|rmt|ep] <ip>[:port]", which can be
used to filter sessions based on transport ip:port
- "force-print" option to force printing even when it exceeds existing
printing thresholds
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iab3e58b8162664b425379d14818b8a4daa0ce345
Aritra Basu [Tue, 10 Sep 2024 04:47:26 +0000 (21:47 -0700)]
http: update body_len from u32 to u64
Type: improvement
Change-Id: I381541fb180d6d6ba42e4d231d22a73c5d33ef65
Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Matus Fabian [Fri, 13 Sep 2024 14:22:27 +0000 (16:22 +0200)]
hsa: fix proxy ao connect
Make sure that proxy server doesn't try to open connection to the
target multiple times. When client is uploading huge amount of data
it might happen that proxy_rx_callback is called again before
connection to the target is established.
Type: fix
Change-Id: I4d272d37bc545f6f8790a115c8d26bcf3ea84f22
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Ole Troan [Tue, 10 Sep 2024 21:37:56 +0000 (23:37 +0200)]
vppapigen: endian generation for vla for non u32
The endian function for VLAs assumed length field to be of type u32.
That failed for APIs using different integer width.
Type: fix
Change-Id: I6ecaabb4563c8bafeb100a4c6c1eee9a08e6cabf
Signed-off-by: Ole Troan <otroan@employees.org>
Mohammed Hawari [Thu, 29 Aug 2024 12:01:06 +0000 (14:01 +0200)]
vlib: introduce lazy next node initialization
This change allow a node registration A to name a next node B that does not
exist yet at registration time. When node B is effectively created,
vlib_node_main_lazy_next_update need to be called so that the vlib graph
is updated accordingly. To enable this behavior, node A needs to bear
the new VLIB_NODE_FLAG_ALLOW_LAZY_NEXT_NODES.
Change-Id: I561d3a0de19a0b7bd1045760a2ba8e27d27caa9a
Type: improvement
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Florin Coras [Tue, 10 Sep 2024 22:52:35 +0000 (15:52 -0700)]
hsa: fix proxy ao tx callback
Reuse existing proxy_force_ack for active open tx callback. This makes
sure proxy session is tcp (as opposed to tls) and also makes sure the
ack is sent from the thread that owns the proxy session.
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I9692fa2c4feefd3db701f9449a35495cf7b3d9dc
Dave Wallace [Tue, 10 Sep 2024 16:36:07 +0000 (12:36 -0400)]
vlib: fix gcc 13.2.0 build failure on ubuntu 24.04
Type: fix
Change-Id: I007d73d28633677395d4eb81534dbe2307b1a96f
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Matus Fabian [Fri, 6 Sep 2024 13:30:59 +0000 (15:30 +0200)]
hs-test: upload via proxy tests
Type: test
Change-Id: Id6b4e2348735081c827f814a814c976b601432ec
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Matus Fabian [Tue, 10 Sep 2024 08:20:11 +0000 (10:20 +0200)]
hsa: http_tps coverity fix
Type: fix
Change-Id: Iea00a03dc94dfd6d1f0532e629d2f3b38cb26c07
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Adrian Villin [Mon, 9 Sep 2024 07:30:27 +0000 (09:30 +0200)]
http: fixed missing static keyword
Type: improvement
Change-Id: Id7a16388a72fc5de5848f3fec7a6dbeb6188f913
Signed-off-by: Adrian Villin <avillin@cisco.com>
Damjan Marion [Tue, 27 Aug 2024 16:12:33 +0000 (18:12 +0200)]
armada: introduce dev_armada plugin
Also retires old marvell plugin.
Change-Id: Icedec11f5661909058fdfe8d5fc455306adafacd
Type: feature
Signed-off-by: Damjan Marion <damarion@cisco.com>
Garvit [Mon, 26 Aug 2024 06:43:10 +0000 (12:13 +0530)]
ipsec: remove redundant code in ipsec_tun_in trace
This patch removes redundant sa index value in
format_ipsec_tun_protect_input_trace() as sa index value already added
by format_ipsec4_tunnel_kv().
Type: fix
Change-Id: I7834bda57ba0f7cfe5084b671f6f7da0749ba64d
Signed-off-by: Garvit <gvarshney@marvell.com>
Mohsin Kazmi [Tue, 3 Sep 2024 10:24:02 +0000 (10:24 +0000)]
dpdk: add support to disable interrupt mode
Type: improvement
Change-Id: I4864dc2af808aa76ecbc9ade0e86e1a781e6b704
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Matus Fabian [Wed, 4 Sep 2024 16:04:54 +0000 (18:04 +0200)]
http: large POST handling
Type: improvement
Change-Id: I28b8e8ccbff6f97e669b0048011b187decbfc892
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Steven Luong [Tue, 30 Jul 2024 20:44:01 +0000 (13:44 -0700)]
session: add Source Deny List
With this feature, session enable is now modified to have 3 modes of operation
session enable -- only enable session
session enable rt-backend sdl -- enable session with sdl
session enable rt-backend rule-table -- enable session with rule-table
session rule tables are now created on demand, upon adding first rule
to the rule table.
refactor session table to remove depenency from sesssion rules table. Now
session rules table APIs take srtg_handle and transport
proto instead of srt pointer.
Type: feature
Change-Id: Idde6a9b2f46b29bb931f9039636562575572aa14
Signed-off-by: Steven Luong <sluong@cisco.com>
Stanislav Zaikin [Thu, 9 Mar 2023 18:35:11 +0000 (19:35 +0100)]
linux-cp: auto select tap id when creating lcp pair
Now when lcp pair is created, tap instance is based on hw_id. But tap
interface with such instance can already exist. Introduce an offset and
auto-selection based on it.
Type: fix
Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
Change-Id: I9db39106b0b0d5bf95c445b03e5b7ff52f946dd2
Scott Hutton [Tue, 3 Sep 2024 23:16:25 +0000 (16:16 -0700)]
flowprobe: run input nodes before inacl nodes
Type: fix
The flowprobe-input-ip4 node must be run ahead of ip4-inacl in some scenarios
to ensure that it sees flows on receiving interfaces.
The same is presumably the case for flowprobe-input-ip6, but this hasn't been
tested/observed.
JIRA: VPP-2122
Change-Id: Idf3b14dd2bd829f9aa3b1a71ccdcdf015ccdb36a
Signed-off-by: Scott Hutton <schutton@cisco.com>
Damjan Marion [Tue, 27 Aug 2024 16:21:02 +0000 (18:21 +0200)]
dev: add platform bus and devicetree support
Change-Id: Ief8e159b25d4fc4859c7116da6ff22c15bd3fff0
Type: feature
Signed-off-by: Damjan Marion <damarion@cisco.com>
Ole Troan [Tue, 3 Sep 2024 08:45:00 +0000 (10:45 +0200)]
api: fix endian issue for api trace save-json
Type: fix
Fixes:
1a319aadc68c218f741a7cb23acbe70c4addae92
Change-Id: I471e61176fc52421cf91e7989185755fb0355158
Signed-off-by: Ole Troan <otroan@employees.org>
Mohamed Feroz [Thu, 29 Aug 2024 08:04:02 +0000 (08:04 +0000)]
vcl: fix vcl issue in multi-thread-workers mode
In some multi-process/thread applications, a connection FD
is created on main process and actual data processing is done
in worker process. The main process does nothing. For such
applications, when multi-thread-workers is enabled, in current
VLS code, the session events are still enqueued to the VCL
worker corresponding to Main process. As the main process is
not dequeuing any event, application doesn't move forward.
This patch fixes this issue by enabling VCL worker
corresponding to the Worker process as listener of the session.
Type: improvement
Signed-off-by: Mohamed Feroz <mabdulmajeet@marvell.com>
Change-Id: Ia7e6270c1acbce7feeafbf281c661285d63c3b22
Vratko Polak [Tue, 3 Sep 2024 14:37:49 +0000 (16:37 +0200)]
iavf: fully support off-by-one driver behavior
Previously, iavf_port_add_del_eth_addr was not using large enough buffer
and address sanitizer does not allow that.
Type: fix
Change-Id: Icd1491fb5651aed20685d15224e9c725347ef369
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Aritra Basu [Wed, 28 Aug 2024 01:05:17 +0000 (18:05 -0700)]
vcl: add support to write segments
Type: improvement
Change-Id: Icfdaed6b70b83668127656930afcb4ac3c63b234
Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Steven Luong [Thu, 14 Dec 2023 16:54:55 +0000 (08:54 -0800)]
virtio: RSS support
Add RSS support to make use of multiple queues.
With 4 RX queues and RSS enabled
ping from host to guest vm ip queue use
192.168.2.3 192.168.2.1 2
'' 192.168.2.10 0
'' 192.168.2.5 1
'' 192.168.2.105 3
With 4 RX queues and RSS disabled, queue 0 is always used for all of the above cases
Type: improvement
Change-Id: I3ca78fd83fce26cbe8f23fee0a9034cb572bacb7
Signed-off-by: Steven Luong <sluong@cisco.com>
Damjan Marion [Tue, 27 Aug 2024 16:14:22 +0000 (18:14 +0200)]
build: add Marvell CN913x platform
Change-Id: If16b073ddf204676c3ef410ba76d289e25e376d8
Type: feature
Signed-off-by: Damjan Marion <damarion@cisco.com>
Dau Do [Thu, 29 Aug 2024 10:03:16 +0000 (03:03 -0700)]
avf: add num tx/rx packets per queue
Type: improvement
Change-Id: I3459dba86eb7a784448633b69492d6d3f49db720
Signed-off-by: Dau Do <daudo@yahoo.com>
Lukas Stockner [Tue, 18 Jun 2024 12:52:52 +0000 (14:52 +0200)]
buffers: support disabling allocation per numa domain
Currently, the per-numa buffer allocation doesn't support skipping the
allocation altogether for a particular NUMA domain - if it's set to
zero, it instead uses the default allocation.
Therefore, this changes the behavior so that the default is only used
if no per-numa allocation is specified, and an allocation of zero
is honored by not allocating a buffer at all.
Type: improvement
Change-Id: Ie9133b179a88eb884aa3da921e65292daea0df2d
Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com>
Sriram Vatala [Thu, 8 Aug 2024 09:57:36 +0000 (09:57 +0000)]
octeon: use proper refs for roc item spec and mask
vnet flow enable is failing due to bogus bytes pointed by spec, mask
variables of roc_npc_flow_item structure. Using reference to local
variables defined in block scope is causing this. Moving the variable
declarations to function block scope fixes this issue.
Fixes:
064762e20
Type: fix
Signed-off-by: Sriram Vatala <svatala@marvell.com>
Change-Id: I3904199b5b2bd88cd02ada5604059ab6fd12eef7
Tom Jones [Wed, 14 Aug 2024 09:23:11 +0000 (09:23 +0000)]
vppinfra: Use affinity for online cpus on FreeBSD
On FreeBSD the affinity returned by cpuset gives us a bitmask
documenting the available cpus. This can be modified if we are jailed or
are launched via the cpuset(1) command.
Initialise the clib bitmask otherwise it is always 0 and we cannot
configure any workers.
Type: improvement
Change-Id: I067e373ea440c6fbd03839d1cf103c8b97d8a0c6
Signed-off-by: Tom Jones <thj@freebsd.org>
Mohammed Hawari [Fri, 2 Aug 2024 12:20:19 +0000 (14:20 +0200)]
crypto-native: aes_cbc_encrypt in vppinfra
Change-Id: Ibafa51f5fc98674d30e8758a0f9cc361c8b5c0fc
Type: refactor
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Benoît Ganne [Wed, 28 Aug 2024 09:41:46 +0000 (11:41 +0200)]
ip6: fix error in ip6_input_check
Type: fix
Change-Id: Ibe8ee27484c3b7b920529fd082b1e46b7daef1e5
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Matus Fabian [Wed, 28 Aug 2024 07:36:11 +0000 (09:36 +0200)]
hsa: http_cli coverity fix
Type: fix
Change-Id: I23c55e6be08cc02332da9375d2eb19b74b79427c
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Matus Fabian [Tue, 27 Aug 2024 14:34:11 +0000 (16:34 +0200)]
http: http_send_data cleanup
removed unused parameter offset
Type: improvement
Change-Id: I30cde713731555fb2eb305c303369c1ead4d3783
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Damjan Marion [Wed, 28 Aug 2024 11:02:09 +0000 (13:02 +0200)]
interface: do not update runtime data if input node is not set
Type: improvement
Change-Id: Id81d1ac23505a74d3bc6f5d7eddca2be20d39f45
Signed-off-by: Damjan Marion <damarion@cisco.com>