[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #6827] etharp could need some tuning
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #6827] etharp could need some tuning |
Date: |
Fri, 08 Jun 2007 16:45:31 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
Follow-up Comment #27, task #6827 (project lwip):
Although I don't have anything against introducing an option for this (an
I've already thought about that), creating an option for one parameter to be
left out is tricky and leads to code that is bad to read, I think.
Creating a define like
#define LINKLAYER_ADDR_HINT , u8_t *addr_hint
would be a solution for the optional parameters, but is it OK to include such
a define in the code???
Still, what we would gain having an option without leaving away the parameter
(and thus passing NULL around), would be 1 byte less in the pcbs and leaving
out the pointer check in etharp.c:find_entry().
The problem with your UDP streams is that no caching algorithm (even hashing)
can really avoid searching for the right entry, which is what the patch should
do. So leaving it the way it is would be best for the situation you described?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?6827>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/01
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/05
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Kieran Mansley, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Frédéric Bernon, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning,
Simon Goldschmidt <=
- [lwip-devel] [task #6827] etharp could need some tuning, Frédéric Bernon, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Frédéric Bernon, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/08
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/16
- [lwip-devel] [task #6827] etharp could need some tuning, Frédéric Bernon, 2007/06/17
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/18
- [lwip-devel] [task #6827] etharp could need some tuning, Simon Goldschmidt, 2007/06/18
- [lwip-devel] [task #6827] etharp could need some tuning, Frédéric Bernon, 2007/06/18