[v2 3/3] examples/l3fwd: enhance valid ports checking
Stephen Hemminger
stephen at networkplumber.org
Wed Nov 13 20:39:07 CET 2024
On Tue, 6 Aug 2024 09:11:20 +0530
Gagandeep Singh <g.singh at nxp.com> wrote:
> The current port ID validation logic in the routes add code has
> two issues:
>
> - It can pass if port ID in route is 31+.
> - It silently skips rules with disabled or invalid
> port IDs
>
> This patch is:
> - Improving the enabled port IDs check logic.
> - Introducing a user option, "exit_on_failure", to control
> the behavior when attempting to add rules for disabled or
> invalid port IDs (either exit or skip)
> - Creating a port ID validation function for use across
> various setup functions
>
> Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
Patch looks fine, but other changes in the intervening time have
caused conflicts with this patch. Needs to be rebased.
More information about the dev
mailing list