From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD093A2EDB for ; Tue, 1 Oct 2019 16:54:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8F4D1BE81; Tue, 1 Oct 2019 16:54:26 +0200 (CEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id 6A705CFA6 for ; Tue, 1 Oct 2019 16:54:26 +0200 (CEST) Received: by mail-io1-f66.google.com with SMTP id q10so48780218iop.2 for ; Tue, 01 Oct 2019 07:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TIuD0TiSqhlgb0r+Dw7TX36NaB3duSm4wRWP/7xDlUs=; b=OxwMKgxFXcrD4Z+pGZMTDGvbGuG5N5qnb/aI7FvX0TOGuQuURYrfGwATp3536Yectl Sf6lIeyYybJi/brcithLp4ZqNZp7LDPts0G5FY5IOtZEcymr4ITdCrk6VbqtOjDMw5Kv CoYCLDpIHvgV8nr/Etb92QzzlMDeZ1rxnw1xe3aBHqyMdxl9autb5OkTrDf6PmUxaM6i k6brtk23QYZnFIAo8nxpRDMzlX4ut8OrfGeUnN1HcsZ17G1wSx3al9J8vEfyplSMSAsa +A8a0hkwOmL4PFFiWrqFw2Umz3TUpYdAx0+rqCL8Ll5sBM18LppbisXQqHB0GgWa5XPR 86SA== 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:content-transfer-encoding; bh=TIuD0TiSqhlgb0r+Dw7TX36NaB3duSm4wRWP/7xDlUs=; b=SfyUV9x0LrfdT1Ioj3d1qHNe5HHv84mvnrscLYnCZx2bTvzcDP+lC+vm5E4yKaLmLK /L68iTRd4Y7k+fOTiahLOhV5cuwJtPE5Ulzhq2P8m1Aypos2F9Jyg4TpzQPNVDUghgmH dNz7jV65PzfYVisl+h/1VA/5K085FTyzA+HAjtKA+H4+PMKfVr4XLVu9kTVg6TlBEii/ AzVo+tJs6jQSF2fqYFuZPbelB4NuLdooduvYKCtmynjscMOiFJlmZDg4ux7vA68Lsevo uDhpxzGflqX+GOzTwLUVD3CM8o9kUg3S2SwOgj7Z/h557TTrS/gX0Pkr/ldeJ+mYT5zP wykQ== X-Gm-Message-State: APjAAAVaaqIoCqYsJqF6pfDcvFwMi8UxUAaI15CSMn47QTJuVQkt5EfX ZJUE2vzywmqN51p7ZmRcj79KL5EJu3jq97pzZB4= X-Google-Smtp-Source: APXvYqxCBNvbRWRX4IrhMmoj+7gi4M5xXnq96jdn9qUNKqdm5lzunDjWQaKOz4VyqvCnsIJjBCe/yVjdv5JB5J6gXWQ= X-Received: by 2002:a92:1559:: with SMTP id v86mr27185102ilk.130.1569941665562; Tue, 01 Oct 2019 07:54:25 -0700 (PDT) MIME-Version: 1.0 References: <20190821204755.1990-1-pbhagavatula@marvell.com> <20190821204755.1990-2-pbhagavatula@marvell.com> In-Reply-To: <20190821204755.1990-2-pbhagavatula@marvell.com> From: Jerin Jacob Date: Tue, 1 Oct 2019 20:24:14 +0530 Message-ID: To: Pavan Nikhilesh Cc: arybchenko@solarflare.com, Jerin Jacob , John McNamara , Marko Kovacevic , Thomas Monjalon , Ferruh Yigit , dpdk-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2 1/7] ethdev: add set ptype function 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Aug 22, 2019 at 2:18 AM wrote: > > From: Pavan Nikhilesh > > Add `rte_eth_dev_set_supported_ptypes` function that will allow the > application to inform the PMD the packet types it is interested in. > Based on the ptypes set PMDs can optimize their Rx path. > > -If application doesn=E2=80=99t want any ptype information it can call > `rte_eth_dev_set_supported_ptypes(ethdev_id, RTE_PTYPE_UNKNOWN)` and PMD > will set rte_mbuf::packet_type to 0. > > -If application doesn=E2=80=99t call `rte_eth_dev_set_supported_ptypes` P= MD can > return `rte_mbuf::packet_type` with `rte_eth_dev_get_supported_ptypes`. > > -If application is interested only in L2/L3 layer, it can inform the PMD > to update `rte_mbuf::packet_type` with L2/L3 ptype by calling > `rte_eth_dev_set_supported_ptypes(ethdev_id, > RTE_PTYPE_L2_MASK | RTE_PTYPE_L3_MASK)`. > > Suggested-by: Konstantin Ananyev > Signed-off-by: Pavan Nikhilesh > --- > doc/guides/nics/features.rst | 12 ++++++--- > doc/guides/rel_notes/release_19_11.rst | 7 ++++++ > lib/librte_ethdev/rte_ethdev.c | 32 ++++++++++++++++++++++++ > lib/librte_ethdev/rte_ethdev.h | 16 ++++++++++++ > lib/librte_ethdev/rte_ethdev_core.h | 6 +++++ > lib/librte_ethdev/rte_ethdev_version.map | 3 +++ For octeontx2, This feature was enabled through devargs as "ptype_disable" argument. Now that, We have public API, Could you remove the "ptype_disable" devargs from octeontx2 driver as a separate patch with devargs update in doc/guides/nics/octeontx2.rst.