Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: drop NEWLINK event handling in the main thread #17180

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

anlancs
Copy link
Contributor

@anlancs anlancs commented Oct 21, 2024

After moved to dataplane, the NEWLINK/DELLINK procedure should be also removed.

@@ -406,7 +406,6 @@ static int netlink_information_fetch(struct nlmsghdr *h, ns_id_t ns_id,
case RTM_DELROUTE:
return netlink_route_change(h, ns_id, startup);
case RTM_NEWLINK:
return netlink_link_change(h, ns_id, startup);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've got a block a little further down where the dplane messages are kept together - it'd be more consistent to put these LINK messages there too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why/how is this useless?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've got a block a little further down where the dplane messages are kept together - it'd be more consistent to put these LINK messages there too?

Done. Thanks for your review.

@Jafaral
Copy link
Member

Jafaral commented Oct 21, 2024

Can you please change the title and add a description of why you are doing it to make it easy not only for reviewers but anyone looking through the change history.

Example:

zebra: drop NEWLINK event handling in the main thread

NEWLINK is only registered by the dplane thread, the main thread doesn't care about it. etc....

NEWLINK is only registered by the dplane thread, the main thread
doesn't care about it. So remove the real process of `netlink_link_change()`
for NEWLINK event in main thread.

And move NEWLINK/DELLINK event to the block where the dplane messages
are kept together.

Signed-off-by: anlan_cs <[email protected]>
@anlancs anlancs force-pushed the zebra/review-move-dplane branch from 15c03d7 to 96192f6 Compare October 22, 2024 01:11
@anlancs
Copy link
Contributor Author

anlancs commented Oct 22, 2024

Done. Thanks for your help! @Jafaral

@anlancs anlancs changed the title zebra: remove useless NEWLINK procedure zebra: drop NEWLINK event handling in the main thread Oct 22, 2024
@Jafaral Jafaral merged commit 0078472 into FRRouting:master Oct 22, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants