From patchwork Wed Mar 2 10:35:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 63380 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2306380lbc; Wed, 2 Mar 2016 02:36:03 -0800 (PST) X-Received: by 10.140.239.66 with SMTP id k63mr34409353qhc.11.1456914963824; Wed, 02 Mar 2016 02:36:03 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f68si1469391qge.89.2016.03.02.02.36.03; Wed, 02 Mar 2016 02:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4126565082; Wed, 2 Mar 2016 10:36:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3743C62F69; Wed, 2 Mar 2016 10:35:56 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id F062963013; Wed, 2 Mar 2016 10:35:49 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by lists.linaro.org (Postfix) with ESMTPS id A2DF962F5E for ; Wed, 2 Mar 2016 10:35:47 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id fz5so62386249obc.0 for ; Wed, 02 Mar 2016 02:35:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TfuD30vb0DEhTRGMB+h+JyxcdtBAFeLW2xRHePaw5g8=; b=UYGSeuoz7VMZXRDxIExPCu4kNXZaUrX/5xA7NnkpP8L/+z6ArYPydsUnYkDt8D4aVl zGyHV8PrcN48LPanNEl7pD/KulCdLGyNoiQAbITLz2b13dOOXpC71RVegKQq4NtKw/Dh ZKxLg64aat3bvS+2QcPkYT/1rjAR5WIcitm+kgrdnj1eyD95OThmBURBVEFHQtlok2r5 k8riKMP4WOrimfGAVRlIH3bu272Ihr+cuxWO1OJEzDhnj995jMPnwIOroiA1msCuzjIb Sa1jth+B7zHAUW81X9E8xB/JNPkEI+k84oNUrqKD2ML8+d32k23ZTMPiZ7956Kdm4PUQ vLHQ== X-Gm-Message-State: AD7BkJJJSZrn95/I8gOjKWbFLRVQsuE7SMd6olrIU9LfAolRYdxPhU3LQpLzTDqgEpLBLun0ZEk= X-Received: by 10.60.116.35 with SMTP id jt3mr21225956oeb.79.1456914947149; Wed, 02 Mar 2016 02:35:47 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id t185sm27655oif.15.2016.03.02.02.35.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 02:35:46 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 2 Mar 2016 04:35:42 -0600 Message-Id: <1456914944-15985-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 1/3] doc: images: add gv file for pktio state machine X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The PktIO FSM state diagram is built using GraphVis. Add the files and associated Makefile and .gitignore changes needed to support this new file. Signed-off-by: Bill Fischofer --- doc/Makefile.inc | 3 +++ doc/images/.gitignore | 1 + doc/images/pktio_fsm.gv | 17 +++++++++++++++++ doc/users-guide/Makefile.am | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 doc/images/pktio_fsm.gv diff --git a/doc/Makefile.inc b/doc/Makefile.inc index cab5286..86b2427 100644 --- a/doc/Makefile.inc +++ b/doc/Makefile.inc @@ -3,4 +3,7 @@ VPATH=$(top_builddir)/doc/images .msc.svg: mscgen -T svg -i $^ -o $@ +.gv.svg: + dot -T svg $^ -o $@ + ASCIIDOC_FLAGS =-a data-uri -b html5 -a icons -a toc2 -a max-width=55em diff --git a/doc/images/.gitignore b/doc/images/.gitignore index 1647e41..a19aa75 100644 --- a/doc/images/.gitignore +++ b/doc/images/.gitignore @@ -1 +1,2 @@ resource_management.svg +pktio_fsm.svg diff --git a/doc/images/pktio_fsm.gv b/doc/images/pktio_fsm.gv new file mode 100644 index 0000000..09199c6 --- /dev/null +++ b/doc/images/pktio_fsm.gv @@ -0,0 +1,17 @@ +digraph pktio_state_machine { + rankdir=LR; + size="9,12"; + node [fontsize=28]; + edge [fontsize=28]; + node [shape=doublecircle]; Unallocated Ready; + node [shape=circle]; + Unallocated -> Unconfigured [label="odp_pktio_open()"]; + Unconfigured -> Unallocated [label="odp_pktio_close()"]; + Unconfigured -> Configured [label="odp_pktin_queue_config()"]; + Unconfigured -> Configured [label="odp_pktout_queue_config()"]; + Configured -> Configured [label="odp_pktin_queue_config()"]; + Configured -> Configured [label="odp_pktout_queue_config()"]; + Configured -> Ready [label="odp_pktio_start()"]; + Ready -> Configured [label="odp_pktio_stop()"]; + Configured -> Unallocated [label="odp_pktio_close()"]; +} \ No newline at end of file diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am index 4f5b1fe..3f8ce3d 100644 --- a/doc/users-guide/Makefile.am +++ b/doc/users-guide/Makefile.am @@ -11,6 +11,8 @@ IMAGES = $(top_srcdir)/doc/images/overview.svg \ $(top_srcdir)/doc/images/atomic_queue.svg \ $(top_srcdir)/doc/images/ordered_queue.svg +IMAGES += $(top_srcdir)/doc/images/pktio_fsm.svg + if HAVE_MSCGEN IMAGES += $(top_srcdir)/doc/images/resource_management.svg endif