Historic archive of defunct list cerowrt-commits@lists.bufferbloat.net
 help / color / mirror / Atom feed
* [dtaht/ceropackages-3.10] 8e4214: Switch SQM to use named IFB devices instead if ifb...
@ 2014-10-05 22:01 GitHub
  0 siblings, 0 replies; only message in thread
From: GitHub @ 2014-10-05 22:01 UTC (permalink / raw)
  To: cerowrt-commits

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

  Branch: refs/heads/master
  Home:   https://github.com/dtaht/ceropackages-3.10
  Commit: 8e42148c5f6456928d712c5e70d35d7e28ea2115
      https://github.com/dtaht/ceropackages-3.10/commit/8e42148c5f6456928d712c5e70d35d7e28ea2115
  Author: Sebastian Moeller <moeller0@gmx.de>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M net/sqm-scripts/files/usr/lib/sqm/functions.sh

  Log Message:
  -----------
  Switch SQM to use named IFB devices instead if ifb0 to ifbN

Generic indexed ifb devices are somewhat inflexible in that it is hard
to find which interface a given ifbN is assiciated to (if any at all).
Since SQM wants to avoid interfering with other users if IFBs on
cerowrt and potentially openwrt as well, we switch to named ifb devices.
It will be much harder for a user to accidentally create IFB names
similar to our scheme (currently: "ifb4${DEV_NAME_OF_ASSOCIATED_INTERFACE}").
Also SQM will most likely not go wild and ceate to many indexed IFBs
as has been noticed in the wild with the old implementation. Ideally
we would use a scheme like "ifb_SQM_${DEV_NAME_OF_ASSOCIATED_INTERFACE}"
BUT IFB names need to be no longer than 15 characters and with unwieldly
interface names as pppoe-ge00 that scheme does not really work....
For to long interface names the new implementation will chop off the
extra characters from the beginning of the interface names, under the
assumption that the identifying characters are at the end (based on pppoe-ge00).
For now we leave the old function in place that tries to find the lowest
unused indexed ifb name, but if the new implementation survives some testing
that ugly function can be deleted...

WARNING while this works for me it is only lightly tested and needs
EYEBALLS badly, please help out if you can...

Also this patch reorders some variables in funcrtions.sh.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-05 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-05 22:01 [dtaht/ceropackages-3.10] 8e4214: Switch SQM to use named IFB devices instead if ifb GitHub

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox