• Jesper Dangaard Brouer's avatar
    linklayer interface between kernel and tc/userspace · 3e92ff52
    Jesper Dangaard Brouer authored
    This iproute2 tc patch is connected to the kernel
     - commit 8a8e3d84b17 (net_sched: restore "linklayer atm" handling)
    
    The rate table calculated by tc, have gotten replaced in the kernel
    and is no-longer used for lookups.
    
    This happened in kernel release v3.8 caused by kernel
     - commit 56b765b79 ("htb: improved accuracy at high rates").
    This change unfortunately caused breakage of tc overhead and
    linklayer parameters.
    
     Kernel overhead handling got fixed in kernel v3.10 by
     - commit 01cb71d2d47 (net_sched: restore "overhead xxx" handling)
    
     Kernel linklayer handling got fixed in kernel v3.11 by
     - commit 8a8e3d84b17 (net_sched: restore "linklayer atm" handling)
    
    The linklayer fix introduced a struct change, that allow the linklayer
    attribute to be transferred between tc and kernel. This patch make use
    of this linklayer attribute.
    
    The linklayer setting is transfer to the kernel.  And linklayer
    setting received from the kernel is printed with a prefixed
    "linklayer" when listing current configuration.  The default
    TC_LINKLAYER_ETHERNET is only printed in detailed output mode.
    Signed-off-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    3e92ff52
tc_core.c 5.04 KB