Some updates
I've got good news: I've gotten the SMS TCP/IP stack working on the IOP with the HDL Dump v0.86 server after porting it to interface with NETMAN.
(So yea, rejoyce OPL users...)
I got about 1.39MB/s, which means that Sony was right about the EE-side TCP/IP stack granting higher throughput... which is a relief for me after I saw some really weird results in the early tests (IOP-side stacks used to outperform those EE-side stacks). :concern:
The only problem left here appears to be a problem with packet transmission. The current release of the SMAP driver has a problem as I forgot to load and restore the GP register in some of the exported functions, so there is actually a critical stability issue that I have fixed.
The problem now is that it seems like TCP transmissions stall up after a certain amount of data is sent. This behaviour seems to be common among the EE and IOP-side stacks, which is a good sign since it's at least replicatable in both areas (Which means that it's either a problem with the protocol stack itself or with the SMAP driver... not the SIF RPC interface).
I know that the PS2 is still responsive because it responds to PINGs, but just seems to not be sending TCP responses (It goes silent... and then if you wait long enough, you may see it sending out one or two packets before another long moment of silence).
IF I ever get this fixed, we have accomplished our mission of bringing stable network support to the homebrew PS2SDK.
EDIT: I found that the lack of response was cased by the SMAP driver's threads eating away CPU time. Re-raising the protocol stack's threads in priority has restored responsiveness... but now the problem is that the TCP sequence numbers seem to go haywire after transmitting data for a while.
I once even saw packets with malformed headers. I don't remember whether the checksums were right or not.
Does anyone here have any idea why the sequence numbers go wrong after a while? This seems to happen only when a lot of data is sent from the PS2, and I don't think that this happened a lot previously because the old SMAP drivers were quite slow.