Re: [PATCH] net/sfc: avoid unnecessary flow pattern item traversal

2023-02-14 Thread Andrew Rybchenko
On 2/14/23 16:27, Ivan Malov wrote: Currently, the code tries to look up a user-provided item by traversing those known to the PMD. Avoid the traversal since it is easier to access items directly by their IDs, with necessary checks to avoid reading past the buffer. Signed-off-by: Ivan Malov Rev

[PATCH] net/sfc: avoid unnecessary flow pattern item traversal

2023-02-14 Thread Ivan Malov
Currently, the code tries to look up a user-provided item by traversing those known to the PMD. Avoid the traversal since it is easier to access items directly by their IDs, with necessary checks to avoid reading past the buffer. Signed-off-by: Ivan Malov Reviewed-by: Viacheslav Galaktionov Revi