public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH/RFC v5 0/9] throughput meter
@ 2016-05-05 11:09 Sven Eckelmann
  2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 1/5] batman-adv: Add stripped down version of MAINTAINERS file Sven Eckelmann
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Sven Eckelmann @ 2016-05-05 11:09 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,

I got no no other suggestion for the problems in my last RFC mails. So
I've just implemented the workaround with an extra socket. The idea is

 * userspace opens "batman-adv" "tpmeter" multicast netlink socket to
   listen for tpmeter events
 * tp_meter is started by userspace
   - kernel returns a u32 cookie for the session
 * userspace is listening for events on the multicast netlink socket
 * tp_meter either finishes or is cancelled
   - kernel sends tp_meter message containing the result over the
     multicast group for batman-adv tpmeter
 * userspace receives the events and matches against its own cookie
 * result is printed

This approach seems to work ok enough in my tests (only VMs [1]). But
the last patches are still marked as RFC because the use of multicast
groups introduces a backward compatibility problem. The 3.12 (and lower)
implementation for registering and starting multicast netlink messages
was completely different. backports.git has its own solution (which is
rather hard to read and I didn't start to figure out how to create a
small version for batman-adv) and someone could maybe port their
solution to the batman-adv compat code.

So if someone else wants to have a look at the compat code - please feel
free play around with it.

Kind regards,
	Sven

[1] https://www.open-mesh.org/projects/open-mesh/wiki/Emulation_Debug



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

end of thread, other threads:[~2016-05-09 12:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 11:09 [B.A.T.M.A.N.] [PATCH/RFC v5 0/9] throughput meter Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 1/5] batman-adv: Add stripped down version of MAINTAINERS file Sven Eckelmann
2016-05-07 22:35   ` Marek Lindner
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 2/5] batman-adv: add generic netlink family for batman-adv Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 3/5] batman-adv: add netlink command to query generic mesh information files Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 4/5] batman-adv: return netdev status in the TX path Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [RFC v5 5/5] batman-adv: throughput meter implementation Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 1/4] batctl: Split list of objects in Makefile into separate lines Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 2/4] batctl: Add basic infrastructure to integrate netlink Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [PATCH v5 3/4] batctl: Add attributes/command for BATADV_CMD_GET_MESH_INFO Sven Eckelmann
2016-05-05 11:09 ` [B.A.T.M.A.N.] [RFC v5 4/4] batctl: introduce throughput meter support Sven Eckelmann
2016-05-09 12:44 ` [B.A.T.M.A.N.] [RFC v6 5/5] batman-adv: throughput meter implementation Sven Eckelmann
2016-05-09 12:45 ` [B.A.T.M.A.N.] [RFC v6 4/4] batctl: introduce throughput meter support Sven Eckelmann

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