From: Ankur Dwivedi <adwivedi@marvell.com>
To: <dev@dpdk.org>
Cc: <jerinj@marvell.com>, <vladimir.medvedkin@intel.com>,
<ndabilpuram@marvell.com>, <pbhagavatula@marvell.com>,
<skori@marvell.com>, <rkudurumalla@marvell.com>,
Ankur Dwivedi <adwivedi@marvell.com>
Subject: [PATCH v1 00/12] add lookup fib nodes in graph library
Date: Tue, 15 Apr 2025 17:40:40 +0530 [thread overview]
Message-ID: <20250415121052.1497155-1-adwivedi@marvell.com> (raw)
This patch series adds two inbuilt nodes ip4_lookup_fib and
ip6_lookup_fib in graph library. These nodes uses the existing
Forwarding Information Base (FIB) library to create FIB, to do
route addition and route lookup.
Two new commands (for ipv4 and ipv6) for providing the lookup mode
is added in the dpdk-graph application. fib or lpm can be given as
lookup mode. If these new lookup mode commands are not given, the
dpdk-graph uses lpm (Longest Prefix Match) or lpm6 by default.
If fib is given as lookup mode then the ip4_lookup_fib or ip6_lookup_fib
nodes are used by the application.
Ankur Dwivedi (12):
fib: move macro to header file
node: add IP4 lookup FIB node
node: add IP4 FIB route add
node: add process callback for IP4 FIB
node: add next node in packet classification
app/graph: add IP4 lookup mode command
fib: move macro to header file
node: add IP6 lookup FIB node
node: add IP6 FIB route add
node: add process callback for IP6 FIB
node: add next node in packet classification
app/graph: add IP6 lookup mode command
app/graph/commands.list | 2 +
app/graph/ip4_route.c | 34 +++-
app/graph/ip6_route.c | 33 +++-
app/graph/l3fwd.c | 24 +++
app/graph/module_api.h | 13 ++
doc/guides/tools/graph.rst | 24 ++-
lib/fib/rte_fib.c | 3 -
lib/fib/rte_fib.h | 3 +
lib/fib/rte_fib6.c | 11 +-
lib/fib/rte_fib6.h | 3 +
lib/node/ip4_lookup_fib.c | 327 ++++++++++++++++++++++++++++++++++++
lib/node/ip6_lookup_fib.c | 316 ++++++++++++++++++++++++++++++++++
lib/node/meson.build | 4 +-
lib/node/pkt_cls.c | 2 +
lib/node/pkt_cls_priv.h | 2 +
lib/node/rte_node_ip4_api.h | 19 +++
lib/node/rte_node_ip6_api.h | 19 +++
17 files changed, 812 insertions(+), 27 deletions(-)
create mode 100644 lib/node/ip4_lookup_fib.c
create mode 100644 lib/node/ip6_lookup_fib.c
--
2.25.1
next reply other threads:[~2025-04-15 12:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-15 12:10 Ankur Dwivedi [this message]
2025-04-15 12:10 ` [PATCH v1 01/12] fib: move macro to header file Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 02/12] node: add IP4 lookup FIB node Ankur Dwivedi
2025-04-16 7:32 ` Nitin Saxena
2025-04-16 10:26 ` [EXTERNAL] " Ankur Dwivedi
2025-04-16 9:34 ` Medvedkin, Vladimir
2025-04-16 10:07 ` [EXTERNAL] " Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 03/12] node: add IP4 FIB route add Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 04/12] node: add process callback for IP4 FIB Ankur Dwivedi
2025-04-16 7:54 ` Nitin Saxena
2025-04-16 12:54 ` Medvedkin, Vladimir
2025-04-18 7:38 ` [EXTERNAL] " Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 05/12] node: add next node in packet classification Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 06/12] app/graph: add IP4 lookup mode command Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 07/12] fib: move macro to header file Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 08/12] node: add IP6 lookup FIB node Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 09/12] node: add IP6 FIB route add Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 10/12] node: add process callback for IP6 FIB Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 11/12] node: add next node in packet classification Ankur Dwivedi
2025-04-15 12:10 ` [PATCH v1 12/12] app/graph: add IP6 lookup mode command Ankur Dwivedi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250415121052.1497155-1-adwivedi@marvell.com \
--to=adwivedi@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=pbhagavatula@marvell.com \
--cc=rkudurumalla@marvell.com \
--cc=skori@marvell.com \
--cc=vladimir.medvedkin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).