[EXT] Re: [PATCH v8 06/12] app/graph: add ipv4_lookup command line interfaces
Sunil Kumar Kori
skori at marvell.com
Tue Oct 17 08:30:39 CEST 2023
> -----Original Message-----
> From: Jerin Jacob <jerinjacobk at gmail.com>
> Sent: Monday, October 16, 2023 9:18 PM
> To: Sunil Kumar Kori <skori at marvell.com>
> Cc: Rakesh Kudurumalla <rkudurumalla at marvell.com>; dev at dpdk.org
> Subject: [EXT] Re: [PATCH v8 06/12] app/graph: add ipv4_lookup command
> line interfaces
>
> External Email
>
> ----------------------------------------------------------------------
> On Fri, Sep 29, 2023 at 8:16 PM <skori at marvell.com> wrote:
> >
> > From: Sunil Kumar Kori <skori at marvell.com>
> >
> > It adds ipv4_lookup module to configure LPM table. This LPM table will
> > be used for IPv4 lookup and forwarding.
> >
> > Following commands are exposed:
> > - ipv4_lookup route add ipv4 <ip> netmask <mask> via <ip>
> > - help ipv4_lookup
> >
> > Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
> > Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
> > ---
> > app/graph/cli.c | 2 +
> > app/graph/ethdev.c | 2 +-
> > app/graph/ip4_route.c | 221
> +++++++++++++++++++++++++++++++++++++
> > app/graph/meson.build | 1 +
> > app/graph/module_api.h | 1 +
> > app/graph/route.h | 26 +++++
> > app/graph/route_priv.h | 44 ++++++++
> > doc/guides/tools/graph.rst | 9 ++
> > 8 files changed, 305 insertions(+), 1 deletion(-) create mode 100644
> > app/graph/ip4_route.c create mode 100644 app/graph/route.h create
> > mode 100644 app/graph/route_priv.h
> >
> > diff --git a/app/graph/cli.c b/app/graph/cli.c index
> > c4b5cf3ce1..430750db6e 100644
> > --- a/app/graph/cli.c
> > +++ b/app/graph/cli.c
> > @@ -30,6 +30,8 @@ cmdline_parse_ctx_t modules_ctx[] = {
> > (cmdline_parse_inst_t *)ðdev_ip6_cmd_ctx,
> > (cmdline_parse_inst_t *)ðdev_cmd_ctx,
> > (cmdline_parse_inst_t *)ðdev_help_cmd_ctx,
> > + (cmdline_parse_inst_t *)&ipv4_lookup_cmd_ctx,
> > + (cmdline_parse_inst_t *)&ipv4_lookup_help_cmd_ctx,
> > NULL,
> > };
> >
> > diff --git a/app/graph/ethdev.c b/app/graph/ethdev.c index
> > 74e80679d9..4d2bc73e7c 100644
> > --- a/app/graph/ethdev.c
> > +++ b/app/graph/ethdev.c
> > @@ -160,7 +160,7 @@ ethdev_stop(void)
> > }
> >
> > ethdev_list_clean();
> > - rte_eal_cleanup();
>
> Looks like by mistake it is removed in this patch.
>
No, It is intentionally moved from here to main() function. This is just to align initialize and cleanup sequence.
> > + route_ip4_list_clean();
> > printf("Bye...\n");
> > }
More information about the dev
mailing list