public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <a@unstable.cc>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH v9 2/2] batman-adv: throughput meter implementation
Date: Wed, 18 May 2016 10:16:11 +0800	[thread overview]
Message-ID: <20160518021611.GG12056@prodigo.lan> (raw)
In-Reply-To: <1463506353-11676-2-git-send-email-sven.eckelmann@open-mesh.com>

[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]

On Tue, May 17, 2016 at 07:32:32PM +0200, Sven Eckelmann wrote:

[...]

> @@ -58,6 +59,7 @@ static void batadv_socket_add_packet(struct batadv_socket_client *socket_client,
>  void batadv_socket_init(void)
>  {
>  	memset(batadv_socket_client_hash, 0, sizeof(batadv_socket_client_hash));
> +	batadv_tp_meter_init();

Sven,
one very last question (sorry for not spotting this earlier): if we don't handle
the TP meter with the icmp_socket anymore, why do we tight the TP initialization
to the socket initialization ?

Is there any reason to have it here ? Or we should move the
batadv_tp_meter_init() call to somewhere else ?

[...]

> +/**
> + * batadv_netlink_tpmeter_notify - send tp_meter result via netlink to client
> + * @bat_priv: the bat priv with all the soft interface information
> + * @dst: destination of tp_meter session
> + * @result: reason for tp meter session stop
> + * @test_time: total time ot the tp_meter session
> + * @total_bytes: bytes acked to the receiver
> + * @cookie: cookie of tp_meter session
> + *
> + * Return: 0 on success, <0 on error

you forgot the space between < and 0 ;P but if the rest is ok, I am sure Marek
could add it :)


The rest looks good. Thanks !

-- 
Antonio Quartulli

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-05-18  2:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-17 17:31 [B.A.T.M.A.N.] [PATCH v9 0/3] batman-adv: throughput meter Sven Eckelmann
2016-05-17 17:32 ` [B.A.T.M.A.N.] [PATCH v9 1/2] batman-adv: return netdev status in the TX path Sven Eckelmann
2016-05-17 17:32 ` [B.A.T.M.A.N.] [PATCH v9 2/2] batman-adv: throughput meter implementation Sven Eckelmann
2016-05-18  2:16   ` Antonio Quartulli [this message]
2016-05-18  7:50     ` Sven Eckelmann
2016-05-17 17:32 ` [B.A.T.M.A.N.] [PATCH v9] batctl: introduce throughput meter support Sven Eckelmann
2016-05-17 18:49   ` [B.A.T.M.A.N.] [PATCH v10] " Sven Eckelmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160518021611.GG12056@prodigo.lan \
    --to=a@unstable.cc \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox