Howard Cai wrote: > Hi, all > > Is the priority queue in socket/sock/sbk being used at all when sending > socket > packets to network for example? > > > I can see only the TDMA module use this schema, is this true?
Yep. > > if there is no TDMA MAC access control, there is no priority control for > packet sending, am my understanding right? In this case, there is a need for > a > serving task to deliver the queuing packets. My feeling is that there should > have such a mechanism there already. Without any media access control, the packet travels directy to the hardware, i.e. the NIC output buffer is filled in the context and with the priority of the sending task. Queuing is only performed inside the NICs. Ethernet, as one possible transport media, does not provide prioritisation - unless you use specific switches and frame formats. That's why there is TDMA. If you have such an infrastructure, you may consider writing a new RTmac discipline to replace TDMA and make use of the hardware features. Can be as simple as translating the rtskb prio into the corresponding Ethernet frame fields. But take care to select switches with deterministic behaviour even under extrem load if you are looking for hard real-time communication. Jan
signature.asc
Description: OpenPGP digital signature