Andras Garzo wrote: > Hi, > > I've ported BF537-stamp on-chip mac driver to RTNet. It seems, works > with Xenomai 3.3.2, RTNet 0.9.9 and uClinux 2007R1. You can find > the ported code at http://garzoand.web.elte.hu/rtnetdev-bf537.tgz .
Wow, cool. You just stole my planned holiday entertainment for the next year, but I really don't mind (there will be enough alternatives ;) ). Great, I will try this on my stamp board ASAP! > > But I have an interesting problem, while I'm using RTNet on blackfin: too > many UDP packages disappear. I trying to send 10 000 UDP packages to > blackfin with 20ms pause, but not all of them arrive. About between 150 and > 1000 packages are always lost. I made some debug, > and turned out, the mac driver got the packages, but it's dropped by the > ipv4 layer, > at line 83 of ip_input.c: > > err = rtskb_acquire(skb, &sock->skb_pool); > > /* Socket is now implicitely locked by the rtskb */ > rt_socket_dereference(sock); > > if (err) { > kfree_rtskb(skb); > return; > } > > So, __rtskb_deque(skb_pool) (called by rtskb_acquire) returns with > error, in some case (but - i think - too many case). > Has anyone any idea, why does it happen? If you send out packets in burst (or receive them), you have to make sure that there are enough buffers in the involved pools (real-time means here: static pre-allocation!). Check README.pools on more details, or ask again here. Thanks for your contribution! Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users