cls_tcindex Classifier
tc filter add dev DEVICE parent PARENT HANDLE protocol ip prio 1 [handle HANDLE] tcindex [mask MASK] [shift NO. OF BITS] [classid CLASS ID] [pass_on] [fall_through]
If the mask and shift are specified, the handle and the class ID are not specified. The key is calculated as
- key = (skb->tc_index >> shift) & mask
If the handle is specified, then then the class ID is also specified. ‘pass on’ indicates that if there is handle is not HANDLE, then it continues to try and match another filter.
‘fall through’ will try and create a new class if there is no class corresponding to the key. If it not specified, it continues to search with the next classifier.