529a11bb78Fix ADD/REPLACE semantic for IPv4 and IPv6 routes: if NLM_F_REPLACE is set, call fib_table_entry_update(); otherwise call fib_table_entry_path_add2()
Pim van Pelt
2023-05-21 09:11:05 +02:00
9017d1bd3cMove back to multiple rx queues; and copy in the upstream change to autoassign a tap index ID, as the hw_if_index one could ba already taken (by tap create)
Pim van Pelt
2023-04-06 23:36:36 +02:00
6fe37f6a8dRevert change in e035203162 -- set RX/TX queues to 1 -- while hunting down a race condition
Pim van Pelt
2023-02-05 11:34:12 +00:00
ccea08b95dEnsure the string is 0-terminated
Pim van Pelt
2023-02-05 11:32:48 +00:00
5e9f9ef218Reduce route add/del message from INFO to DBG
Pim van Pelt
2023-01-14 16:52:57 +00:00
815a6e0dceRun VPP's checkstyle to reformat the code
Pim van Pelt
2023-01-11 16:21:40 +00:00
e53d4376abcleanup: Clean logging, consistent capitalization, nouns, and macro names
Pim van Pelt
2023-01-11 16:18:18 +00:00
2a218983d6Print the network namespace that the listener was created/removed for, not the interface that caused it
Pim van Pelt
2023-01-11 15:51:11 +00:00
50c1e0f0d4Backport gerrit.fd.io/r/c/vpp/+/37426
Pim van Pelt
2023-01-11 13:00:40 +00:00
6faf206370merge
Pim van Pelt
2023-01-11 12:12:15 +00:00
263ff9d02cInitialize var in case of error return, per upstream a01be735f2
Pim van Pelt
2023-01-11 13:08:54 +01:00
b7fd36bda4Add entry flags per upstream f0781829d
Pim van Pelt
2023-01-11 13:08:03 +01:00
43eb442624Fix endianness bug in lcp_pair_add_v2()
Pim van Pelt
2023-01-11 12:35:16 +01:00
efc385c17fFix endianness per upstream c8cd079a0
Pim van Pelt
2023-01-11 11:14:33 +01:00
e035203162Fix memory leak on failed tap creation per upstream 37b5cccb; Also, sync the RX/TX queues to be the same as upstream linux-cp
Pim van Pelt
2023-01-11 11:13:40 +01:00
532858f8b7Reduce message to DBG per upstream d3ccb0c
Pim van Pelt
2023-01-11 11:12:39 +01:00
60918e71e0Merge branch 'main' of github.com:pimvanpelt/lcpng into main
Pim van Pelt
2022-11-25 11:55:58 +00:00
93d4bc29b0Update README.md
Pim van Pelt
2022-11-17 17:49:05 +01:00
5f3eb62be9Reduce resource usage on virtio polling, also avoid potential (undiagnosed) dataplane lockup when running multiple threads: just poll with one RX queue per TAP
Pim van Pelt
2022-02-20 19:19:58 +00:00
ccd4b393e9Roll back carrier set
Pim van Pelt
2021-12-24 21:12:24 +00:00
ddd3ad372aOnly set carrier up when hw is up
Pim van Pelt
2021-12-24 21:04:15 +00:00
1bbe17d586Merge branch 'main' of github.com:pimvanpelt/lcpng into main
Pim van Pelt
2021-12-24 20:05:57 +00:00
b659de9266When creating a sub-int from Linux, ensure that the tap subint is set admin-up
Pim van Pelt
2021-12-24 20:05:39 +00:00
fffb1e892aAfter fixing the feflags/frpflags bug, install specials again
Pim van Pelt
2021-12-24 20:05:08 +00:00
22e907555dInitialize the TAP carrier based on the (hardware) phy
Pim van Pelt
2021-12-24 20:04:08 +00:00
37300abf84Update README.md
Pim van Pelt
2021-12-20 12:46:16 +01:00
65fa49f30bFix crash if netns is not set at startup
Pim van Pelt
2021-12-19 21:46:00 +00:00
d36f34b91dFix type issue with route_path flags
Pim van Pelt
2021-12-19 21:32:05 +00:00
cd86f17454Copy forward neale's improvement from upstream gerrit 33948
Pim van Pelt
2021-11-29 22:26:44 +00:00
a8879bfc54Merge branch 'main' of github.com:pimvanpelt/lcpng into main
Pim van Pelt
2021-11-29 20:19:46 +00:00
cdf07cce34Merge review feedback from mgsmith on upstream gerrit 33709 ps8..10
Pim van Pelt
2021-11-29 20:04:54 +00:00
cc2d6908a2Merge review feedback from mgsmith on upstream gerrit 33709 ps8..10
Pim van Pelt
2021-11-29 20:04:54 +00:00
6caa5e8386Followup of upstream 8e2b1b129815d3e631aa425ed37899c78ea24e65 addition of MFIB_ENTRY_FLAG_NONE
Pim van Pelt
2021-11-07 18:21:58 +00:00
852a590cf6Update README.md
Pim van Pelt
2021-10-08 07:56:54 +02:00
bd8d8b40d6Merge pull request #2 from theraphim/main
Pim van Pelt
2021-10-08 07:52:19 +02:00
b72707d560Don't crash when adding second interface to default namespace.
Paul Komkoff
2021-10-08 01:24:47 +04:00
92e3835cbeMerge pull request #1 from jin13417/main
Pim van Pelt
2021-09-18 17:01:57 +02:00
4ed9d02693Fix non NULL terminated strings (namespace and hostname are vectors)
Pim van Pelt
2021-09-09 20:04:15 +00:00
e2ac348759'ns' is now a vector, don't memcpy it, but vec_dup() instead
Pim van Pelt
2021-09-08 21:38:45 +00:00
043fecb0e0Only find the parent tap if it's necessary (ie. doesn't already exist in vif_index; change by mgsmith@
Pim van Pelt
2021-09-08 21:15:42 +00:00
2c390ae512Also set TAP carrier on netlink messages
Pim van Pelt
2021-09-08 21:14:25 +00:00
45cb9b4afcCleanup interface sync
Pim van Pelt
2021-09-08 20:53:02 +00:00
ba4d9d1a3cAdd lcp_itf_pair_sync_state_hw() and only walk relevant int+subints, not all interfaces
Pim van Pelt
2021-09-08 19:50:50 +00:00
8b3356cd86if sub_interface fails to create, return error and don't continue (fixes a crash)
Pim van Pelt
2021-09-08 19:50:27 +00:00
3c806d586dAccommodate Netgate's usecase, they create the linux netlink device first, and then call the pair_create; in that case, linux_parent_if_index already exists; simplify the call path here, h/t mgsmith@
Pim van Pelt
2021-09-08 18:41:35 +00:00
36f1ebfdaeMove check for parent_if_index up
Pim van Pelt
2021-09-07 22:10:44 +00:00
fdab236755backport fix from mgsmith@ in VPP main repo
Pim van Pelt
2021-09-07 21:13:55 +00:00