mbox series

[v4,0/2] batman-adv: increase DAT DHT timeout

Message ID 20190407112320.32021-1-linus.luessing@c0d3.blue
Headers show
Series batman-adv: increase DAT DHT timeout | expand

Message

Linus Lüssing April 7, 2019, 11:23 a.m. UTC
Hi,

This is the fourth attempt to increase the DAT DHT timeout to reduce the
amount of broadcasted ARP Replies.

To increase the timeout only for DAT DHT entries added via DHT-PUT but
not for any other entry in the DAT cache the DAT cache and DAT DHT
concepts are first split into two separate hash tables (PATCH 1/2).

PATCH 2/2 then increases the timeout for DAT DHT entries from 5 to
30 minutes.


The motivation for this patchset is based on the observations made here:
https://www.open-mesh.org/projects/batman-adv/wiki/DAT_DHCP_Snooping

Regards,
Linus

---

Changelog v2:

formerly:
 "batman-adv: Increase DHCP snooped DAT entry purge timeout in DHT"
 (https://patchwork.open-mesh.org/patch/17364/)
- removed the extended timeouts flag in the DHT-PUT messages introduced
  in v1 again
- removed DHCP dependency

Changelog v3:

formerly:
 "batman-adv: Increase purge timeout on DAT DHT candidates"
 https://patchwork.open-mesh.org/patch/17728/
- fixed the potential jiffies overflow and jiffies initialization
  issues by replacing the last_dht_update timeout variable with
  a split of DAT cache and DAT DHT into two separate hash tables
  -> instead of maintaining two timeouts in one DAT entry two DAT
     entries are created and maintained in their respective DAT
     cache and DAT DHT hash tables

Changelog v4:
- rebased to: acfc9a214d01695
  ("batman-adv: genetlink: make policy common to family")

Comments

Sven Eckelmann April 8, 2019, 9:14 a.m. UTC | #1
On Sunday, 7 April 2019 13:23:18 CEST Linus Lüssing wrote:
> To increase the timeout only for DAT DHT entries added via DHT-PUT but
> not for any other entry in the DAT cache the DAT cache and DAT DHT
> concepts are first split into two separate hash tables (PATCH 1/2).
> 
> PATCH 2/2 then increases the timeout for DAT DHT entries from 5 to
> 30 minutes.
> 
> 
> The motivation for this patchset is based on the observations made here:
> https://www.open-mesh.org/projects/batman-adv/wiki/DAT_DHCP_Snooping

Antonio, please check whether this approach is to your liking. Also that there 
are now two ways to retrieve the DAT data via netlink.

Kind regards,
	Sven