public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCHv7 0/2] per-VLAN TT CRC
@ 2013-07-16 12:24 Antonio Quartulli
  2013-07-16 12:24 ` [B.A.T.M.A.N.] [PATCHv7 1/2] batman-adv: lock around TT operations to avoid sending inconsistent data Antonio Quartulli
  2013-07-16 12:25 ` [B.A.T.M.A.N.] [PATCHv7 2/2] batman-adv: make the TT CRC logic VLAN specific Antonio Quartulli
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Quartulli @ 2013-07-16 12:24 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.


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


Cheers,

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 | 730 ++++++++++++++++++++++++++++++++++++++++++----------
 types.h             |  45 +++-
 8 files changed, 759 insertions(+), 154 deletions(-)

-- 
1.8.1.5


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

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

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

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