From: x-fn-spp-ml@ntt-tx.co.jp To: ferruh.yigit@intel.com, yasufum.o@gmail.com Cc: spp@dpdk.org Subject: [spp] [PATCH 06/11] docs: support multi-queue in spp_vf command Date: Wed, 26 Feb 2020 20:43:30 +0900 Message-ID: <20200226114335.3865-7-x-fn-spp-ml@ntt-tx.co.jp> (raw) In-Reply-To: <20200226114335.3865-1-x-fn-spp-ml@ntt-tx.co.jp> From: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp> This patch adds description of multi-queue in spp_vf command. Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp> Signed-off-by: Naoki Takada <ntakada14@gmail.com> --- docs/guides/commands/secondary/spp_vf.rst | 54 ++++++++++++++--------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/docs/guides/commands/secondary/spp_vf.rst b/docs/guides/commands/secondary/spp_vf.rst index 1bbd7bf..dff749f 100644 --- a/docs/guides/commands/secondary/spp_vf.rst +++ b/docs/guides/commands/secondary/spp_vf.rst @@ -109,24 +109,24 @@ consists of three parts. spp > vf 1; status Basic Information: - - client-id: 3 - - ports: [phy:0, phy:1, ring:0, ring:1, ring:2, ring:3, ring:4] - - lcore_ids: - - master: 2 - - slaves: [3, 4, 5, 6] + - client-id: 1 + - ports: [phy:0 nq 0, phy:0 nq 1, ring:0, ring:1, ring:2] + - lcore_ids: + - master: 1 + - slaves: [2, 3 ,4, 5] Classifier Table: - - C0:8E:CD:38:EA:A8, ring:4 - - C0:8E:CD:38:BC:E6, ring:3 + - C0:8E:CD:38:EA:A8, ring:1 + - C0:8E:CD:38:BC:E6, ring:2 Components: - - core:5 'fw1' (type: forward) - - rx: ring:0 - - tx: ring:1 - - core:6 'mg' (type: merge) - - core:7 'cls' (type: classifier) - - rx: ring:2 - - tx: ring:3 - - tx: ring:4 - - core:8 '' (type: unuse) + - core:2 'fwd1' (type: forward) + - rx: phy:0 nq 0 + - tx: ring:0 + - core:3 'mg' (type: merge) + - core:4 'cls' (type: classifier) + - rx: phy:0 nq 1 + - tx: ring:1 + - tx: ring:2 + - core:5 '' (type: unuse) ``Basic Information`` is for describing attributes of ``spp_vf`` itself. ``client-id`` is a secondary ID of the process and ``ports`` is a list of @@ -214,10 +214,12 @@ Adding port .. code-block:: console - spp > vf SEC_ID; port add RES_UID DIR NAME + spp > vf SEC_ID; port add RES_UID [nq QUEUE_NUM] DIR NAME ``RES_UID`` is with replaced with resource UID such as ``ring:0`` or ``vhost:1``. ``spp_vf`` supports three types of port. +``nq QUEUE_NUM`` is the queue number when multi-queue is configured. +This is optional parameter. * ``phy`` : Physical NIC * ``ring`` : Ring PMD @@ -237,6 +239,9 @@ by referring the table. How to configure the table is described in # recieve from 'phy:0' spp > vf 2; port add phy:0 rx cls1 + # receive from queue 1 of 'phy:0' + spp > vf 2; port add phy:0 nq 1 rx cls1 + # send to 'ring:0' and 'ring:1' spp > vf 2; port add ring:0 tx cls1 spp > vf 2; port add ring:1 tx cls1 @@ -252,14 +257,14 @@ To remove VLAN tag, simply add ``del_vlantag`` sub command without arguments. .. code-block:: console - spp > vf SEC_ID; port add RES_UID DIR NAME del_vlantag + spp > vf SEC_ID; port add RES_UID [nq QUEUE_NUM] DIR NAME del_vlantag On the other hand, use ``add_vlantag`` which takes two arguments, ``VID`` and ``PCP``, for adding VLAN tag to the packets. .. code-block:: console - spp > vf SEC_ID; port add RES_UID DIR NAME add_vlantag VID PCP + spp > vf SEC_ID; port add RES_UID [nq QUEUE_NUM] DIR NAME add_vlantag VID PCP ``VID`` is a VLAN ID and ``PCP`` is a Priority Code Point defined in `IEEE 802.1p @@ -300,7 +305,7 @@ Delete a port which is not used anymore. .. code-block:: console - spp > vf SEC_ID; port del RES_UID DIR NAME + spp > vf SEC_ID; port del RES_UID [nq QUEUE_NUM] DIR NAME It is same as the adding port, but no need to add additional sub command for VLAN features. @@ -312,6 +317,9 @@ Here is an example. # delete rx port 'ring:0' from 'cls1' spp > vf 2; port del ring:0 rx cls1 + # delete rx port queue 1 of 'phy:0' from 'cls1' + spp > vf 2; port del phy:0 nq 1 rx cls1 + # delete tx port 'vhost:1' from 'mgr1' spp > vf 2; port del vhost:1 tx mgr1 @@ -336,6 +344,12 @@ a table of classifier. # delete entry spp > vf SEC_ID; classifier_table del mac MAC_ADDRESS RES_ID + # add entry with multi-queue support + spp > vf SEC_ID; classifier_table add mac MAC_ADDR RES_UID [nq QUEUE_NUM] + + # delete entry with multi-queue support + spp > vf SEC_ID; classifier_table del mac MAC_ADDRESS RES_ID [nq QUEUE_NUM] + This is an example to register MAC address ``52:54:00:01:00:01`` with port ``ring:0``. -- 2.17.1
next prev parent reply other threads:[~2020-02-26 11:43 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-26 11:43 [spp] [PATCH 00/11] Add Hardware offload document x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 01/11] docs: add support for rte_flow x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 02/11] docs: add support of MLX5 PMD support in DPDK x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 03/11] docs: change primary process startup parameter x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 04/11] docs: add description of REST-APIs for flow rules x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 05/11] docs: support flow syntax in primary command x-fn-spp-ml 2020-02-26 11:43 ` x-fn-spp-ml [this message] 2020-02-26 11:43 ` [spp] [PATCH 07/11] docs: add svg for classify case of hardware offload x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 08/11] docs: add svg for vlan " x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 09/11] docs: add svg for vm " x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 10/11] docs: add usecase for " x-fn-spp-ml 2020-02-26 11:43 ` [spp] [PATCH 11/11] docs: add install drivers for Mellanox NIC x-fn-spp-ml 2020-03-05 6:04 ` [spp] [PATCH 00/11] Add Hardware offload document Yasufumi Ogawa 2020-03-05 9:04 ` Yasufumi Ogawa 2020-03-13 0:46 ` Yasufumi Ogawa
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200226114335.3865-7-x-fn-spp-ml@ntt-tx.co.jp \ --to=x-fn-spp-ml@ntt-tx.co.jp \ --cc=ferruh.yigit@intel.com \ --cc=spp@dpdk.org \ --cc=yasufum.o@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Soft Patch Panel This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \ spp@dpdk.org public-inbox-index spp Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.spp AGPL code for this site: git clone https://public-inbox.org/public-inbox.git