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 B8E24A0471 for ; Tue, 16 Jul 2019 13:39:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56F993195; Tue, 16 Jul 2019 13:39:44 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 0A76A3195 for ; Tue, 16 Jul 2019 13:39:42 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from viacheslavo@mellanox.com) with ESMTPS (AES256-SHA encrypted); 16 Jul 2019 14:39:39 +0300 Received: from pegasus12.mtr.labs.mlnx. (pegasus12.mtr.labs.mlnx [10.210.17.40]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x6GBdd2o010672; Tue, 16 Jul 2019 14:39:39 +0300 From: Viacheslav Ovsiienko To: dev@dpdk.org Cc: bernard.iremonger@intel.com, stable@dpdk.org Date: Tue, 16 Jul 2019 11:39:37 +0000 Message-Id: <1563277177-6089-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] app/testpmd: fix display capabilities routine 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" The DEV_TX_OFFLOAD_MATCH_METADATA was introduced by [1], but it is not displayed by "show port [id] tx_offloads capabilities" command in testpmd. [1] http://patches.dpdk.org/patch/47265/ Fixes: 839b20be0e9b ("ethdev: support metadata as flow rule criteria") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index ba43be5..8fb18be 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -830,6 +830,14 @@ printf("off\n"); } + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MATCH_METADATA) { + printf("TX match Flow metafata: "); + if (ports[port_id].dev_conf.txmode.offloads & + DEV_TX_OFFLOAD_MATCH_METADATA) + printf("on\n"); + else + printf("off\n"); + } } int -- 1.8.3.1