dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

libnl sees errors when we send all DUMP requests at once #3

Closed dankamongmen closed 5 years ago

dankamongmen commented 5 years ago

When we send all four dump requests successively, libnl sees some errors (along with plenty of successes). This does not happen when we send only one dump message, of any of the four types.

dankamongmen commented 5 years ago

So far as I can tell, we can only have one dump request outstanding at a time. In order to work around this, I'm going to add a txqueue and a txthread. There's no reuse between the rx and tx sides, so we don't lose any locality by tossing another thread in. They both ought be sleeping the vast majority of the time.

dankamongmen commented 5 years ago

The txqueue appears to be working properly.