5e9f9ef218
Reduce route add/del message from INFO to DBG
2023-01-14 16:52:57 +00:00
815a6e0dce
Run VPP's checkstyle to reformat the code
2023-01-11 16:21:40 +00:00
e53d4376ab
cleanup: Clean logging, consistent capitalization, nouns, and macro names
2023-01-11 16:18:18 +00:00
2a218983d6
Print the network namespace that the listener was created/removed for, not the interface that caused it
2023-01-11 15:51:11 +00:00
50c1e0f0d4
Backport gerrit.fd.io/r/c/vpp/+/37426
2023-01-11 13:00:40 +00:00
6faf206370
merge
2023-01-11 12:12:15 +00:00
263ff9d02c
Initialize var in case of error return, per upstream a01be735f2
2023-01-11 13:08:54 +01:00
b7fd36bda4
Add entry flags per upstream f0781829d
2023-01-11 13:08:03 +01:00
43eb442624
Fix endianness bug in lcp_pair_add_v2()
2023-01-11 12:35:16 +01:00
efc385c17f
Fix endianness per upstream c8cd079a0
2023-01-11 11:14:33 +01:00
e035203162
Fix memory leak on failed tap creation per upstream 37b5cccb; Also, sync the RX/TX queues to be the same as upstream linux-cp
2023-01-11 11:13:40 +01:00
532858f8b7
Reduce message to DBG per upstream d3ccb0c
2023-01-11 11:12:39 +01:00
60918e71e0
Merge branch 'main' of github.com:pimvanpelt/lcpng into main
2022-11-25 11:55:58 +00:00
93d4bc29b0
Update README.md
...
h/t Jim Thompson
2022-11-17 17:49:05 +01:00
7027bf6250
Backport https://gerrit.fd.io/r/c/vpp/+/36814
2022-10-04 13:16:30 +00:00
a4006ec5da
Backport https://gerrit.fd.io/r/c/vpp/+/37026
2022-10-04 13:13:57 +00:00
623973dc1f
Backport https://gerrit.fd.io/r/c/vpp/+/36961
2022-10-04 13:11:53 +00:00
a0ad5cc5cf
Merge Gerrit 36176 from upstream
2022-06-03 20:33:48 +00:00
786530701d
Backport https://gerrit.fd.io/r/c/vpp/+/35719
2022-03-31 23:23:36 +00:00
0bc3e01c9b
Backport https://gerrit.fd.io/r/c/vpp/+/35528
2022-03-08 14:45:35 +00:00
a68a6e89e5
Backport https://gerrit.fd.io/r/c/vpp/+/35519
2022-03-08 13:55:28 +00:00
e6e6c11c78
Only signal NL_EVENT_READ once per read cycle, not once per netlink message - from https://gerrit.fd.io/r/c/vpp/+/35525
2022-03-08 13:50:37 +00:00
a27fdb9911
Backport https://gerrit.fd.io/r/c/vpp/+/35523
2022-03-08 13:42:56 +00:00
554988ebf6
Fix API errors - convert int32 to host order and null terminate vectors in the response
2022-03-08 10:08:59 +00:00
f9441c5e03
bugfix - return in host order
2022-02-27 23:05:34 +00:00
8a1c031ea9
backport https://gerrit.fd.io/r/c/vpp/+/35411
2022-02-22 20:42:11 +00:00
5f3eb62be9
Reduce resource usage on virtio polling, also avoid potential (undiagnosed) dataplane lockup when running multiple threads: just poll with one RX queue per TAP
2022-02-20 19:19:58 +00:00
ccd4b393e9
Roll back carrier set
...
-- it works fine for phy's that are carrier-up, but crashes if they are
carrier-down.
0: /home/pim/src/vpp/src/vnet/interface_funcs.h:46 (vnet_get_hw_interface) assertion `! pool_is_free (vnm->interface_main.hw_interfaces, _e)' fails
at /home/pim/src/vpp/src/vppinfra/error.c:143
ns=0x7fff98774e80 "dataplane", host_sw_if_indexp=0x0) at /home/pim/src/vpp/src/plugins/lcpng/lcpng_interface.c:998
at /home/pim/src/vpp/src/plugins/lcpng/lcpng_if_cli.c:96
parent_command_index=371) at /home/pim/src/vpp/src/vlib/cli.c:591
parent_command_index=0) at /home/pim/src/vpp/src/vlib/cli.c:548
at /home/pim/src/vpp/src/vlib/cli.c:694
2021-12-24 21:12:24 +00:00
ddd3ad372a
Only set carrier up when hw is up
2021-12-24 21:04:15 +00:00
1bbe17d586
Merge branch 'main' of github.com:pimvanpelt/lcpng into main
2021-12-24 20:05:57 +00:00
b659de9266
When creating a sub-int from Linux, ensure that the tap subint is set admin-up
2021-12-24 20:05:39 +00:00
fffb1e892a
After fixing the feflags/frpflags bug, install specials again
2021-12-24 20:05:08 +00:00
22e907555d
Initialize the TAP carrier based on the (hardware) phy
2021-12-24 20:04:08 +00:00
37300abf84
Update README.md
...
Add a hint about libmnl
2021-12-20 12:46:16 +01:00
65fa49f30b
Fix crash if netns is not set at startup
2021-12-19 21:46:00 +00:00
d36f34b91d
Fix type issue with route_path flags
2021-12-19 21:32:05 +00:00
cd86f17454
Copy forward neale's improvement from upstream gerrit 33948
2021-11-29 22:26:44 +00:00
a8879bfc54
Merge branch 'main' of github.com:pimvanpelt/lcpng into main
2021-11-29 20:19:46 +00:00
cdf07cce34
Merge review feedback from mgsmith on upstream gerrit 33709 ps8..10
2021-11-29 20:19:34 +00:00
cc2d6908a2
Merge review feedback from mgsmith on upstream gerrit 33709 ps8..10
2021-11-29 20:04:54 +00:00
6caa5e8386
Followup of upstream 8e2b1b129815d3e631aa425ed37899c78ea24e65 addition of MFIB_ENTRY_FLAG_NONE
2021-11-07 18:21:58 +00:00
852a590cf6
Update README.md
2021-10-08 07:56:54 +02:00
bd8d8b40d6
Merge pull request #2 from theraphim/main
...
Don't crash when adding second interface to default namespace.
2021-10-08 07:52:19 +02:00
b72707d560
Don't crash when adding second interface to default namespace.
...
Namespace members used to be char[], now they are vectors. Using
strlen on a default value for these vectors results in a segmentation
fault.
Use vec_cmp instead. While at it, fix the output format to be %v.
2021-10-08 01:27:45 +04:00
92e3835cbe
Merge pull request #1 from jin13417/main
...
Update README.md
2021-09-18 17:01:57 +02:00
311dba085a
Update README.md
...
I think ln -s soruce_dir. link_dir,this is wrong.
2021-09-18 22:00:25 +08:00
4ed9d02693
Fix non NULL terminated strings (namespace and hostname are vectors)
2021-09-09 20:04:15 +00:00
e2ac348759
'ns' is now a vector, don't memcpy it, but vec_dup() instead
2021-09-08 21:38:45 +00:00
043fecb0e0
Only find the parent tap if it's necessary (ie. doesn't already exist in vif_index; change by mgsmith@
2021-09-08 21:15:42 +00:00
2c390ae512
Also set TAP carrier on netlink messages
2021-09-08 21:14:25 +00:00