vpp.git
20 hours agovppinfra: Improve code portability 71/41171/3 master
Renato Botelho do Couto [Fri, 21 Jun 2024 14:00:10 +0000 (14:00 +0000)]
vppinfra: Improve code portability

Use standard macros CPU_ISSET_S and CPU_ZERO_S and make code more
portable.

Type: improvement

Change-Id: I8e6a0fd79b90de8c6c33cad8882680eae2ca50ef
Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
45 hours agolinux-cp: populate mapping vif-sw_if_index only for default-ns 79/40379/3
Denys Haryachyy [Fri, 17 Nov 2023 09:58:41 +0000 (11:58 +0200)]
linux-cp: populate mapping vif-sw_if_index only for default-ns

When custom netns is used we don't need to populate the mapping
ifindex->sw_if_index otherwise netlink events in default-ns can apply settings
to wrong interfaces. Most of the lcp functions however wasn't working for such
interfaces and neither it was fixed by this patch.

Type: fix
Change-Id: I74a8a4e332753f9a40fc291d489dfd7fc51cbef3
Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
45 hours agodev: move bus code to bus/ 85/41185/2
Damjan Marion [Tue, 25 Jun 2024 12:52:55 +0000 (12:52 +0000)]
dev: move bus code to bus/

Type: refactor
Change-Id: If3a195f1ea600bfd621717f333af1b1273ab0807
Signed-off-by: Damjan Marion <damarion@cisco.com>
46 hours agosession: memory leak in mma rule table 80/41180/3
Steven Luong [Mon, 24 Jun 2024 15:18:38 +0000 (08:18 -0700)]
session: memory leak in mma rule table

When the rule table is allocated, the root node is allocated. But it
cannot be deleted by the add_del API, or the table is useless.

When the table is free, the root node is not free and there is memory
leak. Let's add pool_flush when the rule table is free.

Type: fix

Change-Id: I58c3e040cd101c7db501d99a373ad78d85321b8f
Signed-off-by: Steven Luong <sluong@cisco.com>
2 days agoipsec: enable ipv6 udp checksum offload 52/41152/2
Jeff Shaw [Mon, 17 Jun 2024 23:01:20 +0000 (16:01 -0700)]
ipsec: enable ipv6 udp checksum offload

RFC6935 section 5 states that, by default, the UDP checksum must be
computed when originating an IPv6 UDP packet. The default behavior
may be overridden when conditions defined by RFC6936 are satisfied.
However this implementation does not satisfy all the conditions so
the checksum must be computed.

After ESP encryption the packet is an IPv6 UDP packet so set the
l3_hdr_offset and l4_hdr_offset values, and set the UDP_CKSUM
offload flag in the buffer.

Type: improvement

Co-authored-by: Cian Ferriter <cian.ferriter@intel.com>
Change-Id: I9f8c434c9fe9dbddd8890d5ae366984bfcf34067
Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2 days agohs-test: return error if connecting to vpp fails 78/41178/2
Hadi Rayan Al-Sandid [Mon, 24 Jun 2024 08:48:54 +0000 (10:48 +0200)]
hs-test: return error if connecting to vpp fails

Type: fix

Fix case where no error code would be returned if vpp was launched,
but then exited due to invalid configuration.

Change-Id: I54d526629a2ee0206227615ffb6cb658779f93a0
Signed-off-by: Hadi Rayan Al-Sandid <halsandi@cisco.com>
2 days agocrypto: Add prefetching for src and dst 32/41032/4
Niyaz Murshed [Tue, 4 Jun 2024 02:35:46 +0000 (02:35 +0000)]
crypto: Add prefetching for src and dst

Adding prefetching to openssl plugin improves both sync and async mode
ipsec performance by more than 5% on N1 ampere.

Sync mode (1420b)
core count            old (MPPS)              new (MPPS)  %diff
    1c                  0.972                   1.01            3.90
    2c                  1.91                    2.02            5.87
    3c                  2.86                    3.04            6.03

Async mode (1420b)
core count            old (MPPS)              new (MPPS)        %diff
    1c 1.296                   1.37 5.70
    2c 2.58 2.753 6.70
    3c 3.74 3.9 4.27
    6c 7.52 7.832 4.14

Type: improvement
Change-Id: Ieef22c37e1330ac9f8b7e09a25c24162516b6c26
Signed-off-by: Niyaz Murshed <niyaz.murshed@arm.com>
2 days agohs-test: move nginx tests into one file 81/41181/1
Matus Fabian [Mon, 24 Jun 2024 17:05:38 +0000 (19:05 +0200)]
hs-test: move nginx tests into one file

Type: test

Change-Id: Ie525636c6299a8306cba45e72f8ee6c9da6d6e4f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
3 days agohs-test: added interrupt mode tests 73/40973/2
Adrian Villin [Mon, 24 Jun 2024 12:14:05 +0000 (08:14 -0400)]
hs-test: added interrupt mode tests

Type: test

Change-Id: I327fa1a4ea23a3af3aa33e5260367426a11e7b4f
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 days agobuild: conditional dependency handling of depfile 73/41173/4
Ole Troan [Fri, 21 Jun 2024 15:17:09 +0000 (17:17 +0200)]
build: conditional dependency handling of depfile

Older distributions like Ubuntu 20.04 uses an old version
of cmake that does not handle absolute paths.
Leave .api dependency handling like before, i.e.
not handle interdependency between .api files for those older
builds.

Type: fix
Change-Id: I3f15a4506f6c95fca7a5b00893dc354cbed42a29
Signed-off-by: Ole Troan <otroan@employees.org>
3 days agoip: mark IP_ADDRESS_DUMP as mp-safe 15/40415/4
Vladislav Grishenko [Wed, 28 Jul 2021 18:33:00 +0000 (23:33 +0500)]
ip: mark IP_ADDRESS_DUMP as mp-safe

Since main thread is the only one thread that can modify address
hash, avoid barriers while IP_ADDRESS_DUMP api calls.

Type: improvement
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: I9c35400bdef9fb08e81d859c8f2e3bdaa5468f4b

5 days agohs-test: cache docker build in local filesystem 55/41155/12
Dave Wallace [Tue, 18 Jun 2024 21:10:07 +0000 (17:10 -0400)]
hs-test: cache docker build in local filesystem

