20/12/2022 08:44, Leo Xu: > This patch adds ICMPv6 ID and sequence match support for HWS. > Since type and code of ICMPv6 echo is already specified by ITEM type: > RTE_FLOW_ITEM_TYPE_ICMP6_ECHO_REQUEST > RTE_FLOW_ITEM_TYPE_ICMP6_ECHO_REPLY > mlx5 pmd will set appropriate type and code automatically: > Echo request: type(128), code(0) > Echo reply: type(129), code(0) > type and code provided by application will be ignored > > This patch also fixes these issues in ICMP definer. > 1. Parsing inner ICMP item gets and overwrites the outer IP_PROTOCOL > function, which will remove the outer L4 match incorrectly. Fix this > by getting correct inner function. > 2. Member order of mlx5_ifc_header_icmp_bits doesn't follow ICMP format. > Reorder them to make it more consistent.
Please don't fix stuff in the same patch as a new feature. You should have one patch per fix. The code for the new feature may be squashed in the other mlx5 patch for the feature.