On Mon, Feb 19, 2024 at 4:00 AM Thomas Monjalon <tho...@monjalon.net> wrote:
>
> 02/01/2024 08:30, Rakesh Kudurumalla:
> > --- /dev/null
> > +++ b/doc/guides/tools/img/graph-usecase-l2fwd.svg
> > @@ -0,0 +1,92 @@
> > +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
> > + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
> > +<!-- Generated by graphviz version 2.43.0 (0)
> > + -->
> > +<!-- SPDX-License-Identifier: BSD-3-Clause -->
> > +<!-- Copyright(C) 2023 Marvell. -->
> > +<!--
> > +
> > +Generated with following command
> > +dot -Tsvg dot.dot -o doc/guides/tools/img/graph-usecase-l2fwd.svg
> > +
> > +cat dot.dot
> > +digraph dpdk_app_graph_l2fwd_nodes_flow {
> > +    ingress_port [shape=rect]
> > +    ethdev_rx
> > +    ethdev_tx
> > +    pkt_drop
> > +    egress_port  [shape=rect]
> > +
> > +    ingress_port -> ethdev_rx [label="ingress packet"]
> > +
> > +    ethdev_rx -> ethdev_tx
> > +    ethdev_tx -> egress_port [label="egress packet"]
> > +    ethdev_tx -> pkt_drop [color="red" style="dashed"]
> > +}
> > + -->
>
> We could include this syntax directly in .rst file
> with this Sphinx extension:
> https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html

I checked that option earlier. Created this scheme to avoid graphviz
package dependency
to DPDK.


commit 597f51c34826b3b12b6a1ac9d54e9160aaa49ef7
Author: Jerin Jacob <jer...@marvell.com>
Date:   Fri Jun 23 13:06:00 2023 +0530

    doc: add inbuilt graph nodes data flow

    Added diagram to depict the data flow between inbuilt
    graph nodes.

    In order to avoid graphviz package dependency to DPDK
    documentation, manual step added to create a svg file
    from the dot file. The details for the same is documented
    in graph_inbuilt_node_flow.svg as a comment.

    Signed-off-by: Jerin Jacob <jer...@marvell.com>
    Reviewed-by: Zhirun Yan <zhirun....@intel.com>
>
>
>

Reply via email to