From fc80aaf9ffa8dd6747c9b9515303f7a4f3b52a2b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 13 Sep 2021 11:46:43 -0700 Subject: [PATCH] doc: fix numbers power of 2 in LPM6 guide [ upstream commit e0ad8d2bdafcd74eb960bf96507fed11cc97d58c ] Fixes: fc1f2750a3ec ("doc: programmers guide") Signed-off-by: Ben Pfaff Reviewed-by: David Marchand Acked-by: Vladimir Medvedkin --- doc/guides/prog_guide/lpm6_lib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/prog_guide/lpm6_lib.rst b/doc/guides/prog_guide/lpm6_lib.rst index d1aea91ca9..8425d14805 100644 --- a/doc/guides/prog_guide/lpm6_lib.rst +++ b/doc/guides/prog_guide/lpm6_lib.rst @@ -64,9 +64,9 @@ that are most commonly used in IPv6. The main data structure is built using the following elements: -* A table with 224 entries +* A table with 2^24 entries -* A number of tables, configurable by the user through the API, with 28 entries +* A number of tables, configurable by the user through the API, with 2^8 entries The first table, called tbl24, is indexed using the first 24 bits of the IP address be looked up, while the rest of the tables, called tbl8s,