- when running in the CI, cache the docker build layers
  in the local filesystem to allow docker executor images
  to contain cached docker build layers

Type: test
Change-Id: Ie728a8370d3fb8144d01dff566aaa846ca6fd81b
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 days agohttp_static: fix reply data leak 69/41169/1
Florin Coras [Thu, 20 Jun 2024 21:58:54 +0000 (14:58 -0700)]
http_static: fix reply data leak

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ica78044b044a78714dd9947620250f13c63320fb

7 days agoip6: fix ip6-michain trace function 27/40927/2
Maxime Peim [Fri, 24 May 2024 15:01:36 +0000 (17:01 +0200)]
ip6: fix ip6-michain trace function

Type: fix
Change-Id: I3a5c04b14bf1156376e2acece69f8256d00f261a
Signed-off-by: Maxime Peim <mpeim@cisco.com>
7 days agodpdk: xstats vecor stuck at 0 elements 63/41163/2
Ole Troan [Wed, 19 Jun 2024 19:07:37 +0000 (21:07 +0200)]
dpdk: xstats vecor stuck at 0 elements

Fixes: dd6fb60f1794fc08ec40598a67dc70f942c200d1
Type: fix
Change-Id: I2429715a954361ceea969191493c15bef21e2040
Signed-off-by: Ole Troan <otroan@employees.org>
7 days agohs-test: fix LDPreloadIperfVppTest 72/40972/4
Adrian Villin [Wed, 19 Jun 2024 10:20:00 +0000 (06:20 -0400)]
hs-test: fix LDPreloadIperfVppTest

- fixed ldpreload path (debug build)

Type: test

Change-Id: Ib2ab58b32ffd87a78189464b599f7bbc4f05c175
Signed-off-by: Adrian Villin <avillin@cisco.com>
8 days agohttp: fix app name formatting in template 58/41158/2
Matus Fabian [Wed, 19 Jun 2024 08:38:03 +0000 (10:38 +0200)]
http: fix app name formatting in template

app name is vector without null termination

Type: fix

Change-Id: Iaa50770c84f23a71165d76a63c29b76e90006ac6
Signed-off-by: Matus Fabian <matfabia@cisco.com>
8 days agobuild: vppapigen dependency handling 59/41159/2
Ole Troan [Wed, 19 Jun 2024 09:31:30 +0000 (11:31 +0200)]
build: vppapigen dependency handling

Add dependency generation to the vppapigen compiler, so that
when an API file depends on another, that's registered as a dependency
with the build system.

Add a build dependency on vppapigen submodules so that all api files
are regenerated if the compiler itself changes.

Type: improvement
Change-Id: I392853754129778ef15532d1b04813786b943b44
Signed-off-by: Ole Troan <otroan@employees.org>
8 days agofib: fix ip drop path crashes 23/40123/2
Dmitry Valter [Wed, 20 Dec 2023 10:47:35 +0000 (10:47 +0000)]
fib: fix ip drop path crashes

Do not mark drop paths as imported to avoid crashes on invalid table lookup.

```
vpp[8478]: /build/Vpp2310/source/src/vnet/fib/fib_table.c:35 (fib_table_get) assertion `! pool_is_free (ip4_main.fibs, _e)' fails
 #9  0x00007ff21785da1d in _clib_error () from /lib/x86_64-linux-gnu/libvppinfra.so.23.10
 #10 0x00007ff218087698 in fib_table_get (index=4294967295, proto=FIB_PROTOCOL_IP4) at /build/Vpp2310/source/src/vnet/fib/fib_table.c:35
 #11 0x00007ff218087a37 in fib_table_lookup_exact_match (fib_index=4294967295, prefix=0x7ff0eae0d354) at /build/Vpp2310/source/src/vnet/fib/fib_table.c:100
 #12 0x00007ff2180bc938 in fib_attached_export_import (fib_entry=0x7ff0eceac3e0, export_fib=4294967295) at /build/Vpp2310/source/src/vnet/fib/fib_attached_export.c:264
 #13 0x00007ff218098ade in fib_entry_post_flag_update_actions (fib_entry=0x7ff0eceac3e0, old_flags=FIB_ENTRY_FLAG_NONE, new_fib_index=4294967295) at /build/Vpp2310/source/src/vnet/fib/fib_entry.c:624
 #14 0x00007ff218098b90 in fib_entry_post_install_actions (fib_entry=0x7ff0eceac3e0, source=FIB_SOURCE_API, old_flags=FIB_ENTRY_FLAG_NONE) at /build/Vpp2310/source/src/vnet/fib/fib_entry.c:674
 #15 0x00007ff218098cce in fib_entry_create (fib_index=1, prefix=0x7ff0d3244d80, source=FIB_SOURCE_API, flags=FIB_ENTRY_FLAG_NONE, paths=0x7ff0eac15ab8) at /build/Vpp2310/source/src/vnet/fib/fib_entry.c:712
 #16 0x00007ff218088db4 in fib_table_entry_update (fib_index=1, prefix=0x7ff0d3244d80, source=FIB_SOURCE_API, flags=FIB_ENTRY_FLAG_NONE, paths=0x7ff0eac15ab8) at /build/Vpp2310/source/src/vnet/fib/fib_table.c:799
 #17 0x00007ff2180c026c in fib_api_route_add_del (is_add=1 '\001', is_multipath=0 '\000', fib_index=1, prefix=0x7ff0d3244d80, src=FIB_SOURCE_API, entry_flags=FIB_ENTRY_FLAG_NONE, rpaths=0x7ff0eac15ab8) at /build/Vpp2310/source/src/vnet/fib/fib_api.c:485
 #18 0x00007ff217d4b6dd in ip_route_add_del_t_handler (mp=0x7ff0eb08b998, stats_index=0x7ff0d3244dc8) at /build/Vpp2310/source/src/vnet/ip/ip_api.c:718
 #19 0x00007ff217d4b986 in vl_api_ip_route_add_del_t_handler (mp=0x7ff0eb08b998) at /build/Vpp2310/source/src/vnet/ip/ip_api.c:789
