Receive filters in ConnectX-5

I am using the RX filters to discard all packets except those with designated 2-tuple and 5-tuple values. But I am operating in the dark because I can’t find pertinent documentation. So, how many filters are there? What are the priorities when two or more rules match? Are these also present in ConnectX-6 and above?