Description
Is your feature request related to a problem? Please describe.
For certain application it is desirable to have multiple priorities during sending of packets. For example an audio stream might have strict jitter requirements and thus should always be send on time. In conjunction with a network hardware supporting mutiple queues, this provides a powerful tool for time sensitive networking.
Describe the solution you'd like
Have multiple worker queues for tx and rx events to allow packets to overtake each other. All other events would be processed in the highst priority queue.
Describe alternatives you've considered
None
This feature could be implemented as an opt in. Only two functions access the network queue currently. These could be expanded to support priorities. The priority could set through setsockopt (SO_PRIORITY and/or IP_TOS) like in linux/posix. The user could create a map between the priority/TOS and queues and also between queues/priority and hw queues.
I have a working prototype.