From: Andreas Langer <an.langer@gmx.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] batman adv unicast fragmentation (version 3)
Date: Mon, 5 Jul 2010 23:42:46 +0200 [thread overview]
Message-ID: <20100705234246.58a9209b@rechenknecht> (raw)
Hi,
thanks for the reply of the patch and all the hints. I changed some parts as you suggested and here some notes to your questions.
>> + if (!(my_skb_push(frag_skb, hdr_len) >= 0 &&
>> + my_skb_push(skb, hdr_len) >= 0)) {
>Didn't you wanted to check if one of the my_skb_push failed and not if both
>failed?
This part check if one failed, but you are right if you think that it looks too complicated. I changed it because it is easy to misunderstand this expression.
>Can you please explain why the copyright already starts in 2007?
Copy and paste failure, changed it to 2010.
>> + if (atomic_read(&batman_if->frag_seqno) == FRAG_MAX_SEQ)
>> + atomic_set(&batman_if->frag_seqno, 0);
>It is not a good idea to split two atomic_ operations which depends on each other.
I removed that part completely, because there is a simplier way.
And now some words to the implementation. This version of fragmentation handles only packets over a batX interface. My test setup follows:
laptop tap0 --> br0 (bat0/eth0) host1 eth1 ------> eth0 host2 -----> eth0 host3
ping -s 1472 -M do xxx
1472 bytes - data
28 bytes - icmp / ip
14 bytes - eth
Bat0 receives 1514 bytes (interface_tx, data_len), if data_len + unicast_packet is larger than the mtu of the sending interface, this packet will be fragmented.
In fragmentation 2.0 i would like to implement a solution for the problem described by simon ( i hope i understood him correctly). A node has two batman interfaces and the mtu of interface2 is smaller then interface1. In case a packet from iface1 (with the size of this mtu) travels to iface2, we currently have a problem. Version 2.0 will fix this.
regards,
andreas
next reply other threads:[~2010-07-05 21:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 21:42 Andreas Langer [this message]
2010-07-05 21:44 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: layer2 unicast packet fragmentation Andreas Langer
2010-07-05 21:44 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: " Andreas Langer
2010-07-06 9:57 ` [B.A.T.M.A.N.] batman adv unicast fragmentation (version 3) Sven Eckelmann
2010-07-06 14:03 ` 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=20100705234246.58a9209b@rechenknecht \
--to=an.langer@gmx.de \
--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