Page MenuHomeFreeBSD

nd6: break nd6_prefix_update out of prelist_update
ClosedPublic

Authored by pouria on Sat, Mar 28, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 17, 12:39 PM
Unknown Object (File)
Tue, Apr 14, 6:16 PM
Unknown Object (File)
Sun, Apr 12, 6:21 AM
Unknown Object (File)
Sat, Apr 11, 8:05 PM
Unknown Object (File)
Sat, Apr 11, 1:15 PM
Unknown Object (File)
Thu, Apr 9, 1:53 PM
Unknown Object (File)
Thu, Apr 9, 12:10 PM
Unknown Object (File)
Wed, Apr 8, 10:00 AM
Subscribers

Details

Summary

if PI exists, call prefix_update, instead of doing it inside the prelist_update.
no functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

For reviewers:
The whole revision stack will reduce PI code complexity and fix multiple issues along the way.
I also wrote additional tests in D56128 to make sure everything works as intended.

sys/netinet6/nd6_rtr.c
1552

Before, prelist_update() would return the value of error in this case. Now it does not. Is it intentional?

markj added inline comments.
sys/netinet6/nd6_rtr.c
1552

After D54132 it does not matter, okay.

This revision is now accepted and ready to land.Sun, Mar 29, 7:16 AM
pouria added inline comments.
sys/netinet6/nd6_rtr.c
1552

*D56132. Thanks!

For reviewers:
The whole revision stack will reduce PI code complexity and fix multiple issues along the way.
I also wrote additional tests in D56128 to make sure everything works as intended.

Can you show what issues you are talking about?
I also have the patch related to prefixes and CARP.

In D56130#1284183, @ae wrote:

Can you show what issues you are talking about?
I also have the patch related to prefixes and CARP.

I've mostly done cleanups and preparation for my other patches:

  • removing several unused conditions
  • broke down of a large function with ~350 lines.
  • fixes some DRY issues.

I took a quick look at your patch, I'll have multiple conflicts with it, especially because you used some reserved RA flags.

pouria retitled this revision from ndp: break nd6_prefix_update out of prelist_update to nd6: break nd6_prefix_update out of prelist_update.Wed, Apr 1, 4:06 PM