From patchwork Wed Aug 8 09:45:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaroslav Brustinov X-Patchwork-Id: 43629 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE346100C; Wed, 8 Aug 2018 11:46:23 +0200 (CEST) Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) by dpdk.org (Postfix) with ESMTP id CA8BF235 for ; Wed, 8 Aug 2018 11:46:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1377; q=dns/txt; s=iport; t=1533721581; x=1534931181; h=from:to:cc:subject:date:message-id; bh=sNNpUmmAbVcucMQ9KFaR+waUXP8m8CgIsbm1NaYMpKo=; b=U4uqI/KqHudgu+5IXLFbmU3QgJErHQxcA4wKn3C/KS8Me4VTkHgbhyY/ mA0Q3MiRT6uL9Yt0ejOkdhHhA/xyRaq4aBC4jc+zxuuUmGSMaoIMxiMCL iZhXqDFjdEphCEVUGN7gH/zk3lH2nA3oPxMm0CfHLvSOMZQZ2Q/RwH07J 0=; X-IronPort-AV: E=Sophos;i="5.51,456,1526342400"; d="scan'208";a="5649790" Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 09:46:21 +0000 Received: from csi-trex-18.cisco.com (csi-trex-18.cisco.com [10.56.216.151]) (authenticated bits=0) by aer-core-2.cisco.com (8.15.2/8.15.2) with ESMTPSA id w789kA7p026844 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 8 Aug 2018 09:46:20 GMT From: Yaroslav Brustinov To: wenzhuo.lu@intel.com Cc: dev@dpdk.org, Yaroslav Brustinov Date: Wed, 8 Aug 2018 12:45:21 +0300 Message-Id: <1533721521-4835-1-git-send-email-ybrustin@cisco.com> X-Mailer: git-send-email 2.1.0 X-Authenticated-User: ybrustin@cisco.com X-Outbound-SMTP-Client: 10.56.216.151, csi-trex-18.cisco.com X-Outbound-Node: aer-core-2.cisco.com Subject: [dpdk-dev] [PATCH] net/e1000: Typos (rx_offload<->tx_offload) 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" Signed-off-by: Yaroslav Brustinov Acked-by: Qi Zhang --- drivers/net/e1000/igb_rxtx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index b955068..8aefd97 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -1452,10 +1452,10 @@ igb_reset_tx_queue(struct igb_tx_queue *txq, struct rte_eth_dev *dev) uint64_t igb_get_tx_port_offloads_capa(struct rte_eth_dev *dev) { - uint64_t rx_offload_capa; + uint64_t tx_offload_capa; RTE_SET_USED(dev); - rx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT | + tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT | DEV_TX_OFFLOAD_IPV4_CKSUM | DEV_TX_OFFLOAD_UDP_CKSUM | DEV_TX_OFFLOAD_TCP_CKSUM | @@ -1463,17 +1463,17 @@ igb_get_tx_port_offloads_capa(struct rte_eth_dev *dev) DEV_TX_OFFLOAD_TCP_TSO | DEV_TX_OFFLOAD_MULTI_SEGS; - return rx_offload_capa; + return tx_offload_capa; } uint64_t igb_get_tx_queue_offloads_capa(struct rte_eth_dev *dev) { - uint64_t rx_queue_offload_capa; + uint64_t tx_queue_offload_capa; - rx_queue_offload_capa = igb_get_tx_port_offloads_capa(dev); + tx_queue_offload_capa = igb_get_tx_port_offloads_capa(dev); - return rx_queue_offload_capa; + return tx_queue_offload_capa; } int