Commit f67ff695 authored by Rahul Thakur's avatar Rahul Thakur

iopsys-brcm63xx-arm: add config support for egress qos mapping

parent 4a424ba2
......@@ -153,6 +153,26 @@ vlanCtl_cmdSetTagPbits()
TAGRULE="$TAGRULE --set-pbits $1 $2"
}
vlanCtl_filterOnPbit()
{
# _v "vlanctl --filter-pbits $PRIORITY $TAGINDEX"
# vlanctl --filter-pbits $PRIORITY $TAGINDEX"
TAGRULE="$TAGRULE --filter-pbits $1 $2"
}
create_egress_qos_map_rule()
{
vlanCtl_initTagRule
TAGINDEX=0
vlanCtl_filterOnPbit $1 $TAGINDEX
vlanCtl_cmdSetTagPbits $2 $TAGINDEX
DIRECTION="tx"
TAGS=1
POSITION="rule-append"
TAGRULEID=""
vlanCtl_insertTagRule $IFNAME $DIRECTION $TAGS $POSITION $TAGRULEID
}
vlanCtl_cmdSetEtherType()
{
# _v "vlanctl --set-ethertype $ETHERTYPE"
......@@ -298,6 +318,13 @@ create_vlan() {
fi
fi
# If egress_qos_map is configured on this interface, configure the same
if [ ! -z "$EGR_QOS_MAP" -a "$EGR_QOS_MAP"!=" " ]; then
IFS=" "
for QMAP in $EGR_QOS_MAP; do
create_egress_qos_map_rule ${QMAP:0:1} ${QMAP:2:1}
done
fi
# ======== Set rx rules ======== #
# Note: Always set bridge interface rx rules at the bottom of the tables
......@@ -593,6 +620,7 @@ while [ -n "$2" ]; do
--inner-priority) INNER_PRIORITY="$3"; shift;;
--dscp) DSCP="$3"; shift;;
--multicast-mode) MULTICAST_MODE="$3"; shift;;
--egress-qos-map) shift; shift;EGR_QOS_MAP="$@";shift;;
--verbose) VERBOSE=1;;
-h|--help) HELP=1; break;;
-*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment