public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] skb->priority and fragments
@ 2016-04-12 20:42 Andrew Lunn
  2016-04-13 11:11 ` Simon Wunderlich
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2016-04-12 20:42 UTC (permalink / raw)
  To: B.A.T.M.A.N

Hi Folks

Does anybody remember the history for the follow and can explain why
the code is as it is?

The soft interface transmit function, batadv_interface_tx() calls
batadv_skb_set_priority(skb, 0) to set the skb->priority based on the
TOS bits or 801.p.

If the packet needs to be fragmented because of MTU issues,
batadv_frag_create() is used to create the fragments. It overwrites
the skb->priority in the original skb to TC_PRIO_CONTROL, and leaves
the fragment skb with the default priority.

This seems a bit odd to me. I would of expected the priority to of
been copied from the original into the fragment.

Thanks
	Andrew

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

end of thread, other threads:[~2016-04-13 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 20:42 [B.A.T.M.A.N.] skb->priority and fragments Andrew Lunn
2016-04-13 11:11 ` Simon Wunderlich
2016-04-13 12:14   ` Andrew Lunn
2016-04-13 12:19     ` Simon Wunderlich

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