From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7007A034F; Mon, 22 Mar 2021 03:27:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 31DB9140E4C; Mon, 22 Mar 2021 03:27:54 +0100 (CET) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by mails.dpdk.org (Postfix) with ESMTP id 27C8C4069C for ; Mon, 22 Mar 2021 03:27:53 +0100 (CET) Received: by mail-qv1-f48.google.com with SMTP id h3so7991252qvh.8 for ; Sun, 21 Mar 2021 19:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gRYoJKrsqAbapaiyOV6y9hyuqYcJdHBG/VdjFdWoHMs=; b=em01j02vBr1PjpMFJ+OOfKhA/g7rAcdH79NxAx1KybhUzua08S41zUC7qkhHBnw4G2 Gro7yMNxYNmv8f5cD7S13+80cuHy/tMtj3ok+/t/bW38RwyalCpFCwafdIZV/04rwtaW DSUKcuFZXs8RrI+F0DvOmbwQqUkWZ2D0XaPV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gRYoJKrsqAbapaiyOV6y9hyuqYcJdHBG/VdjFdWoHMs=; b=MxxdEmdlKUtffaaQQDBrVN5J1Eg/oo8QKkJwAVRFlQ1BlGBYxXhhZvfIt+vSuCpl6a xHWC1g09XbPUaIGNUAsDPDxcwLyFAY+OBzrqJE0imfvl0Sgx55a0QogLvRDOjXace3MY M3++YT0kslOssFVGZP5Qct85tETWVam2Ku+jnZ/vnlFWBB5qC/GB4QurbB9oQF0XC39o 3CgdV/jSlkmPgHsItW9mUot0DldOvpUD+E10NRF7DlVSvHXmWnzf8wFPGp0Ubkawywaa 4Zbs2CxX78U2i2487zVDzaWUJixfOZrxAbEi5Y7g5jrS7YsN02SuNBjnG3MiHgl13C8X bvoA== X-Gm-Message-State: AOAM531EKp2GJoBl7hsmIA5ENUo4hloqCiXLfK+ULA6tayJXhZR8IPhs e9H/+gTww6IIqLiZZd/zHdoh7w8W6nhSHMRoAKqqJw== X-Google-Smtp-Source: ABdhPJzrvsv6l8UAKZok9pG4P3h+RzzScAyafKhiLARFJDeFvOc6w/TlohUg96DBPR2zTft2A32CWClvhnuc6NAPEa8= X-Received: by 2002:ad4:496b:: with SMTP id p11mr19569462qvy.33.1616380072405; Sun, 21 Mar 2021 19:27:52 -0700 (PDT) MIME-Version: 1.0 References: <1614906276-34293-1-git-send-email-oulijun@huawei.com> <1615430867-29992-1-git-send-email-humin29@huawei.com> In-Reply-To: <1615430867-29992-1-git-send-email-humin29@huawei.com> From: Ajit Khaparde Date: Sun, 21 Mar 2021 19:27:36 -0700 Message-ID: To: "Min Hu (Connor)" Cc: dpdk-dev , Ferruh Yigit Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000000f2eb405be16d011" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: support multi-process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --0000000000000f2eb405be16d011 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable :::snip:::: > +* ``--proc-type`` > + Specify a given process instance as the primary or secondary DPDK= instance. ``auto`` set here is ok. > + > +* ``-l CORELIST`` > + List of cores to run on. the corelist should be different in prim= ary process and secondary process. > + > +* ``--rxq=3DN`` > + > + Set the number of RX queues per port to N, where 1 <=3D N <=3D 65535= . > + The default value is 1. N is the sum of queues used by primary and s= econdary process. If RxQ is 1, how will it be shared between the primary and secondary proces= ses? Should the number of rings be a multiple of the number of processes? > + > +* ``--txq=3DN`` > + > + Set the number of TX queues per port to N, where 1 <=3D N <=3D 65535= . > + The default value is 1. N is the sum of queues used by primary and s= econdary process. Same as above. How will a single ring be used across primary and secondary processes? > + > +* ``--num-procs=3DN`` > + > + The number of processes which will be used. > + > +* ``--proc-id=3Did`` > + > + The id of the current process (id < num-procs). id should be diff= erent in primary process and secondary process. > + > +Calculation rule for queue: > +All queues are allocated to different processes based on proc_num and pr= oc_id. > +Calculation rule for the Testpmd to allocate queues to each process: > +start(queue start id) =3D proc_id * nb_q / num_procs=EF=BC=9B > +end(queue end id) =3D start + nb_q / num_procs=EF=BC=9B > + > +For example, if supports 4 txq and rxq > +the 0~1 for primary process > +the 2~3 for secondary process > + > +Most dev ops is supported in primary and secondary process. While second= ary process is not permitted > +to allocate or release shared memory, so some ops are not supported as f= ollows: > +``dev_start`` > +``dev_stop`` > +``rx_queue_setup`` > +``tx_queue_setup`` > +``rx_queue_release`` > +``tx_queue_release`` > + > +RTE_FLOW supported, it applies only on its own process on SW side, but a= ll on HW size. > +stats supported, stats will not change when one quit and start, As they = share the same buffer to store the stats. > +RSS supported, Primary process and secondary process has separate queues= to use, RSS will work in their own queues whether primary and secondary pr= ocess. > -- > 2.7.4 > --0000000000000f2eb405be16d011--