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 9468FA04FD; Wed, 15 Jan 2020 01:20:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1766B1C00E; Wed, 15 Jan 2020 01:20:24 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 279071BFDC for ; Wed, 15 Jan 2020 01:20:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2020 16:20:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,320,1574150400"; d="scan'208";a="397688241" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 14 Jan 2020 16:20:21 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Jan 2020 16:20:20 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Jan 2020 16:20:20 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.28]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.197]) with mapi id 14.03.0439.000; Wed, 15 Jan 2020 08:20:17 +0800 From: "Zhang, Qi Z" To: "Iremonger, Bernard" , "dev@dpdk.org" , "Xing, Beilei" , "Doherty, Declan" CC: "Ananyev, Konstantin" , "Byrne, Stephen1" , "Zhang, Helin" Thread-Topic: [PATCH v5 11/14] net/i40e: display Flow Director packet Thread-Index: AQHVyuJibbLd8c/IWkudvLSitlvHW6fq3J2w Date: Wed, 15 Jan 2020 00:20:17 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153E05036@SHSMSX105.ccr.corp.intel.com> References: <1578669630-23866-1-git-send-email-bernard.iremonger@intel.com> <1579010128-15794-12-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1579010128-15794-12-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 11/14] net/i40e: display Flow Director packet 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" > -----Original Message----- > From: Iremonger, Bernard > Sent: Tuesday, January 14, 2020 9:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Doherty, Declan > Cc: Ananyev, Konstantin ; Byrne, Stephen1 > ; Zhang, Helin ; > Iremonger, Bernard > Subject: [PATCH v5 11/14] net/i40e: display Flow Director packet >=20 > include rte_config.h in i40e_fdir.c > In debug mode call rte_hexdump in i40e_flow_fdir_construct_pkt() and in > i40e_fdir_construct_pkt() >=20 > Signed-off-by: Bernard Iremonger > --- > drivers/net/i40e/i40e_fdir.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c = index > 5f85703..67bb28c 100644 > --- a/drivers/net/i40e/i40e_fdir.c > +++ b/drivers/net/i40e/i40e_fdir.c > @@ -21,6 +21,10 @@ > #include > #include > #include > +#include > +#ifdef RTE_LIBRTE_I40E_DEBUG_FD Seems RTE_LIBRTE_I40E_DEBUG_FD need to be defined in config/common_base Like RTE_LIBRTE_I40E_DEBUG_RX > +#include > +#endif >=20 > #include "i40e_logs.h" > #include "base/i40e_type.h" > @@ -954,7 +958,9 @@ i40e_fdir_construct_pkt(struct i40e_pf *pf, > &fdir_input->flow_ext.flexbytes[dst], > size * sizeof(uint16_t)); > } > - > +#ifdef RTE_LIBRTE_I40E_DEBUG_FD > + rte_hexdump(stdout, NULL, raw_pkt, len); #endif > return 0; > } >=20 > @@ -1415,7 +1421,9 @@ i40e_flow_fdir_construct_pkt(struct i40e_pf *pf, > &fdir_input->flow_ext.flexbytes[dst], > size * sizeof(uint16_t)); > } > - > +#ifdef RTE_LIBRTE_I40E_DEBUG_FD > + rte_hexdump(stdout, NULL, raw_pkt, len); #endif > return 0; > } >=20 > -- > 2.7.4