| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Encapsulate in #ifdef; use snprintf and 1 dprintf-like statement.
Print debug message that polling has been forced
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |
|
|
| |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |
|
|
|
|
| |
Don't reuse *_DEBUG macros intended for other source files.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Upstream changed how it called back to the system implementing
semaphores/mutexes
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | |
| |
| |
| |
| |
| | |
Also involved moving some calls as certain functions within lwip moved/changed.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | |
| |
| |
| |
| |
| | |
It might help a little bit finding bugs...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |/
|
|
|
|
| |
We need more netbufs than the default 2...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
Run tcpip_thread at higher priority than the root thread. It's not
entirely clear this is the right thing to do, but it probably makes
sense for now at least.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
Make lwip use the IANA-blessed local port numbers 49152 and higher.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
If we're going to bother compiling in the lwIP asserts, then make them
a bit more useful in terms of the message delivered. This may be
worth tweaking further to make a smaller footprint.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Sync up the maximum address length between pxe.h and netif.h
and assert if they are different.
PXEENV_UNDI_GET_INFORMATION only returns a 16 hardware
address field, and infiniband has a 20 byte hardware address
so use MAC provided by pxe.c instead which is already set
to the proper 20 byte hardware address.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
| |
Infiniband has a positively crazy mapping of ip to it's infiniband
form, and that crazy mapping leads to a 20 byte hardware address
used for ip (despite really only having a 8 byte hardware address).
Infiniband routers such a crazy idea.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
supported by undi
This involves on transmmit using theundi protocol types and letting
the undi layer put on the link level header, On receive this
involves using the undi parsing of the link level header and generation
of the link level type. This involves cloning etharp into undi.c
so we have our own set of arp functions that don't care how long
your hardware address is.
Using ethernet link layer frames directly removes a number of weird
limmitations so I do that by default when I know I am on ethernet
but that is not necessary, and a quick hack to change
undi_is_ethernet to always return false show that this code works
on whatever flavor of network adapter you have.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Of the group receive timeouts are the most important as we
need those working so that tftp transfers that will actually
get back to the tftp code.
Icmp is nice so that we can test the latency to the machine
running syslinux why syslinux is downloading a file. Allowing
us to confirm to test for excessive buffering on the network
increasing the round trip times. Plus it is just nice to
be able to ping a machine and know it is there.
udp and tcp were already implicitly enabled so explicitly
enabling them is no big deal.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
| |
In a series of short tests it turns out that lwip's
default memory management seems orders' of magnitude
better than using syslinux's malloc and it uses much
less memory as well. So just use it.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
| |
There are efficiency problems in the lwip stack related to memory
management. Remove the conflict in the name memory_init so I can
experiment to see which allocator is better for large file transfers.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
| |
Define lwip's byteswapping in terms of byteswap.h
This ensures htons(CONSTANT) is seen as a constant
by gcc, and it allows us to use unmodified lwip headers.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
| |
Add bits needed to support timestamps and stats functions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
| |
Fine tune parameters a bit more...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
lwip's malloc routines conflict with the core malloc
and free routine's and Peter's earlier port apparently
had acceptable performance without them.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
|
| |
The intent was clearly for the compiler to inline
mem_realloc or else the defintion would have been placed
in a C file somewhere. gcc complains and since -Werr
is set the build fails when the function is just static.
So make the function static inline.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
| |
Avoid an error "len would wrap tcp_wnd"
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
With these tweaks, we are up from 6 Mbps to over 200 Mbps on a
back-to-back gigabit TCP connection.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
lwip is now functional enough that TCP and DNS seem to work. More
tests still need to be done, though.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
| |
Additional work on the lwip port. With this code, we can get pretty
far before having problems.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
Fix a conflict with <netinet/in.h>.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
Now that all of the syslinux support code has been built for
threads enable using that support in lwip.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
| |
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
|
| |
- Disable all of lwip advanced features
- Redeclare kaboom because including core.h causes the
artificial namespace conflict on lfree.
t
lfree is a global sylinux function and lwip static variable.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
| |
|
|
|
|
|
|
|
|
| |
The ipv6 suppport has duplicate symbol names and will
cause conflicts if built.
Similarly the tests are unneeded and require an unknown about
of extra configuration to get the working to no apparent purpose.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
|
|
Peter's comment on the import of 1.3.1 was:
> Import the lwip TCP/IP stack, with the intent to use it instead of
> raw PXE calls in PXELINUX. Lots of work to be done here, though.
I am taking Peters original mostly working port updating it to
the newest syslinux and the most recent stable version of lwip
and seeing if I can get a usable mergable version
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|