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 B3BEAA0C43; Thu, 30 Sep 2021 23:48:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3624640DDA; Thu, 30 Sep 2021 23:48:21 +0200 (CEST) Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by mails.dpdk.org (Postfix) with ESMTP id B4BD94067E for ; Thu, 30 Sep 2021 23:48:19 +0200 (CEST) Received: by mail-il1-f170.google.com with SMTP id t15so6042155ilj.1 for ; Thu, 30 Sep 2021 14:48:19 -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=Izo1pzELZ5847SZXh1h0N69VV6LTB5JDaTbwlr5Hc8w=; b=B0HlHaS+CQDjYp/pl5A+gxGLSL/FcOvaT+lEohmxcQH1k3k/0jBoVH2bCzluqy37U3 yXNPFECbMq5C9eZqH58JPVPpgfCPLhq/3dGBfm3Ei1zLkyVoCO1WhyrJOmoXwUO5nXMv 28rL/eY0VA8yzfg7qDUv2eQwzXEEo1KkTH02A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Izo1pzELZ5847SZXh1h0N69VV6LTB5JDaTbwlr5Hc8w=; b=CeRLQhQFPIg7Ww9mvdtgrxL21qKSGG6M13NvS11ad5E/KIZnkRdd3Fwla9cAlWZFOs a9rOYbBOxeOJtDkvNiceWheqOCJzARjqN/VMO4e6R8VfExtXKC0aH3oDWRB35Pg7D1dC 2wSNh27iPmJdwmZ8bEgp45cTvD2vsqlXGF7HtKoSRuMOItZUWH3AZ6BvmdBM5JoOkbxj mzfbmIvWyjJ66f2K/5QeKuVh2oxTDAad9qpbaIeWVPrskZjQ6AvBPLCszpdt3CuIzkCX MTtdOx4+IPBosYhau6UqKQ3dwjmHSqKeJvJnqXurNZBC4+XBagUWMhYt/stu/6MtWUOX MV/g== X-Gm-Message-State: AOAM531Yz2QWBQ1O4WHTs5mMMOe7YzPUig4cvI7CW/W4/LvSjJf48DsM un1gvFfKtxec7TK7j+/jmHA45IVx5Sa0F3kjqA8vUw== X-Google-Smtp-Source: ABdhPJwWGqEo9OpzDjr+WMipGhTYQOdxsWqy8hrWRZmpKRdDFr3uMsdRd5VhOGt8Ma68PjMeKCIE1NmO7RDcPoPxhhA= X-Received: by 2002:a05:6e02:16ca:: with SMTP id 10mr4333115ilx.63.1633038498810; Thu, 30 Sep 2021 14:48:18 -0700 (PDT) MIME-Version: 1.0 References: <20210902142359.28138-1-ivan.malov@oktetlabs.ru> <20210923112012.14595-1-ivan.malov@oktetlabs.ru> <20210923112012.14595-2-ivan.malov@oktetlabs.ru> In-Reply-To: <20210923112012.14595-2-ivan.malov@oktetlabs.ru> From: Ajit Khaparde Date: Thu, 30 Sep 2021 14:48:03 -0700 Message-ID: To: Ivan Malov Cc: dpdk-dev , Andy Moreton , Andrew Rybchenko , Ray Kinsella , Jerin Jacob , Wisam Jaddo , Xiaoyun Li , Thomas Monjalon , Ferruh Yigit , Ori Kam Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000a4822b05cd3d675a" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v3 1/5] ethdev: add API to negotiate delivery of Rx meta data 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" --000000000000a4822b05cd3d675a Content-Type: text/plain; charset="UTF-8" :::: > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 97ae52e17e..7a8da3d7ab 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -1485,10 +1485,36 @@ static void > init_config_port_offloads(portid_t pid, uint32_t socket_id) > { > struct rte_port *port = &ports[pid]; > + uint64_t rx_meta_features = 0; > uint16_t data_size; > int ret; > int i; > > + rx_meta_features |= RTE_ETH_RX_META_USER_FLAG; > + rx_meta_features |= RTE_ETH_RX_META_USER_MARK; > + rx_meta_features |= RTE_ETH_RX_META_TUNNEL_ID; > + > + ret = rte_eth_rx_meta_negotiate(pid, &rx_meta_features); > + if (ret == 0) { > + if (!(rx_meta_features & RTE_ETH_RX_META_USER_FLAG)) { > + TESTPMD_LOG(INFO, "Flow action FLAG will not affect Rx mbufs on port %u\n", Log level info might be a little too noisy? > + pid); > + } > + > + if (!(rx_meta_features & RTE_ETH_RX_META_USER_MARK)) { > + TESTPMD_LOG(INFO, "Flow action MARK will not affect Rx mbufs on port %u\n", > + pid); > + } > + > + if (!(rx_meta_features & RTE_ETH_RX_META_TUNNEL_ID)) { > + TESTPMD_LOG(INFO, "Flow tunnel offload support might be limited or unavailable on port %u\n", > + pid); > + } ::: > --000000000000a4822b05cd3d675a--