Skip to content

batman-adv: make aggregated hash keys easier to identify

Sven Eckelmann batman sashiko-reviews 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20261013-hash-key-73f787e86734

Versions newest first

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- resend due to problems in the sashiko pipeline
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6batman-adv: bla: use dedicated key type for claim hashnet/batman-adv/bridge_loop_avoidance.c net/batman-adv/types.h+60 -500 replies
2/6batman-adv: bla: use dedicated key type for backbone gateway hashnet/batman-adv/bridge_loop_avoidance.c net/batman-adv/types.h+62 -541 reply
3/6batman-adv: dat: use dedicated key type for DAT hashnet/batman-adv/distributed-arp-table.c net/batman-adv/types.h+49 -430 replies
4/6batman-adv: tt: use dedicated key type for hashesnet/batman-adv/translation-table.c net/batman-adv/types.h+101 -890 replies
5/6batman-adv: originator: pass explicit key to orig_hashnet/batman-adv/bat_iv_ogm.c net/batman-adv/bat_v_ogm.c net/batman-adv/originator.c +1 more+13 -120 replies
6/6batman-adv: hash: document key argument of hash operationsnet/batman-adv/hash.h+6 -70 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH batadv v2 0/6] batman-adv: make aggregated hash keys easier to identify

Some of the fixes in the recent past were about the incorrectly hashing and/or comparison of hash keys. I took the opportunity to have an easier identifiable key for the hashes by using a separate struct in case they are aggregated types.

As side effect, it is now possible to reserve less stack space when trying to find an hash entry. Only they is now needed for the search.

---
Changes in v2:
- resend due to problems in the sashiko pipeline
- Link to v1: https://patch.msgid.link/[email protected]

---
Sven Eckelmann (6):
batman-adv: bla: use dedicated key type for claim hash
batman-adv: bla: use dedicated key type for backbone gateway hash
batman-adv: dat: use dedicated key type for DAT hash
batman-adv: tt: use dedicated key type for hashes
batman-adv: originator: pass explicit key to orig_hash
batman-adv: hash: document key argument of hash operations

 net/batman-adv/bat_iv_ogm.c            |   2 +-
 net/batman-adv/bat_v_ogm.c             |   2 +-
 net/batman-adv/bridge_loop_avoidance.c | 201 +++++++++++++++++----------------
 net/batman-adv/distributed-arp-table.c |  73 ++++++------
 net/batman-adv/hash.h                  |  13 +--
 net/batman-adv/originator.c            |  19 ++--
 net/batman-adv/originator.h            |   2 +-
 net/batman-adv/translation-table.c     | 177 +++++++++++++++--------------
 net/batman-adv/types.h                 |  57 ++++++++--
 9 files changed, 291 insertions(+), 255 deletions(-)

---
base-commit: 0a79fef370780da6a67906bf2d83be8e2bd4e24d
change-id: 20261013-hash-key-73f787e86734

Best regards,

Signature · 1 line
Sven Eckelmann <[email protected]>