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 0892FA0551; Mon, 17 Feb 2020 02:41:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 976131BF75; Mon, 17 Feb 2020 02:41:01 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 4EB3C2C4F; Mon, 17 Feb 2020 02:40:59 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2020 17:40:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,450,1574150400"; d="scan'208";a="229057596" Received: from dpdk-xiaoyunl.sh.intel.com ([10.67.110.162]) by fmsmga008.fm.intel.com with ESMTP; 16 Feb 2020 17:40:56 -0800 From: Xiaoyun Li To: xiaolong.ye@intel.com, david.marchand@redhat.com Cc: dev@dpdk.org, Xiaoyun Li , stable@dpdk.org Date: Mon, 17 Feb 2020 09:41:15 +0800 Message-Id: <20200217014115.26572-1-xiaoyun.li@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210030757.11426-1-xiaoyun.li@intel.com> References: <20200210030757.11426-1-xiaoyun.li@intel.com> Subject: [dpdk-dev] [PATCH v3] examples/tep_term: remove redundant info get 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" Removed redundant function call of 'rte_eth_dev_info_get()' since it has already been called earlier. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: stable@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_termination/vxlan_setup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/tep_termination/vxlan_setup.c b/examples/tep_termination/vxlan_setup.c index eca119a72..4b44ccc14 100644 --- a/examples/tep_termination/vxlan_setup.c +++ b/examples/tep_termination/vxlan_setup.c @@ -194,8 +194,6 @@ vxlan_port_init(uint16_t port, struct rte_mempool *mbuf_pool) ports_eth_addr[port].addr_bytes[5]); if (tso_segsz != 0) { - struct rte_eth_dev_info dev_info; - rte_eth_dev_info_get(port, &dev_info); if ((dev_info.tx_offload_capa & DEV_TX_OFFLOAD_TCP_TSO) == 0) RTE_LOG(WARNING, PORT, "hardware TSO offload is not supported\n"); -- 2.17.1