sch_dsmark Queuing discipline
tc qdisc add dev DEVICE dsmark indices INDICES [ default DEFAULT_INDEX ] [ set_tc_index ]
- indices indicates the number of entries in the [mask, value] table
- set_tc_index indicates that sch_dsmark should store the DS in skb->tc_index
- sch_dsmark will call the classifier and stores the class ID returned in skb->tc_index. If no class is found, it uses the default index. If default index is not specified, skb->tc_index is left unchanged.
tc class change dev DEVICE classid CLASSID dsmark mask MASK value VALUE
- Creates an entry in the [mask, value] table.
- When the dequeue function of sch_dsmark is called, it changes the DS byte based on the value of skb->tc_index. It indexes into the [mask, value] table and does the following:
- ds_field = (ds_field & mask) | value