public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCHv9 0/2] per-VLAN TT CRC
@ 2013-07-30 20:16 Antonio Quartulli
  2013-07-30 20:16 ` [B.A.T.M.A.N.] [PATCHv9 1/2] batman-adv: lock around TT operations to avoid sending inconsistent data Antonio Quartulli
  2013-07-30 20:16 ` [B.A.T.M.A.N.] [PATCHv9 2/2] batman-adv: make the TT CRC logic VLAN specific Antonio Quartulli
  0 siblings, 2 replies; 5+ messages in thread
From: Antonio Quartulli @ 2013-07-30 20:16 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

This is the second patchset of the TT-VLAN improvement.
It brings a not negligible change into the TT logic since it is splitting the
CRC mechanism on a per-VLAN basis. Since it is not so easy to digest I decided
to send it alone.

This change is required by an improvement which will come right after: VLAN
based TT filtering for BLA2 enabled nodes (third patchset of the TT-VLAN
feature).

In a few words....
Right now a backbone node rejects any TT entry announced by another backbone.
With this change it will be possible to filter out only those TT entries
belonging to the VLAN where BLA2 is running on. In this way, the others VLANs
will still be able to contact each other.

Before implementing the new feature, the first patch is introducing a
new lock to make any change to the local and global TT table atomic.
In this way a TT Reply cannot be sent during a writing operation on
one of the TT tables. This will prevent the TT Reply from containing
any inconsistent data.

Thank you for the feedback!

Cheers,



Changes from v8:
- removed bogus kernel doc in 2/2

Changes from v7:
- improved kernel doc and commit message in 1/2
- fixed some kernel doc typ0s in 2/2
- moved change_offset computation inside batadv_tt_prepare_tvlv_global_data()
  and batadv_tt_prepare_tvlv_local_data() to avoid code replication in 2/2

Changes from v6:
- remove orig_node_vlan from the list after freeing
- introduce locking around TT operations with 1/2
- fixed refcounting
- fixed style


Antonio Quartulli (2):
  batman-adv: lock around TT operations to avoid sending inconsistent
    data
  batman-adv: make the TT CRC logic VLAN specific

 compat.c            |   9 +
 compat.h            |   1 +
 main.c              |   1 +
 originator.c        | 102 +++++++-
 originator.h        |   7 +
 packet.h            |  18 +-
 translation-table.c | 738 ++++++++++++++++++++++++++++++++++++++++++----------
 types.h             |  54 +++-
 8 files changed, 772 insertions(+), 158 deletions(-)

-- 
1.8.1.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-07 11:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 20:16 [B.A.T.M.A.N.] [PATCHv9 0/2] per-VLAN TT CRC Antonio Quartulli
2013-07-30 20:16 ` [B.A.T.M.A.N.] [PATCHv9 1/2] batman-adv: lock around TT operations to avoid sending inconsistent data Antonio Quartulli
2013-08-07 11:27   ` Marek Lindner
2013-07-30 20:16 ` [B.A.T.M.A.N.] [PATCHv9 2/2] batman-adv: make the TT CRC logic VLAN specific Antonio Quartulli
2013-08-07 11:29   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox