Skip to contentSkip to conversation

TODO: Rewrite network stack.

DISCUSSION Antony Pavlov 5 participants 7 messages May 5, 2014 – May 8, 2014

lore
Share & tools
lore
#0 lore raw

Hi!

I have inspected TODO file from barebox repo. Here is a quote:

[ ] Rewrite network stack. The one-loop-for-all-protocols stack is just too
ugly and big and uses thousands of global variables. Identify common functions and make a loop per network protocol

There is no much tiny TCP/IP stack candidates for porting to barebox. The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

See "project that use lwIP" list here: http://lwip.wikia.com/wiki/Projects_that_use_lwIP

lwip code is BSD-licensed. Is it possible to use lwip code in barebox?

--
Best regards,
  Antony Pavlov

P.S. Anyway TODO file from barebox repo is outdated (last change Jul 22 2010).

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 1 line

The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

I'm not happy at all about this code base, it looks quite ugly and old-fashioned. It's not the barebox kind of quality. I'd stay with the current code rather than lwip, despite the number of users.

If any, I'd evaluate picotcp (https://github.com/tass-belgium/picotcp).

/alessandro

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 7 lines · On Mon, 5 May 2014 14:29:44 +0200 Alessandro Rubini <[email protected]>…
Quoted 1 line

The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

I'm not happy at all about this code base, it looks quite ugly and old-fashioned. It's not the barebox kind of quality. I'd stay with the current code rather than lwip, despite the number of users.

If any, I'd evaluate picotcp (https://github.com/tass-belgium/picotcp).

Thanks for very interesting picotcp link!

At a glance picotcp looks better than lwip.

--
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
In reply to Alessandro Rubini
Quoted 8 lines · Alessandro Rubini
Quoted 2 lines

The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

I'm not happy at all about this code base, it looks quite ugly and old-fashioned. It's not the barebox kind of quality. I'd stay with the current code rather than lwip, despite the number of users.

If any, I'd evaluate picotcp (https://github.com/tass-belgium/picotcp).

uIP too

Best Regards,
J.

Quoted 7 lines

/alessandro

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
Quoted 11 lines · On Thu, 8 May 2014 14:43:15 +0200 Jean-Christophe PLAGNIOL-VILLARD…
Quoted 8 lines · Alessandro Rubini
Quoted 2 lines

The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

I'm not happy at all about this code base, it looks quite ugly and old-fashioned. It's not the barebox kind of quality. I'd stay with the current code rather than lwip, despite the number of users.

If any, I'd evaluate picotcp (https://github.com/tass-belgium/picotcp).

uIP too

Hmm, uIP looks like a light version of lwip or have I missed something?

Quoted 10 lines

Best Regards,
J.

Quoted 7 lines

/alessandro

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Signature · 8 lines
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw
In reply to Antony Pavlov
Quoted 13 lines · Antony Pavlov

Hi!

I have inspected TODO file from barebox repo. Here is a quote:

[ ] Rewrite network stack. The one-loop-for-all-protocols stack is just too
ugly and big and uses thousands of global variables. Identify common functions and make a loop per network protocol

There is no much tiny TCP/IP stack candidates for porting to barebox. The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

See "project that use lwIP" list here: http://lwip.wikia.com/wiki/Projects_that_use_lwIP

Quoted 7 lines

lwip code is BSD-licensed. Is it possible to use lwip code in barebox?

--
Best regards,
  Antony Pavlov

P.S. Anyway TODO file from barebox repo is outdated (last change Jul 22 2010).

Indeed. Maybe we should add the following item to it.

Sascha

TODO +1 -0
index 6350799..59fdade 100644
@@ -76,6 +76,7 @@ TODO
     devices should be represented as a hierarchical tree in /dev
 [ ] Work out, how to mount driver on PCI devices. The mechanism should be
     transparent to the driver code.
+[ ] remove this file. It doesn't contain much useful information.
 
 DONE
 ----
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw
Quoted 31 lines · Sascha Hauer
Quoted 13 lines · Antony Pavlov

Hi!

I have inspected TODO file from barebox repo. Here is a quote:

[ ] Rewrite network stack. The one-loop-for-all-protocols stack is just too
ugly and big and uses thousands of global variables. Identify common functions and make a loop per network protocol

There is no much tiny TCP/IP stack candidates for porting to barebox. The most notable is lwIP (http://savannah.nongnu.org/projects/lwip/).

See "project that use lwIP" list here: http://lwip.wikia.com/wiki/Projects_that_use_lwIP

Quoted 7 lines

lwip code is BSD-licensed. Is it possible to use lwip code in barebox?

--
Best regards,
  Antony Pavlov

P.S. Anyway TODO file from barebox repo is outdated (last change Jul 22 2010).

Indeed. Maybe we should add the following item to it.

Sascha

TODO +0 -0
index 6350799..59fdade 100644

TODO TODO · line 79

Quoted 4 lines
TODO +1 -0
@@ -76,6 +76,7 @@ TODO
     devices should be represented as a hierarchical tree in /dev
 [ ] Work out, how to mount driver on PCI devices. The mechanism should be
     transparent to the driver code.
+[ ] remove this file. It doesn't contain much useful information.

I took this patch, removed the file and wanted to move this entry below DONE. This resulted in a git conflict. Please advise.

Uwe

Quoted 15 lines
TODO +0 -0
 DONE
 ----
 
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox