From patchwork Sun Feb 28 21:17:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 63162 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp925328lbc; Sun, 28 Feb 2016 13:17:53 -0800 (PST) X-Received: by 10.55.73.68 with SMTP id w65mr15105935qka.68.1456694272902; Sun, 28 Feb 2016 13:17:52 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g51si23272763qge.96.2016.02.28.13.17.52; Sun, 28 Feb 2016 13:17:52 -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 DE17D6184E; Sun, 28 Feb 2016 21:17:51 +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 AD2D16178E; Sun, 28 Feb 2016 21:17:46 +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 672866178E; Sun, 28 Feb 2016 21:17:44 +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 7F92761759 for ; Sun, 28 Feb 2016 21:17:43 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id s6so68588302obg.3 for ; Sun, 28 Feb 2016 13:17:43 -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=XRNcLqIdlT19yJdCikRRlTxmdWQ3F3Ug1k6AhMKBNPg=; b=Fx9f8qnh49JTeehKa/UqfhhriG4Mi1werReSFQcWQBFfAEzpalROrR+auntR6oTOQv YddF9nAlIrlYfQz3izhkhS6aUeZLwKcioTPVpNajIE2JBmAfREl5CHkFRXw2bP7FnvjD tqdPPwd1+J5pSOmLCIth7ZmQZ+Ey9Jd6P9AZkaMrncQMJh0zWxhnGA7fpsyjOioQywsN iXoY6TPTOldQ0Up/lZMoBXvKYtfCUqRZCQdA/5fN2oOK02+B8xurRr5RzAShhd/PVfzc J3jBhf+nkumSAmf09s5djgy2ywD0q1ROyhDWNWV8SNlFQgieXFiu4J5MmcwriHXTk6Pw UjAg== X-Gm-Message-State: AD7BkJJMWZaBEGAQpNzt0wfsgiufEXsL70Nrx8EEj2c1itDAorgAvQMgpvUy+pFgLH8ansx9Acg= X-Received: by 10.182.133.4 with SMTP id oy4mr9088092obb.65.1456694263018; Sun, 28 Feb 2016 13:17:43 -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 y128sm15688222oie.10.2016.02.28.13.17.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Feb 2016 13:17:42 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sun, 28 Feb 2016 15:17:37 -0600 Message-Id: <1456694259-30225-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 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 GraphViz. Add the files and associated Makefile and .gitignore changes needed to support this new file. Signed-off-by: Bill Fischofer --- doc/images/.gitignore | 1 + doc/images/Makefile.am | 14 +++++++++++--- doc/images/pktio_fsm.gv | 17 +++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 doc/images/pktio_fsm.gv 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/Makefile.am b/doc/images/Makefile.am index 8fb8a99..ece9458 100644 --- a/doc/images/Makefile.am +++ b/doc/images/Makefile.am @@ -1,16 +1,24 @@ .msc.svg: mscgen -T svg -i $^ -o $@ +.gv.svg: + dot -Tsvg $^ -o $@ + MSG_SRCS = resource_management.msc MSG_TARGETS = $(MSG_SRCS:msc=svg) -EXTRA_DIST = $(MSG_SRCS) +GV_SRCS = pktio_fsm.gv +GV_TARGETS = $(GV_SRCS:gv=svg) + +EXTRA_DIST = $(MSG_SRCS) $(GV_SRCS) + +TARGETS = $(GV_TARGETS) if HAVE_MSCGEN -TARGETS = $(MSG_TARGETS) +TARGETS += $(MSG_TARGETS) endif all-local: $(TARGETS) clean-local: - rm -f $(MSG_TARGETS) + rm -f $(MSG_TARGETS) $(GV_TARGETS) 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