Skip to content

implement rfc7559 ipv6 router solicitation backoff

Maciej Żenczykowski netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 4 repliesIn review
  2. v47 patches 14 repliesSuperseded
  3. v37 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v27 patches6 repliesSuperseded

Changes in v5 from the cover letter

added 'const' qualifier to extra1/2 constants - requires (void*) casting switched away from shifts by 20 to do_div(..., 1000000) switched to variable names from the rfc, elaborated a bit in the comments

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ipv6 addrconf: enable use of proc_dointvec_minmax in addrconf_sysctlnet/ipv6/addrconf.c+8 -21 reply
2/7ipv6 addrconf: remove addrconf_sysctl_hop_limit()net/ipv6/addrconf.c+6 -151 reply
3/7ipv6 addrconf: rtr_solicits == -1 means unlimitednet/ipv6/addrconf.c+6 -42 replies
4/7ipv6 addrconf: add new sysctl 'router_solicitation_max_interval'include/linux/ipv6.h include/net/addrconf.h include/uapi/linux/ipv6.h +1 more+14 -00 replies
5/7ipv6 addrconf: implement RFC7559 router solicitation backoffinclude/net/if_inet6.h net/ipv6/addrconf.c+31 -40 replies
6/7ipv6 addrconf: change default RTR_SOLICITATION_MAX_INTERVAL from 4s to 1hinclude/net/addrconf.h+1 -10 replies
7/7ipv6 addrconf: change default MAX_RTR_SOLICITATIONS from 3 to -1 (unlimited)include/net/addrconf.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/7] implement rfc7559 ipv6 router solicitation backoff

Hi,

This patch series implements RFC7559 style backoff of IPv6 router solicitation requests.

Patches 1 and 2 are minor cleanup and stand on their own.

Patch 3 allows a (potentially) infinite number of RS'es to be sent when the rtr_solicits sysctl is set to -1 (this depends on patch 1).

Patch 4 is just boilerplate to add a new sysctl for the maximum backoff period.

Patch 5 implements the backoff algorithm (and depends on the previous patches).

Patches 6 and 7 switch the defaults over to enable this by default (defaults come from the RFC).

[PATCH v5 1/7] ipv6 addrconf: enable use of proc_dointvec_minmax in [PATCH v5 2/7] ipv6 addrconf: remove addrconf_sysctl_hop_limit() [PATCH v5 3/7] ipv6 addrconf: rtr_solicits == -1 means unlimited [PATCH v5 4/7] ipv6 addrconf: add new sysctl
[PATCH v5 5/7] ipv6 addrconf: implement RFC7559 router solicitation [PATCH v5 6/7] ipv6 addrconf: change default
[PATCH v5 7/7] ipv6 addrconf: change default MAX_RTR_SOLICITATIONS

Changes v4->v5:
added 'const' qualifier to extra1/2 constants - requires (void*) casting switched away from shifts by 20 to do_div(..., 1000000) switched to variable names from the rfc, elaborated a bit in the comments

Changes v3->v4:
added subject line to cover letter

Changes v2->v3:
added cover letter

Changes v1->v2:
avoid 64-bit divisions to fix 32-bit build errors