From patchwork Tue Jul 16 11:39:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slava Ovsiienko X-Patchwork-Id: 56502 X-Patchwork-Delegate: ferruh.yigit@amd.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 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 Acked-by: Bernard Iremonger --- 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