From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id DDDF3293B; Thu, 23 Aug 2018 10:04:51 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180823080450euoutp0169565a5c2004a724b2ba69aa07712d0f~NdNFXwhDU3267732677euoutp01X; Thu, 23 Aug 2018 08:04:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180823080450euoutp0169565a5c2004a724b2ba69aa07712d0f~NdNFXwhDU3267732677euoutp01X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1535011490; bh=tMTcT5rosO5aCIR3bL/XdLifkw40I+FhQdTvSVlEhAg=; h=From:To:Cc:Subject:Date:References:From; b=RsTIXuj1gNJWPT/hOrcmPWsM/AqEwmbPIRwnmSx1FMFZIxWx73KGaGp3JFPRR4xSb pwvDKfOhXYJGmIUOLpEG8JEADoxDACLjN7PW9+Q2GUk3+ykTbXQNVe15paqAl8tHWH ksRCppTA36UpFFjZdcN320b6BUUYW5kGoWkb/vqo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180823080449eucas1p1d9b17ff8d7fae51a60c4eb122aa4087f~NdNE3_Awy1448114481eucas1p1E; Thu, 23 Aug 2018 08:04:49 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id C0.CB.04806.1AA6E7B5; Thu, 23 Aug 2018 09:04:49 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180823080448eucas1p1f2a3c25bbd7773ad9f510320f4796d4d~NdND9xi3R2372723727eucas1p1q; Thu, 23 Aug 2018 08:04:48 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-09-5b7e6aa1a8f0 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 76.50.04284.0AA6E7B5; Thu, 23 Aug 2018 09:04:48 +0100 (BST) Received: from imaximets.rnd.samsung.ru ([106.109.129.180]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PDW00L3KMFSUI10@eusync3.samsung.com>; Thu, 23 Aug 2018 09:04:48 +0100 (BST) From: Ilya Maximets To: dev@dpdk.org Cc: Ori Kam , John McNamara , Marko Kovacevic , Ilya Maximets , stable@dpdk.org Date: Thu, 23 Aug 2018 11:05:54 +0300 Message-id: <20180823080554.10695-1-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRmVeSWpSXmKPExsWy7djP87oLs+qiDZq+y1q8+7SdyeJK+092 i/PztrJanN/Yy2rRe/gLm8W/jj/sDmwevxYsZfVYvOclk8ez6YeZPPq2rGIMYInisklJzcks Sy3St0vgytj6eQ9jwVXRiitHrrM3ME4V7GLk5JAQMJGYt+cgYxcjF4eQwApGiVcXN7NAOJ8Z JTa3HGCHq5reBpVYxihx62MPlNPMJHFj40Q2kCo2AR2JU6uPMILYIgICEp87F7OBFDELbGaU 2PDrBFMXIweHsICzRN9qGZAaFgFVibvHO1hAbF4Ba4k7/zcwQmyTl1i94QAzSK+EwENWiXsv 1rNAJFwkFiz+ywRhC0u8Or4F6jwZic6Og1Dxeon7LS8ZIZo7GCWmH/oHlbCX2PL6HFgDswCf xKRt05lBDpIQ4JXoaBOCMD0k9vQIg1QICcRKnNzUwTKBUWIBI8MqRvHU0uLc9NRi47zUcr3i xNzi0rx0veT83E2MwKg6/e/41x2M+/4kHWIU4GBU4uEVKKyNFmJNLCuuzD3EKMHBrCTC+3xz TbQQb0piZVVqUX58UWlOavEhRmkOFiVxXj6ttGghgfTEktTs1NSC1CKYLBMHp1QD40b9qL8S Sf1Pfh26p85038gip/T8K6aMU82XDGOE7oYs+nNOK8dMXunpZqYdcf/UJp9fc0/pFv+CK/vS eOKM5/6f+355zRRr/Vdlk+sntvzXXrP8cGZGaPViB3Ov6Cm3TrCFam/9c8k9Wau3quLaJi+/ mNqXf/bMKp/JtXurbNDvDPYtS98JiyqxFGckGmoxFxUnAgB9niU/pgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t/xq7oLsuqiDV4sMrN492k7k8WV9p/s FufnbWW1OL+xl9Wi9/AXNot/HX/YHdg8fi1YyuqxeM9LJo9n0w8zefRtWcUYwBLFZZOSmpNZ llqkb5fAlbH18x7GgquiFVeOXGdvYJwq2MXIySEhYCIxb3obSxcjF4eQwBJGiR+7v7FDOK1M EjNetbKDVLEJ6EicWn2EEcQWERCQ+Ny5mA2kiFlgM6PE9m19QAkODmEBZ4m+1TIgNSwCqhJ3 j3ewgNi8AtYSd/5vYITYJi+xesMB5gmMXAsYGVYxiqSWFuem5xYb6hUn5haX5qXrJefnbmIE +n7bsZ+bdzBe2hh8iFGAg1GJhzejuDZaiDWxrLgy9xCjBAezkgjv88010UK8KYmVValF+fFF pTmpxYcYpTlYlMR5zxtURgkJpCeWpGanphakFsFkmTg4pRoY7RsE1TIf7zr+8/Nhhf1Pzv1Y Mf3Jrm+H2KL2Hf/p4xKS2h/qIPboY+3Sm/LR9U4BGyNNvyZzzpoUWt/GNqVTIfXwo4v9nesq HggwOddz1PFvfK2t/nrjb5nHfRcTfMLE3hxMXSN078c3J/aVvu+Nz5xt+V3fwfbZ4qWhyMyQ Zq/YaOPWo/zblFiKMxINtZiLihMBT56qUfkBAAA= X-CMS-MailID: 20180823080448eucas1p1f2a3c25bbd7773ad9f510320f4796d4d X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180823080448eucas1p1f2a3c25bbd7773ad9f510320f4796d4d References: Subject: [dpdk-dev] [PATCH] doc: fix style and syntax errors in flow API guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 08:04:52 -0000 Fixes: 3e0ceb9f17ff ("doc: add basic howto for flow API") Cc: stable@dpdk.org Signed-off-by: Ilya Maximets --- doc/guides/howto/rte_flow.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/guides/howto/rte_flow.rst b/doc/guides/howto/rte_flow.rst index caa4e1afd..c71152161 100644 --- a/doc/guides/howto/rte_flow.rst +++ b/doc/guides/howto/rte_flow.rst @@ -32,7 +32,7 @@ Code .. code-block:: c /* create the attribute structure */ - struct rte_flow_attr attr = {.ingress = 1}; + struct rte_flow_attr attr = { .ingress = 1 }; struct rte_flow_item pattern[MAX_PATTERN_IN_FLOW]; struct rte_flow_action actions[MAX_ACTIONS_IN_FLOW]; struct rte_flow_item_etc eth; @@ -62,8 +62,8 @@ Code actions[1].type = RTE_FLOW_ACTION_TYPE_END; /* validate and create the flow rule */ - if (!rte_flow_validate(port_id, &attr, pattern, actions, &error) - flow = rte_flow_create(port_id, &attr, pattern, actions, &error) + if (!rte_flow_validate(port_id, &attr, pattern, actions, &error)) + flow = rte_flow_create(port_id, &attr, pattern, actions, &error); Output ~~~~~~ @@ -120,7 +120,7 @@ clarity):: tpmd> flow create 0 ingress pattern eth / vlan / ipv4 dst spec 192.168.3.0 dst mask 255.255.255.0 / - end actions drop / end + end actions drop / end Code ~~~~ @@ -160,8 +160,8 @@ Code actions[1].type = RTE_FLOW_ACTION_TYPE_END; /* validate and create the flow rule */ - if (!rte_flow_validate(port_id, &attr, pattern, actions, &error) - flow = rte_flow_create(port_id, &attr, pattern, actions, &error) + if (!rte_flow_validate(port_id, &attr, pattern, actions, &error)) + flow = rte_flow_create(port_id, &attr, pattern, actions, &error); Output ~~~~~~ @@ -227,7 +227,7 @@ Code .. code-block:: c - struct rte_flow_attr attr = {.ingress = 1}; + struct rte_flow_attr attr = { .ingress = 1 }; struct rte_flow_item pattern[MAX_PATTERN_IN_FLOW]; struct rte_flow_action actions[MAX_ACTIONS_IN_FLOW]; struct rte_flow_item_etc eth; @@ -250,12 +250,12 @@ Code /* create the queue action */ actions[0].type = RTE_FLOW_ACTION_TYPE_QUEUE; - actions[0].conf = &queue + actions[0].conf = &queue; actions[1].type = RTE_FLOW_ACTION_TYPE_END; /* validate and create the flow rule */ - if (!rte_flow_validate(port_id, &attr, pattern, actions, &error) - flow = rte_flow_create(port_id, &attr, pattern, actions, &error) + if (!rte_flow_validate(port_id, &attr, pattern, actions, &error)) + flow = rte_flow_create(port_id, &attr, pattern, actions, &error); Output ~~~~~~ -- 2.17.1