From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 197A74C94 for ; Wed, 12 Sep 2018 10:29:44 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from dekelp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 12 Sep 2018 11:33:54 +0300 Received: from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx [10.128.130.87]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w8C8TdAU020025; Wed, 12 Sep 2018 11:29:39 +0300 From: Dekel Peled To: thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com, dev@dpdk.org Cc: xuemingl@mellanox.com, orika@mellanox.com Date: Wed, 12 Sep 2018 11:28:02 +0300 Message-Id: <1536740882-60426-1-git-send-email-dekelp@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1536235311-43741-1-git-send-email-dekelp@mellanox.com> References: <1536235311-43741-1-git-send-email-dekelp@mellanox.com> Subject: [dpdk-dev] [PATCH v2] ethdev: fix missing names in Tx offload name array 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: , X-List-Received-Date: Wed, 12 Sep 2018 08:29:45 -0000 Patch 5355f443 added two definitions of DEV_TX_OFFLOAD_xxx. If new Tx offload capabilities are defined, they also must be mentioned in rte_tx_offload_names in rte_ethdev.c file. This patch adds the required lines in array rte_tx_offload_names. Fixes: 5355f4439e2e ("ethdev: introduce generic IP/UDP tunnel checksum and TSO") Cc: xuemingl@mellanox.com Signed-off-by: Dekel Peled --- v2: * Discard change of comments location in file rte_ethdev.h. --- lib/librte_ethdev/rte_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 3f8de93..5004b9f 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -156,6 +156,8 @@ struct rte_eth_xstats_name_off { RTE_TX_OFFLOAD_BIT2STR(MULTI_SEGS), RTE_TX_OFFLOAD_BIT2STR(MBUF_FAST_FREE), RTE_TX_OFFLOAD_BIT2STR(SECURITY), + RTE_TX_OFFLOAD_BIT2STR(UDP_TNL_TSO), + RTE_TX_OFFLOAD_BIT2STR(IP_TNL_TSO), }; #undef RTE_TX_OFFLOAD_BIT2STR -- 1.8.3.1