summaryrefslogtreecommitdiff
path: root/zebra/zebra_mlag_private.c
AgeCommit message (Collapse)Author
2023-03-24*: Convert event.h to frrevent.hDonald Sharp
We should probably prevent any type of namespace collision with something else. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert `struct event_master` to `struct event_loop`Donald Sharp
Let's find a better name for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert struct thread_master to struct event_master and it's ilkDonald Sharp
Convert the `struct thread_master` to `struct event_master` across the code base. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_add_XXX functions to event_add_XXXDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename `struct thread` to `struct event`Donald Sharp
Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename thread.[ch] to event.[ch]Donald Sharp
This is a first in a series of commits, whose goal is to rename the thread system in FRR to an event system. There is a continual problem where people are confusing `struct thread` with a true pthread. In reality, our entire thread.c is an event system. In this commit rename the thread.[ch] files to event.[ch]. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-23*: Change thread->func to return void instead of intDonald Sharp
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-04-21build: make builddir include path consistentDavid Lamparter
... by referencing all autogenerated headers relative to the root directory. (90% of the changes here is `version.h`.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-03-17*: require semicolon after FRR_DAEMON_INFO & co.David Lamparter
... again ... Signed-off-by: David Lamparter <equinox@diac24.net>
2020-10-13zebra: Isolate mlag_rd_buf_offset to the actual using functionDonald Sharp
Isolate the mlag_rd_buf_offset variable to the actual used function, instead of having it a global. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-10-13Revert "zebra: the mlag_rd_buf_offset variable was write only"Donald Sharp
This reverts commit 00e0d113e5ffcb69304b8d5d83f0357ec416c6c4.
2020-09-30Merge pull request #7215 from mjstapp/fix_z_mlag_readQuentin Young
zebra: don't touch mlag read event pointer
2020-09-30zebra: don't touch mlag read event pointerMark Stapp
Don't touch the mlag read event pointer, it's not safe. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-09-23zebra: the mlag_rd_buf_offset variable was write onlyDonald Sharp
The mlag_rd_buf_offset function was only ever being set to 0 in the mlag_read function and only written in that function. There is no need for this global variable. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-09-23zebra: Ensure that message received from mlag will fitDonald Sharp
If we receive a message that is greater than our buffer size we are in a situation where both the read and write buffers are fubar'ed beyond the end. Assert when we notice this fact. Ticket: CM-31576 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-03-06zebra: SO_PEERCRED is a getsockopt callDonald Sharp
This code is effectively dead code. SO_PEERCRED is a getsockopt call not *setsockopt* call. Additionally we are not doing anything with the failed setsockopt call at all. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-03-06pimd: Add accidently missed code during upstreaming processDonald Sharp
There was some code missed during the upstreaming process due to code squash. Identify and put into a commit to keep code consistent and correct. Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com> Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-12-11zebra: fix sign-compare warning in cumulus mlagDavid Lamparter
This trips up the CI on Ubuntu 16.04. (I guess the code wasn't getting built there before...) Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-11zebra: create zebra_cumulus_mlag moduleDavid Lamparter
This is pretty much just to get rid of the HAVE_CUMULUS. The hook/module API is as "wtf" as it was before... Signed-off-by: David Lamparter <equinox@diac24.net>
2019-11-21zebra: Fixing Comments in MLAG Read scheduling EventsSatheesh Kumar K
Zebra MLAG is using "t_read" for multiple tasks, such as 1. For opening Communication channel with MLAG 2. In case conncetion fails, same event is used for retries 3. after the connection establishment, same event is used to read the data from MLAG since all these taks will never schedule together, this will not cause any issues. Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
2019-11-19zebra,pim : Fixing Review comments in PIM_MLAGSatheesh Kumar K
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
2019-11-13Zebra: ADD Protobuf Encoding & Decoding for MLAG MessagesSatheesh Kumar K
1. add the Mlag ProtoBuf Lib to Zebra Compilation 2. Encode the messages with protobuf before writing to MLAG 3. Decode the MLAG Messages using protobuf and write to clients based on their subscrption. Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
2019-11-13Zebra: adding support for Zebra MLAG FunctionalitySatheesh Kumar K
This includes: 1. Processing client Registrations for MLAG 2. storing client Interests for MLAG updates 3. Opening communication channel to MLAG with First client reg 4. Closing Communication channel with last client De-reg 5. Spawning a new thread for handling MLAG updates peocessing 6. adding Test code 7. advertising MLAG Updates to clients based on their interests Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
2019-10-14Revert "Merge pull request #4885 from satheeshkarra/pim_mlag"Quentin Young
This reverts commit d563896dada99f3474d428f928786cbfde936fee, reversing changes made to 09ea1a40386f02a13cdb0462cc55af0d03f0c277.
2019-10-03Zebra: Fixing Review comments in Zebra_MLAGSatheesh Kumar K
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
2019-09-24Zebra: adding support for Zebra MLAG FunctionalitySatheesh Kumar K
This includes: 1. Processing client Registrations for MLAG 2. storing client Interests for MLAG updates 3. Opening communication channel to MLAG with First client reg 4. Closing Communication channel with last client De-reg 5. Spawning a new thread for handling MLAG updates peocessing 6. adding Test code 7. advertising MLAG Updates to clients based on their interests Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>