The first release of the Linux QoS Library (LQL) which was on August 31st has been well received. LQL 0.5.0 has been downloaded about 150 times. I have received a few very nice emails from people ecstatic about it, including one even before I had completed sending the release announcements. The first LQL patch arrived in my inbox yesterday; though I haven’t had time to look at it yet.
The resumption of classes has meant I have not had as much time to work on LQL as I would like. However, I have been making slow progress on some new features.
Currently, I am adding statistics support to the QDiscs. This new API will return all of the information in struct tc_stats. The current implementation of this requires a few new classes.
-+ LQLStats ----+ LQLStatsQDisc ------+ LQLStatsQDiscHTB ------+ LQLStatsQDiscSFQ ------+ etc
The LQLQDisc class is getting a new method called lql_qdisc_get_stats() which each subclass will override to return their own LQLStatsQDisc object that contains methods specialized for the specific QDisc. So the expected usage is something like the following.
LQLStatsQDiscHTB *statsHTB = NULL;
statsHTB = lql_qdisc_htb_get_stats(LQL_QDISC(htb)); g_print("Bytes: %i\n", lql_stats_get_enqueued_bytes(LQL_STATS(statsHTB))); g_print("Packets: %i\n", lql_stats_get_enqueued_packets(LQL_STATS(statsHTB)));
Once the QDisc statistics features are done I will begin on the classes.