public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Layer 2 fragmentation
@ 2010-05-27 14:23 Andreas Langer
  2010-05-27 15:07 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Langer @ 2010-05-27 14:23 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hello,
i looked into the problem of fragmenting packets on layer2 to solve the mtu issue. I found a
unforeseen problem : oversized packets will be dropped by the bridge module ( if bat0 is in a
bridge ). I think the reason can be found here net/bridge/br_forward.c on line 44

43         /* drop mtu oversized packets except gso */
44         if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb))
45                 kfree_skb(skb);

Possible solution: make a patch for the bridge module

if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb) && !(skb->dev->priv_flags &
IFF_CAN_FRAG))

IFF_CAN_FRAG must be added to include/linux/if.h and batman-adv has to set this flag on bat0

I can make a patch for mainline inclusion, do you believe it is going to be accepted ?

regards, 
andreas

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

end of thread, other threads:[~2010-05-27 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 14:23 [B.A.T.M.A.N.] Layer 2 fragmentation Andreas Langer
2010-05-27 15:07 ` Andrew Lunn
2010-05-27 15:30   ` Marek Lindner
2010-05-27 15:42     ` Andrew Lunn
2010-05-27 16:12       ` Marek Lindner

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