If multiple flow rules match a frame in group 0, the flow rule with the highest priority is applied to the frame.
Priority of multiple flow rules
The priority is determined by the applied order of the flow rules. This means that the last
entered flow rule gets the highest priority. In the following testpmd
command example, the second command gets the highest priority. As a result, frames with the
IPv4 header will not match the flow rule defined in the first command.
flow create 0 group 0 pattern ipv4 / end actions jump group 1 / end flow create 0 group 0 pattern end actions queue index 0 / end flow create 0 group 1 pattern ipv4 src is 20.10.10.48 / end actions port_id id 1 / endIt is important to apply the commands in order as follows.
flow create 0 group 0 pattern end actions queue index 0 / end flow create 0 group 0 pattern ipv4 / end actions jump group 1 / end flow create 0 group 1 pattern ipv4 src is 20.10.10.48 / end actions port_id id 1 / end
Note: Priorities are applied to group 0 only.