```

Type: fix
Fixes: 4b08632748727486e7ebfdcf4d992743595bc500
Signed-off-by: Dmitry Valter <d-valter@yandex-team.com>
Change-Id: I647899533771c35f44c9ecde517a30f111b36ad9

8 days agodpdk: expose xstats in stats segment 40/41140/7
Ole Troan [Thu, 13 Jun 2024 09:40:25 +0000 (11:40 +0200)]
dpdk: expose xstats in stats segment

Expose DPDK xstats in the stat segment.
Represented as a 2D array. Thread by sw_if_index.
Each counter has the same name as the corresponding xstats counter,
under /if/<driver-name>/<xstats-name>

Type: improvement
Change-Id: Icd34b46e2b4d708f1c9a7063d6afd4ced3dfa4f5
Signed-off-by: Ole Troan <otroan@employees.org>
9 days agovnet: move format_vl_api_address_union() from vpp to vnet 50/41150/2
Benoît Ganne [Mon, 17 Jun 2024 13:33:59 +0000 (15:33 +0200)]
vnet: move format_vl_api_address_union() from vpp to vnet

format_vl_api_address_union() is used by vnet, creating a linkage
dependency from vnet to vpp.

Type: fix

Change-Id: I298a90d521e51b7527ef140d66130062824e1d16
Signed-off-by: Benoît Ganne <bganne@cisco.com>
10 days agovppinfra: export os_exit and os_puts 51/41151/1
Benoît Ganne [Mon, 17 Jun 2024 13:32:12 +0000 (15:32 +0200)]
vppinfra: export os_exit and os_puts

os_exit() and os_puts() are not exported, preventing linkage with
libvppinfra if those are not defined.

Type: fix

Change-Id: I7e3b583147e1348f078afeac3f793fe150405009
Signed-off-by: Benoît Ganne <bganne@cisco.com>
12 days agotcp: make syn-rcvd timeout configurable 02/41102/4
Florin Coras [Mon, 10 Jun 2024 20:12:40 +0000 (13:12 -0700)]
tcp: make syn-rcvd timeout configurable

Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic89570315a5c3c00e0e89c5535929313916869eb

12 days agohs-test: output docker build command for ci console log 44/41144/2
Dave Wallace [Fri, 14 Jun 2024 18:59:38 +0000 (14:59 -0400)]
hs-test: output docker build command for ci console log

- clean up shellcheck warnings
- rename extras/hs-test/test script
- add -x attribute to compress script for consistancy

Type: test

Change-Id: I5d1a9d16eeaff18562461b1e445e32ac696266d3
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
12 days agovapi: Add option to dispatch with timeout 05/41105/4
Dau Do [Tue, 11 Jun 2024 02:55:19 +0000 (19:55 -0700)]
vapi: Add option to dispatch with timeout

Type: improvement

Change-Id: I606efc90d9b1b8e2a2590a8b4e0021e2508642b2
Signed-off-by: Dau Do <daudo@yahoo.com>
12 days agohs-test: separate infra from tests 69/40969/4
Adrian Villin [Fri, 14 Jun 2024 07:32:39 +0000 (09:32 +0200)]
hs-test: separate infra from tests

- most functions and vars now start with a capital letter:
  needed to access them outside the package that declares
  them
- updated README.md
- very minor changes in MAKEFILE

Type: test

Change-Id: I4b5a194f08f09d59e372e57da6451fbb5a1de4da
Signed-off-by: Adrian Villin <avillin@cisco.com>
13 days agocrypto-native: fix CPU detection for SHA2 code 41/41141/3
Damjan Marion [Thu, 13 Jun 2024 10:08:03 +0000 (10:08 +0000)]
crypto-native: fix CPU detection for SHA2 code

Type: fix
Fixes: 9f2799f
Change-Id: Ib2b2df17507c536350ec92eeb1eea58f3a240c76
Signed-off-by: Damjan Marion <damarion@cisco.com>
13 days agovnet: export header files to build the plugins 39/41139/2
Dau Do [Thu, 13 Jun 2024 08:31:46 +0000 (01:31 -0700)]
vnet: export header files to build the plugins

Type: improvement

Change-Id: I86e8616a134829a66a9c9bb4313bbf95f835e7c0
Signed-off-by: Dau Do <daudo@yahoo.com>
13 days agohs-test: added cleanup target 68/40968/4
Adrian Villin [Thu, 13 Jun 2024 06:59:58 +0000 (08:59 +0200)]
hs-test: added cleanup target

- Also added checkstyle-go and fixstyle-go to 'make help'

Type: make

Change-Id: I5402efa02bbbc54a20db8f54b0488c58a62ffaa1
Signed-off-by: Adrian Villin <avillin@cisco.com>
2 weeks agohttp: return more than url to server app 76/41076/4
Matus Fabian [Tue, 4 Jun 2024 17:00:00 +0000 (19:00 +0200)]
http: return more than url to server app

Provide all bytes as received from transport as data in the http
message to server. Additionally provide offset and length of target
path, target query, headers and body. Offers apis for parsing of
headers, percent decoding, target path/query syntax verification.

Type: improvement

Change-Id: Idbe6f13afa378650cc5212ea7d3f9319183ebbbe
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2 weeks agohs-test: improved suite teardown and replaced PIDs with PPIDs 64/40964/11
Adrian Villin [Thu, 6 Jun 2024 08:26:30 +0000 (04:26 -0400)]
hs-test: improved suite teardown and replaced PIDs with PPIDs

- Fixed an issue where containers wouldn't stop and get removed when
  a test run is interrupted
- Replaced PIDs with Ginkgo process indexes + PPIDs
- Fixed CPU allocation for envoy and nginx-ldp containers
- All container logs should now get saved properly

Type: test

Change-Id: I4c737c1d326390494c0dda1ec6d3fc1f04f51663
Signed-off-by: Adrian Villin <avillin@cisco.com>
2 weeks agosession: fix ho cleanup on forced reset 14/41114/1
Florin Coras [Wed, 12 Jun 2024 17:14:40 +0000 (10:14 -0700)]
session: fix ho cleanup on forced reset

Avoid double free if app forces reset while half-open is cleaning up.

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2311fb763076aa8a263c193f5967793402eedb6a

2 weeks agohs-test: added go style targets 66/40966/4
Adrian Villin [Tue, 11 Jun 2024 08:32:08 +0000 (10:32 +0200)]
hs-test: added go style targets

- added checkstyle-go and fixstyle-go
- comments in stats_fs.go were missing a space

Type: make

Change-Id: I520acab5ff61eaf9d0ccfd9425bdc41f74559198
Signed-off-by: Adrian Villin <avillin@cisco.com>
2 weeks agosession: fix ho cleanup on active and passive close 10/41110/3
Florin Coras [Tue, 11 Jun 2024 19:17:04 +0000 (12:17 -0700)]
session: fix ho cleanup on active and passive close

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I9e7011ff45f14e17fc0d0d63800184f404c29093

2 weeks agoipsec: move ah packet processing in the inline function ipsec_ah_packet_process 79/39979/6
vinay tripathi [Fri, 12 Jan 2024 10:28:00 +0000 (10:28 +0000)]
ipsec: move ah packet processing in the inline function ipsec_ah_packet_process

This inline function is introduced to simplify code readability and consolidate AH packet
processing in separate API.

Type: improvement

Change-Id: Id98074d00aba277fed714ea9995655c9e84ec83b
Signed-off-by: vinay tripathi <vinayx.tripathi@intel.com>
2 weeks agoipsec: Add option to configure the hand-off worker queue size 06/41106/4
Dau Do [Mon, 29 Apr 2024 03:00:55 +0000 (03:00 +0000)]
ipsec: Add option to configure the hand-off worker queue size

Type: improvement

Change-Id: I252951d3ec01497c049ca0ffb7cb42aaf2efb965
Signed-off-by: Dau Do <daudo@yahoo.com>
2 weeks agopapi: more detailed packing error message 22/40622/2
Klement Sekera [Fri, 29 Mar 2024 14:04:49 +0000 (15:04 +0100)]
papi: more detailed packing error message

'struct.error: required argument is not an integer'

is quite useless itself, so let's raise an error from it at least
saying what was the thing getting packed

Type: improvement
Change-Id: Icb762fbab98446d1e1331315e6c337f789cbba95
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
2 weeks agoocteon: add clear counters for port and queues 05/40905/3
Monendra Singh Kushwaha [Mon, 20 May 2024 21:56:49 +0000 (03:26 +0530)]
octeon: add clear counters for port and queues

Type: feature

Change-Id: Ie36be41694e7bd5341b4239dcba2ae6834c4a73f
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agodev: add port and queue counter clear operation 04/40904/3
Monendra Singh Kushwaha [Mon, 20 May 2024 21:48:26 +0000 (03:18 +0530)]
dev: add port and queue counter clear operation

Type: feature

Change-Id: Ibd876c5251fc2f9d87816d235fff2de22be4b21c
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agohs-test: added filenames to test names 65/40965/4
Adrian Villin [Fri, 7 Jun 2024 10:45:48 +0000 (06:45 -0400)]
hs-test: added filenames to test names

- It is now possible to only run tests that are in a certain file

Type: test

Change-Id: I41665dd2bc0942c283be36a5af3e560fd65e9d03
Signed-off-by: Adrian Villin <avillin@cisco.com>
2 weeks agoquic: initialize ooo lookup on fifos 95/41095/3
Florin Coras [Fri, 7 Jun 2024 23:06:51 +0000 (16:06 -0700)]
quic: initialize ooo lookup on fifos

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6a0493834c5b60bdb42865112c453157fdfeb87c

2 weeks agohs-test: HTTP download benchmarking 86/41086/3
Matus Fabian [Thu, 6 Jun 2024 09:24:36 +0000 (11:24 +0200)]
hs-test: HTTP download benchmarking

HttpTpsTest now use Gomega's gmeasure package and go internal http
client. With gmeasure you can create "Experiments" which can produce
reports to show the statistical distribution of measurement.
Potentially experiments can also be cached and used to identify
regression in performance.

Type: test

Change-Id: Id049fb0344d8ebed71b15e706b053b5c2a18e0de
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2 weeks agobuild: Fix makefile syntax 82/41082/2
Renato Botelho do Couto [Wed, 5 Jun 2024 17:49:09 +0000 (17:49 +0000)]
build: Fix makefile syntax

Type: fix

Change-Id: I29f679ffbc14242d9e7e5284b698b86a70fbbef6
Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
2 weeks agobuild: Use $(MAKE) instead of direct call to make 83/41083/2
Renato Botelho do Couto [Wed, 5 Jun 2024 18:11:46 +0000 (18:11 +0000)]
build: Use $(MAKE) instead of direct call to make

No functional changes, just make it to respect original make binary
name used to start building

Type: improvement

Change-Id: Ic8568237fbb39c6a0d3b7405a9670e9410aeb752
Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
2 weeks agovlib: fix gdb_show_traces() 90/41090/2
Benoît Ganne [Thu, 6 Jun 2024 08:46:50 +0000 (10:46 +0200)]
vlib: fix gdb_show_traces()

When using gdb_show_traces() in debug mode, don't assert if workers are
not parked, as it is typically called from gdb.

Type: fix

Change-Id: Iabf175d96dc152da4d1abfbce9ccc9020d0b5d61
Signed-off-by: Benoît Ganne <bganne@cisco.com>
2 weeks agoocteon: add support for vnet generic flow type 15/40615/7
Sriram Vatala [Tue, 12 Mar 2024 04:22:00 +0000 (04:22 +0000)]
octeon: add support for vnet generic flow type

This patch adds vnet generic flow type support in OCTEON plugin, which
extends the existing vnet flow types supported. It allows users to
configure additional match patterns like 802.1q tag fields, 802.1ad tag
fields, MPLS fields, IP DSCP etc., if supported by the underlying hardware.
On OCTEON various match patterns including user defined custom protocol
types can be supported depending on the programmable classification profile.
Generic flows operate based on hexadecimal strings representing packet
data bytes and corresponding mask data bytes. The mask data bytes, with
bits set to '1', selectively identify the data bytes used for hardware
flow matching.

To configure generic flow rules, packetforge tool is recommended which
accepts inputs in a user readable and friendly format. This tool is
available in VPP tree under `extras/packetforge`. Detailed instructions
can be found in the documentation under `extras/packetforge`. Additionally
user can use existing vnet flow CLI and binary API interfaces to
configure rules manually.

Type: feature

Change-Id: I8198536cf1fe0a4719542a8b54c599230c7852e9
Signed-off-by: Sriram Vatala <svatala@marvell.com>
2 weeks agoocteon: add counters support for port and queue 93/40893/2
Monendra Singh Kushwaha [Thu, 16 May 2024 08:45:40 +0000 (14:15 +0530)]
octeon: add counters support for port and queue

Type: feature

Change-Id: I5d52d78a93c7d0a12b9cee16fe7ebabdc2b19f0a
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agodev: fix counter_start in counter clear routine 92/40892/2
Monendra Singh Kushwaha [Thu, 16 May 2024 06:54:37 +0000 (12:24 +0530)]
dev: fix counter_start in counter clear routine

This patch fixes counter_start value, as it should hold the cumulative
counter value whenever counter clear routine is called.

Type: fix
Fixes: 38c619115b

Change-Id: I50bf8ddcde419caf1170dfacdea03ff3d93a3327
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agoocteon: update trace to use qid instead of q 14/40914/4
Monendra Singh Kushwaha [Wed, 22 May 2024 08:47:21 +0000 (14:17 +0530)]
octeon: update trace to use qid instead of q

This patch updates trace to use "qid" keywords instead of "q".

Type: feature

Change-Id: Ib0f41a8a1a93cbbbf8c59304924d4e68efff48fd
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agoocteon: enable vf device promiscuous mode feature 98/41098/1
Harish Malik [Fri, 7 Jun 2024 11:34:46 +0000 (17:04 +0530)]
octeon: enable vf device promiscuous mode feature

This patch enables promiscuous mode on vf devices except SDP vf
and LBK devices

Type: feature

Change-Id: I2e18c63590f22f99c69500f10b42b64d899249ce
Signed-off-by: Kommula Shiva Shankar <kshankar@marvell.com>
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2 weeks agobuild: bump octeon-roc version to 0.5 97/41097/1
Monendra Singh Kushwaha [Mon, 3 Jun 2024 12:03:41 +0000 (17:33 +0530)]
build: bump octeon-roc version to 0.5

This patch enables vf device promiscuous mode feature in
octeon-roc except SDP vf and LBK devices.

Type: feature

Change-Id: I221f64ba0bb768191e2228dab132166a8a3326c3
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
3 weeks agohs-test: more debug output in http3 test 85/41085/1
Florin Coras [Thu, 6 Jun 2024 07:08:27 +0000 (03:08 -0400)]
hs-test: more debug output in http3 test

Type: test

Change-Id: I4d2b949f5ef5446c04ca6f35b0bd659ce389170f
Signed-off-by: Florin Coras <fcoras@cisco.com>
3 weeks agohs-test: keep ab/wrk containers alive until teardown 63/40963/2
Adrian Villin [Wed, 5 Jun 2024 09:53:50 +0000 (05:53 -0400)]
hs-test: keep ab/wrk containers alive until teardown

- Fixes errors while obtaining container logs on test failure
  (NginxPerf tests), ab/wrk containers are now stopped on test teardown
  like other containers.

Type: test

Change-Id: Ic336fcd3ed6bf68dd345d378262cb28eb5efc789
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 weeks agotests: organize test coverage report generation 01/40201/5
Dave Wallace [Tue, 16 Jan 2024 18:12:27 +0000 (13:12 -0500)]
tests: organize test coverage report generation

- Remove code from test report that is effectively
  untested and categorize based on reason for lack
  of testing.

Type: test

Change-Id: I6ca5444055b3a81a4880945b6845afc867556277
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
3 weeks agobuffers: support per-numa-domain buffer size 35/41035/3
Lukas Stockner [Tue, 4 Jun 2024 14:14:55 +0000 (16:14 +0200)]
buffers: support per-numa-domain buffer size

Currently, buffers-per-numa is used for all NUMA domains, and there's
no way to allocate different amounts for each domain.

Therefore, this adds a per-NUMA-domain buffer config section, which
currently has a single option to set the number of buffers.

If it's not specified or set to zero, the code falls back to
buffers-per-numa as before.

Type: improvement
Change-Id: If35d7a9eff6f8d1d78063ea7873dbf50780d0ec3
Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com>
3 weeks agohs-test: fix coverage integration 62/40962/3
Adrian Villin [Tue, 4 Jun 2024 12:59:58 +0000 (08:59 -0400)]
hs-test: fix coverage integration

- fixed 'make test-cov' not generating gcda files

Type: test

Change-Id: I9745c6501a97248ab343a5dbb39dddcc75f715fd
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 weeks agoipsec: fix missing udp port check 28/40928/8
Fan Zhang [Fri, 24 May 2024 15:46:00 +0000 (16:46 +0100)]
ipsec: fix missing udp port check

Type: fix

This patch fixes the missing UDP port check in IPsec NAT-T
case. As of RFC3948 UDP encapped ESP traffic should have
destination port ID of 4500, which was missing.

The related tests are updated with this port ID, too.

Change-Id: I73ecc6a93de8d0f4b642313b0f4d9c2f214a7790
Signed-off-by: Fan Zhang <fanzhang.oss@gmail.com>
3 weeks agoip: add support for drop route through vpp CLI 19/40719/3
Mohsin Kazmi [Fri, 19 Apr 2024 11:02:28 +0000 (11:02 +0000)]
ip: add support for drop route through vpp CLI

Type: improvement

Change-Id: Ib822f36ff7b3ecda162fc99bf3892f912d0649f0
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
3 weeks agofib: set the value of the sw_if_index for DROP route 18/40718/3
Mohsin Kazmi [Fri, 19 Apr 2024 09:10:46 +0000 (09:10 +0000)]
fib: set the value of the sw_if_index for DROP route

Type: fix

fib_api_path_decode() is utilized by the IP route API call
to translate the path from the API to the fib_route_path_t
structure. The ip_route_add_del_handler_t function initializes
the fib_route_path_t structure to zeros, consequently setting
the sw_if_index value to 0, which is a valid value in VPP.
Typically, the default VRF (Virtual Routing and Forwarding)
has a local interface at index 0, leading to normal functionality.
However, a custom VRF table without any interface will result
in a crash.

The issue arises because the DROP route in fib_api_path_decode()
does not override the sw_if_index value with the one provided
in vl_api_fib_path_t. Subsequently, when this sw_if_index is
attempted to be resolved in the VRF table where the interface
does not exist, it leads to a crash.

This patch addresses the problem by setting the sw_if_index of
fib_route_path_t to the sw_if_index value of the API path.

To reproduce the issue, please remove the fix and run the following command:
make test-debug TEST=test_ip4.TestIPv4RouteLookup.test_exact_match

Change-Id: I5d72e91e5c701e749a92873941bee7b7b5eabd41
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
3 weeks agohs-test: add libunwind dependency to nginx dockerfile 61/40961/1
Adrian Villin [Mon, 3 Jun 2024 08:58:58 +0000 (04:58 -0400)]
hs-test: add libunwind dependency to nginx dockerfile

- Libunwind was missing in Dockerfile.nginx, causing some tests to fail.
  Tests that were temporarily disabled because of that issue
  are now re-enabled.

Type: test

Change-Id: I3f544be483784e8a7a1f22737cafca615b9f836b
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 weeks agovlib: clean up r2 plugin registration relocator 28/41028/1
Dave Barach [Sat, 1 Jun 2024 12:44:28 +0000 (08:44 -0400)]
vlib: clean up r2 plugin registration relocator

Thanks, Eliot!

Type: fix
Change-Id: I3737f62d08d5cd2db803af86285f9a2e456bab72
Signed-off-by: Dave Barach <vpp@barachs.net>
3 weeks agohs-test: temp skip some tests 60/40960/2
Adrian Villin [Fri, 31 May 2024 14:11:34 +0000 (10:11 -0400)]
hs-test: temp skip some tests

- Some tests are broken in the CI, skipping them
  for now

Type: test

Change-Id: I3d4efeee63b819956e5ffa1b3920e81962a2fcc9
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 weeks agohs-test: container logging improvements 59/40959/1
Adrian Villin [Fri, 31 May 2024 10:46:52 +0000 (06:46 -0400)]
hs-test: container logging improvements

- Reduced the amount of error messages while obtaining container logs
  when a test fails by keeping track of started containers. NginxPerf
  tests still have those error messages, because wrk/ab containers shut
  themselves down before the test ends.

Type: test

Change-Id: I40a193345e5b46aec1834774f23aebc822eee885
Signed-off-by: Adrian Villin <avillin@cisco.com>
3 weeks agohs-test: add libunwind dependency to vpp dockerfile 16/41016/3
Dave Wallace [Thu, 30 May 2024 18:27:35 +0000 (14:27 -0400)]
hs-test: add libunwind dependency to vpp dockerfile

- missing from https://gerrit.fd.io/r/c/vpp/+/40929 due to hst not running in CI yet.

Type: fix

Change-Id: Ib5d9b877725624ef7de9f2be5e517609aec7c5a1
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
4 weeks agohs-test: added targets to makefiles to get coverage from HS tests 77/40177/10
adrianvillin [Thu, 11 Jan 2024 10:59:47 +0000 (11:59 +0100)]
hs-test: added targets to makefiles to get coverage from HS tests

Type: make

Change-Id: Iae7998692890264dfeea98c165617d0efa024d42
Signed-off-by: adrianvillin <avillin@cisco.com>
4 weeks agohs-test: set longer timeouts while debugging 57/40957/2
Adrian Villin [Thu, 30 May 2024 10:10:59 +0000 (06:10 -0400)]
hs-test: set longer timeouts while debugging

Type: test

Change-Id: I87baba7efa36dd40f086523b35bc6d3b0a26a1b5
Signed-off-by: Adrian Villin <avillin@cisco.com>
4 weeks agohs-test: pin CPUs to containers 56/40956/4
Adrian Villin [Mon, 27 May 2024 13:52:59 +0000 (09:52 -0400)]
hs-test: pin CPUs to containers

Type: test

Change-Id: I412be2dec7ff352740e50e838e0ac466bf0a6674
Signed-off-by: Adrian Villin <avillin@cisco.com>
4 weeks agoocteon: convert link speed from Mbps to Kbps 87/40987/3
Monendra Singh Kushwaha [Wed, 29 May 2024 11:47:07 +0000 (17:17 +0530)]
octeon: convert link speed from Mbps to Kbps

Type: fix
Fixes: 01fe7ab88e

Change-Id: I88d03adcd4ef2a585ed77834b3bf8ef9d50b15c9
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
4 weeks agovlib: stack trace and signal handler improvements 29/40929/9
Damjan Marion [Thu, 23 May 2024 13:06:39 +0000 (13:06 +0000)]
vlib: stack trace and signal handler improvements

 - use libunwrap which seems to be industry standard
 - display traceback on console if running interactive or with syslog
   disabled (color output unless nocolor specified)
 - print hexdump of offending code
 - print library filename for each stack frame

Type: improvement
Change-Id: I61d3056251b87076be0578ccda300aa311c222ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
4 weeks agohttp_static: sanitize path before file read 76/40976/2
Matus Fabian [Tue, 28 May 2024 11:39:13 +0000 (13:39 +0200)]
http_static: sanitize path before file read

Romove dot segments from requested target path before start reading
file in file handler to prevent path traversal.

Type: fix

Change-Id: I3bdd3e9d7fffd33c9c8c608169c1dc73423b7078
Signed-off-by: Matus Fabian <matfabia@cisco.com>
4 weeks agoocteon: add support for Marvell Octeon9 SoC 08/40508/6
Monendra Singh Kushwaha [Wed, 28 Feb 2024 07:39:06 +0000 (13:09 +0530)]
octeon: add support for Marvell Octeon9 SoC

Type: feature

Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Change-Id: I5db58b8ec41b45596bc03b4a336a184c17871294

4 weeks agoocteon: fix lbk vf initialization 22/40922/2
Monendra Singh Kushwaha [Thu, 23 May 2024 10:46:42 +0000 (16:16 +0530)]
octeon: fix lbk vf initialization

Type: fix
Fixes: 0a2fdc56

Change-Id: I5d232a86be66edeec8b740a883104f5a22516697
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
4 weeks agourpf: export to use it externally 97/40497/10
Maxime Peim [Mon, 11 Mar 2024 09:35:16 +0000 (10:35 +0100)]
urpf: export to use it externally

Type: improvement
Change-Id: Ia70f16c92dfc153256db6dcdf23f5487d5a7b678
Signed-off-by: Maxime Peim <mpeim@cisco.com>
4 weeks agourpf: node refactor 03/40703/9
Maxime Peim [Mon, 15 Apr 2024 08:13:58 +0000 (10:13 +0200)]
urpf: node refactor

Type: refactor
Change-Id: Icb3c6cbe1425331c7a8a4b0dd583389f2257befa
Signed-off-by: Maxime Peim <mpeim@cisco.com>
4 weeks agoudp: fix csum computation when offload disabled 25/40925/4
Florin Coras [Fri, 24 May 2024 01:22:48 +0000 (18:22 -0700)]
udp: fix csum computation when offload disabled

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I11de9e1156420e0a37d637d8611bb3cf9788d699

4 weeks agoip6: fix icmp throttling error index 26/40926/1
Maxime Peim [Fri, 24 May 2024 13:29:50 +0000 (15:29 +0200)]
ip6: fix icmp throttling error index

Type: fix
Change-Id: I57ce42c193fd9408b9d4790482ea76d784148c30
Signed-off-by: Maxime Peim <mpeim@cisco.com>
4 weeks agovlib: improvement to automatic core pinning 19/40919/8
hsandid [Wed, 22 May 2024 13:30:24 +0000 (15:30 +0200)]
vlib: improvement to automatic core pinning

Type: feature

If 'main-core' is not specified, the main thread is pinned
by default to the cpu it is running on during initialization.
This change does not impact manual core-pinning, which
requires the 'main-core' argument
e.g. 'cpu {main-core x corelist-workers n}.

Change-Id: I874034591bf0acf4d71b231dfbbb0f6de8fe6060
Signed-off-by: hsandid <halsandi@cisco.com>
4 weeks agovirtio: Add RX queue full statisitics 76/40576/2
Steven Luong [Wed, 20 Mar 2024 19:28:49 +0000 (12:28 -0700)]
virtio: Add RX queue full statisitics

In production network, often the host and the vm are managed by different
groups. The host statistics may not be readily available to the folks who
manage the VM. Having the RX queue full statistics in VPP can inform
that there might possibly be drops in the host.

Type: improvement

Change-Id: I43206647ac0d8092968c4187236d9696ae0acccd
Signed-off-by: Steven Luong <sluong@cisco.com>
5 weeks agohs-test: fix CPU alloc when running in parallel 35/40735/3
Adrian Villin [Wed, 22 May 2024 13:26:47 +0000 (09:26 -0400)]
hs-test: fix CPU alloc when running in parallel

Type: test

Change-Id: I6062eddffb938880d9ec004c8418a9a731891989
Signed-off-by: Adrian Villin <avillin@cisco.com>
5 weeks agovppinfra: support libunwind for backtrace 21/40921/2
Guillaume Solignac [Thu, 23 May 2024 09:59:53 +0000 (11:59 +0200)]
vppinfra: support libunwind for backtrace

On non-glibc systems, execinfo is the only option available, but the lib
is old and can crash when unwinding. We now can use libunwind to unroll
it instead of using execinfo.h.

Type: improvement
Signed-off-by: Guillaume Solignac <gsoligna@cisco.com>
Change-Id: I8b55f7aca97261a2efb5dca998889d5e0645939a

5 weeks agovlib: prevent some signals from being executed on workers 12/40912/3
Guillaume Solignac [Wed, 22 May 2024 08:47:33 +0000 (10:47 +0200)]
vlib: prevent some signals from being executed on workers

Before this commit, SIGINT, SIGHUP and SIGTERM could be executed on the
workers. Since those signals don't stop execution, it meant that atexit
handlers (like the `vl_unmap_shmem`) could run while the main thread was
still running, which can cause race conditions. To avoid that, we
prevent workers from handling those signals.

Type: fix
Signed-off-by: Guillaume Solignac <gsoligna@cisco.com>
Change-Id: I27a87d96a027d7423ced881a614427af4ab0f969

5 weeks agomisc: Initial 24.10-rc0 commit 33/40733/1 v24.10-rc0
Andrew Yourtchenko [Wed, 22 May 2024 10:58:06 +0000 (12:58 +0200)]
misc: Initial 24.10-rc0 commit

Type: docs
Change-Id: If9cfc421a0769b68a8520e99c41c954db1973ca9
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
5 weeks agosession: remove ipv6 lookup threading assert 09/40909/1
Brian Morris [Tue, 21 May 2024 15:25:30 +0000 (15:25 +0000)]
session: remove ipv6 lookup threading assert

This makes session_lookup_connection_wt6 consistent with session_lookup_connection_wt4 -
they both just return an error for wrong thread.

Type: fix
Change-Id: Ide38976e9a7274b53311e65711098e6b22a3f8d5
Signed-off-by: Brian Morris <bmorris2@cisco.com>
5 weeks agobuiltinurl: mark api as deprecated 03/40903/1
Matus Fabian [Mon, 20 May 2024 18:01:04 +0000 (20:01 +0200)]
builtinurl: mark api as deprecated

Plugin will be removed since it is incorporated in http_static plugin
for longer time.

Type: refactor
Change-Id: I6ed99d1b118fb5951aafceb05a953f39d325e87e
Signed-off-by: Matus Fabian <matfabia@cisco.com>
5 weeks agohs-test: fixed timed out tests passing in the CI 29/40729/10
Adrian Villin [Fri, 10 May 2024 08:19:35 +0000 (04:19 -0400)]
hs-test: fixed timed out tests passing in the CI

Type: test

Change-Id: Id05ea56bc5dfd80d42b8600cf11e763e25420bd0
Signed-off-by: Adrian Villin <avillin@cisco.com>
5 weeks agohttp: ignore http_proxy env in tests 96/40896/1
Matus Fabian [Fri, 17 May 2024 09:28:43 +0000 (11:28 +0200)]
http: ignore http_proxy env in tests

Type: test

Change-Id: I45a091a43e7ecb3f321fc9ecc761df2b44c9c351
Signed-off-by: Matus Fabian <matfabia@cisco.com>
5 weeks agohs-test: updated api calls 31/40731/5
Adrian Villin [Wed, 15 May 2024 08:33:41 +0000 (04:33 -0400)]
hs-test: updated api calls

Type: test

Change-Id: I2583ee74426ef154d03d4991b78ab57c5cec436f
Signed-off-by: Adrian Villin <avillin@cisco.com>
6 weeks agoip-neighbor: show age instead of time in cli 89/40889/3
Maxime Peim [Wed, 15 May 2024 07:47:16 +0000 (09:47 +0200)]
ip-neighbor: show age instead of time in cli

To match the API behavior, and as it is more useful to have an entry
age than its time last probe.

Type: fix
Change-Id: I07680cd713d0d2b6208a58208b032af7f6a92825
Signed-off-by: Maxime Peim <mpeim@cisco.com>
6 weeks agohttp: fix unsupported client app method 87/40887/2
Matus Fabian [Tue, 14 May 2024 08:04:35 +0000 (10:04 +0200)]
http: fix unsupported client app method

HTTP client app code currently support only GET method but method
set in message from client app was silently ignored.

Type: fix

Change-Id: I99dc6323d9783ee5a20623e7923cfdbf31474a4f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 weeks agohttp: notify client when connection failed 83/40883/2
Matus Fabian [Mon, 13 May 2024 08:29:11 +0000 (10:29 +0200)]
http: notify client when connection failed

Type: fix

Change-Id: I87054e9667fe990d9a2dc3950bc3ce348460018a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 weeks agohttp: fix server sending all status codes 81/40881/3
Matus Fabian [Fri, 10 May 2024 14:20:40 +0000 (16:20 +0200)]
http: fix server sending all status codes

Type: fix

Change-Id: I4bc748e3091c2fbe0142d1b74d21a543a62c4ce0
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 weeks agosr: move srmpls to a plugin 66/40866/10
Scott Hutton [Fri, 3 May 2024 14:40:42 +0000 (07:40 -0700)]
sr: move srmpls to a plugin

Move sr_mpls folder under vnet to the plugin folder, update cmake configuration
and header paths, and add plugin.c to register plugin.

JIRA: VPP-2054

Type: improvement
Change-Id: I1ad6f287f67eb0c35588c339bcd51218fadf5f8e
Signed-off-by: Scott Hutton <schutton@cisco.com>
6 weeks agomarvell: remove uses of uint 72/40772/3
lajoskatona [Mon, 22 Apr 2024 15:29:03 +0000 (17:29 +0200)]
marvell: remove uses of uint

This change changes all instances of `uint` to `unsigned int` to avoid
use of the non-standard type. This fixes problems that some versions of
GCC may have.
For similar patch see: https://gerrit.fd.io/r/c/vpp/+/40762

Type: fix
Change-Id: I0c666de788ac5b3c457e0a073e3e279f2fb99a4f
Signed-off-by: lajoskatona <katonalala@gmail.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 weeks agovppinfra: Add platform cpu and domain get for FreeBSD 68/40468/13
Tom Jones [Mon, 6 May 2024 14:53:57 +0000 (14:53 +0000)]
vppinfra: Add platform cpu and domain get for FreeBSD

Type: improvement
Change-Id: I5253f2b1b51493f2d4d0f451ad4c2208fd8f6bf2
Signed-off-by: Tom Jones <thj@freebsd.org>
6 weeks agovppinfra: fix mhash oob after unset and add tests 38/40438/3
Vladislav Grishenko [Thu, 14 Dec 2023 16:48:28 +0000 (17:48 +0100)]
vppinfra: fix mhash oob after unset and add tests

Fix out of buffer access after mhash_unset
Add format mhash pair functions
Add related mhash tests, similar to hash ones

Type: fix
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: Idbefd7d32c4cd16b55d84ad4006c38251b4e2c33

6 weeks agodpdk: Only prealloc huge pages on Linux 73/40873/2
Tom Jones [Tue, 7 May 2024 10:07:47 +0000 (10:07 +0000)]
dpdk: Only prealloc huge pages on Linux

Type: improvement
Change-Id: I4d9c0f96d81c8b510086a54990b3fcd3d5fdb695
Signed-off-by: Tom Jones <thj@freebsd.org>
6 weeks agonetmap: Reinstate and update netmap plugin 75/40875/2
Tom Jones [Wed, 7 Feb 2024 14:55:20 +0000 (14:55 +0000)]
netmap: Reinstate and update netmap plugin

Thet netmap plugin was moved to depreciated in commit 998b8fe.

On FreeBSD netmap offers a natively supported kernel interface for
userspace networking and enables VPP without the use of DPDK.

Reinstate the netmap plugin and adapt it to the newer plugin interface.

Type: improvement
Change-Id: I113daa33a490f04cbb29909f9789fa66284ac80e
Signed-off-by: Tom Jones <thj@freebsd.org>
6 weeks agohttp: fix user agent in request 84/40884/2
Matus Fabian [Mon, 13 May 2024 09:50:46 +0000 (11:50 +0200)]
http: fix user agent in request

App name is used in HTTP request User-Agent header.

Type: fix

Change-Id: Ib761e8a8e793e04e8d77141cc8c0f8514ed0e547
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 weeks agovlib: avoid pci scan without registrations 52/40752/2
Vladimir Zhigulin [Fri, 19 Apr 2024 10:08:02 +0000 (12:08 +0200)]
vlib: avoid pci scan without registrations

Type: improvement
Signed-off-by: Vladimir Zhigulin <scripath96@gmail.com>
Change-Id: Id1d78a36cec10a01fbf266b016ba364519e5cb66

6 weeks agodev: fix mac address dump in trace output 29/40829/3
Alok Mishra [Fri, 26 Apr 2024 13:40:13 +0000 (18:40 +0500)]
dev: fix mac address dump in trace output

"port->attr.hw_addr" is set during the port initialization. It won't be
updated if the mac address of the port is changed via the vpp command
line.
Use "port->primary_hw_addr" to dump the updated mac address correclty.

Type: fix
Fixes: 38c619115b

Change-Id: I6c99fcfdfae67efb3606e17f36781c56716ff7ea
Signed-off-by: Alok Mishra <almishra@marvell.com>