[U-Boot] [PATCH/RFC] net: defragment IP packets

Robin Getz rgetz at blackfin.uclinux.org
Sun Jul 26 06:44:00 CEST 2009


On Sat 25 Jul 2009 22:02, Jerry Van Baren pondered:
> Robin Getz wrote:
> > On Fri 24 Jul 2009 04:04, Alessandro Rubini pondered:
> >> This patch add a quick and dirty defrag step in IP reception. 

> > I needed to modify your patch a little bit to get it working on my
> > platform.
> > 
> > If Ben/Wolfgang are interested in taking this - I'll fix up my mods,
> > and send it back.
> 
> FWIIW, RFC815 describes a reassembly algorithm that handles out-of-order
> 
> reassembly directly in the receive buffer by keeping the "holes" 
> bookkeeping data in the holes themselves.
>    <http://www.faqs.org/rfcs/rfc815.html>

Yeah, I had seen this - but didn't want to duplicate something that Alessandro 
might already working on...

Alessandro - were you going to add out of order packets? Since we are only 
really interested in TFTP (which still requires an ACK for a complete block), 
we should not need to handle more than one packet ID, so it should be mostly 
trivial...

To make your host send out of order/delayed packets, which should be 
more "real world/long haul" try something like:
  # modprobe sch_netem (if it's not compiled into your kernel)
  # tc qdisc change dev eth0 root netem reorder 50% delay 10ms

-Robin


More information about the U-Boot mailing list