This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

net: splsoftnet - problems


I have some concerns related to the "splsoftnet()" function of the TCP/IP stack.

1. splsoftnet may block due to cyg_mutex_lock() - but is called in the
   context of the real-time-clock DSR (tcp_fasttimo, tcp_slowtimo).

2. splsoftnet may try to lock a mutex twice!!
   Consider a timer interrupt right after calling "cyg_mutex_loc(&softnet_mutex)"
   and before returning from "cyg_scheduler_lock()" - it est between line #246 and
   #247 of support.c rev. 1.5. 
   The timer interrupt may call tcp_fasttimo, which calls splsoftnet - which tries to
   lock the same mutex once more (this has been seen happen!).

I am quiet not sure how to solve this problems and would be glad if this can be commented!

Jörg Tröger


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]