• Petr Machata's avatar
    selftests: mlxsw: qos_dscp_bridge: Fix · eef6ab8b
    Petr Machata authored
    There are two problems in this test case:
    
    - When indexing in bash associative array, the subscript is interpreted as
      string, not as a variable name to be expanded.
    
    - The keys stored to t0s and t1s are not DSCP values, but priority +
      base (i.e. the logical DSCP value, not the full bitfield value).
    
    In combination these two bugs conspire to make the test just work,
    except it doesn't really test anything and always passes.
    
    Fix the above two problems in obvious manner.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    eef6ab8b
qos_dscp_bridge.sh 5.27 KB