From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3644CC432BE for ; Thu, 26 Aug 2021 07:10:29 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id B666561037 for ; Thu, 26 Aug 2021 07:10:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B666561037 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A38F740140; Thu, 26 Aug 2021 09:10:27 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 0462D4013F for ; Thu, 26 Aug 2021 09:10:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10087"; a="217721044" X-IronPort-AV: E=Sophos;i="5.84,352,1620716400"; d="scan'208";a="217721044" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2021 00:10:24 -0700 X-IronPort-AV: E=Sophos;i="5.84,352,1620716400"; d="scan'208";a="527657051" Received: from dpdk.cd.intel.com ([10.240.178.133]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2021 00:10:22 -0700 From: Jie Wang To: dev@dpdk.org Cc: xiaoyun.li@intel.com, andrew.rybchenko@oktetlabs.ru, thomas@monjalon.net, ferruh.yigit@intel.com, Jie Wang Date: Thu, 26 Aug 2021 15:09:22 +0800 Message-Id: <20210826070924.308368-1-jie1x.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210824171049.138208-1-jie1x.wang@intel.com> References: <20210824171049.138208-1-jie1x.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v7 0/2] testpmd shows incorrect rx_offload configuration 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" Launch testpmd with multiple queues, and check rx_offload info. When testpmd shows the port configuration, it doesn't show RSS_HASH. --- v7: - delete struct "rte_eth_dev_conf_info", and reuse struct "rte_eth_conf". - add "__rte_experimental" to the new API "rte_eth_dev_conf_info_get" declaration. v6: split this patch into two patches. v5: add an API to get device configuration info. v4: delete the whitespace at the end of the line. v3: - check and update the "offloads" of "port->dev_conf.rx/txmode". - update the commit log. v2: copy "rx/txmode.offloads", instead of copying the entire struct "dev->data->dev_conf.rx/txmode". Jie Wang (2): ethdev: add an API to get device configuration info app/testpmd: fix testpmd doesn't show RSS hash offload app/test-pmd/testpmd.c | 33 +++++++++++++++++++++++++++++++++ app/test-pmd/testpmd.h | 2 ++ app/test-pmd/util.c | 15 +++++++++++++++ lib/ethdev/rte_ethdev.c | 28 ++++++++++++++++++++++++++++ lib/ethdev/rte_ethdev.h | 21 +++++++++++++++++++++ lib/ethdev/version.map | 3 +++ 6 files changed, 102 insertions(+) -- 2.25.1