what happens if two queue in the queue tree both match the same packet because this packet have two marks?

I marked ack upload with “ack” and all upload packets with “upload” all passthrough. and I have two queue in the queue tree. one matches mark ack. the other matches mark “upload” I want to know who makes the decision which queue it goes to. thank you very much. I’m a newb.

i think latest mark prevails

afaik ..packet cannot have 2 marks, maybe you mark it as ‘ack’ but probably you are remarking it ‘upload’ in the next rule, when packet enter the queue has only the last mark