[dpdk-dev] [PATCH v7 5/5] doc/guides/l3_forward: update documentation for FIB
David Marchand
david.marchand at redhat.com
Thu Apr 15 16:59:05 CEST 2021
On Tue, Apr 6, 2021 at 1:11 PM Conor Walsh <conor.walsh at intel.com> wrote:
> + /* populate the FIB table */
> +
> + for (i = 0; i < IPV4_L3FWD_NUM_ROUTES; i++) {
> + struct in_addr in;
> +
> + /* skip unused ports */
> + if ((1 << ipv4_l3fwd_fib_route_array[i].if_out & enabled_port_mask) == 0)
Little extra comment, this code is not using the same variables as the code.
Pasting all this code in the documentation does not help, I would just
remove it and/or reference the code example to avoid doc and example
being out of sync in the future.
> + continue;
> +
--
David Marchand
More information about the dev
mailing list