This is the final fix for the problem Peter reported. Turns out most other schedulers get it right, the only other case is ingress setting skb->tc_index to the uninitialized value of res.classid.