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

add netstack_iface_qcounts() #50

Closed dankamongmen closed 1 year ago

dankamongmen commented 1 year ago

given a netstack_iface, i ought be able to get the queue counts for it. most cards report at least rx and tx. i've also seen combined and xdp. use a struct for the return value so that we can expand it in the future in a safe way.

dankamongmen commented 1 year ago

added, looks like it works (for RX and TX anyway; we don't yet handle any other types. i think that needs ethtool).