public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: "Martin Hundebøll" <martin@hundeboll.net>
Subject: Re: [B.A.T.M.A.N.] [PATCHv4 2/3] batman-adv: Receive fragmented packets and merge
Date: Fri, 24 May 2013 01:12:27 +0800	[thread overview]
Message-ID: <201305240112.27902.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1369320783-1165-3-git-send-email-martin@hundeboll.net>

On Thursday, May 23, 2013 22:53:02 Martin Hundebøll wrote:
> Fragments arriving at their destination are buffered for later merge.
> Merged packets are passed to the main receive function as had they never
> been fragmented.
> 
> Fragments are forwarded without merging if the MTU of the outgoing
> interface is smaller than the size of the merged packet.
> 
> Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
> ---
> 
> v2:
> update copyright years
> remove () and uppercase beginnings from kernel doc
> use hlist_for_entry_safe() in batadv_frag_clear_list()
> merge batadv_frag_clear_orig() and batadv_frag_check_orig()
> update some kernel doc with return values
> remove "inline" from static function in .c file
> rename lists of fragments to "chain"
> remove type in kernel doc
> remove initialization from "curr" and "new" in insert_packet()
> rename "curr" and "new" to "frag_entry_{curr,new}"
> rename packet to frag_packet
> change return description in kernel doc for batadv_frag_merge_packets()
> fix return value on failure in pskb_expand_head() in merge_packets()
> add kernel doc for counters in types.h
> 
> v3:
> added blank lines to int batadv_frag_size_limit()
> added comment to explain linearization of received fragments
> removed ETH_HLEN in counters for received fragments
> 
> v4:
> remove ETH_HLEN from size check in batadv_frag_skb_fwd()
> don't third person in kernel doc
> correct some kernel doc leftovers from namechange to "chains"
> 
>  Makefile.kbuild  |   1 +
>  fragmentation.c  | 366
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> fragmentation.h  |  47 +++++++
>  main.c           |   4 +
>  main.h           |   9 ++
>  originator.c     |  14 ++-
>  packet.h         |  27 ++++
>  routing.c        |  59 +++++++++
>  routing.h        |   2 +
>  soft-interface.c |   4 +
>  types.h          |  38 ++++++
>  11 files changed, 570 insertions(+), 1 deletion(-)
>  create mode 100644 fragmentation.c
>  create mode 100644 fragmentation.h

Applied in revision 9b3eab6.

Thanks,
Marek

  reply	other threads:[~2013-05-23 17:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 14:53 [B.A.T.M.A.N.] [PATCHv4 0/3] Fragmentation version 2 Martin Hundebøll
2013-05-23 14:53 ` [B.A.T.M.A.N.] [PATCHv4 1/3] batman-adv: Remove old fragmentation code Martin Hundebøll
2013-05-23 16:58   ` Marek Lindner
2013-05-23 14:53 ` [B.A.T.M.A.N.] [PATCHv4 2/3] batman-adv: Receive fragmented packets and merge Martin Hundebøll
2013-05-23 17:12   ` Marek Lindner [this message]
2013-05-23 14:53 ` [B.A.T.M.A.N.] [PATCHv4 3/3] batman-adv: Fragment and send skbs larger than mtu Martin Hundebøll
2013-05-23 18:16   ` Marek Lindner

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=201305240112.27902.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=martin@hundeboll.net \
    /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