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 5AFA5A0512; Wed, 15 Jan 2020 10:25:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A39EC1BFB0; Wed, 15 Jan 2020 10:25:51 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 08F531BF9D for ; Wed, 15 Jan 2020 10:25:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 01:25:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,322,1574150400"; d="scan'208";a="219230060" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 15 Jan 2020 01:25:48 -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; Wed, 15 Jan 2020 01:25:48 -0800 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 01:25:48 -0800 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.56) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 01:25:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hoNzJ4XtYoWBf0oNJTcJBKA9AZXZArPZ/7hP/aTpD/gdtdsWzcdWkuJ7bZzpgZrBNNBc+/UqRjUAI4KFGWRhqzctAUvaHrm7tyXZw9pEbUIC2/FKc0j4QNxUx7gWE2izD7Ob0SEZU6YhHNj8EuCM/ggF5szHdIVTCh18O5lVXfngmJu7gljHkqrdgJNCjbZqQRR6ft/K8wvCTo/szeePqLmBzC8c1P3SHl6dwNyF7gt/FrXyPwJOePCphvskySGMEOR7QfuqdroI6hszOajwd8PKrLLSk5B3vE5h8XEz2uaYUbM+tc4BF/ffbeHBMHiObgpal5UV0NtT3QG48tnYOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LGfbbtRqmlPVUaNbH3imp82lX7Q8HtRNbUNbXS+/5eA=; b=oJQK64ST71pb6dOBiqWvETLtE6HfN8rzv8qH498eoI4mZZwcVRHcBd6mIJUEEoPqnfEhy9DwQi+wLRVEs1x8zjbI6zdtoJ7VvEQMIl5dhFd+2Lcct+SnqwTQlSKgg0qpPH6UyL6NvCMXOaQ44g+z5Ntx20bP+uqI4dXBjemFgg/OZC4ituq8g8L2IncLnuQuJyQnJ7zWMfKV88PTJs+/5AK5nlH8aLgPOgGi9tpEmZV/lRkC+I3VwkneG3RhKkvMO5D2ID3Dc0Tv1YGmSyvEzzYUY0xxdLBy/Ev+/e/kS4XEK0bC1S6DM9hGaKZp173sTt6gFgg05z2+zomxw5y2FA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LGfbbtRqmlPVUaNbH3imp82lX7Q8HtRNbUNbXS+/5eA=; b=BbbRN7WcLER0glw3hGClugrHSdRAtfoIMBbaIEaS7BK32xiEU9hGaLuUeucdUVXux3PMX37yWnntOBpb7EsskimrP6eMNZVxWM1R4I9mv3fpcn1wR++y1Vumb7RAUYuZXowu4btSH3t6jTzJM2uRZnIJlrewWiD7VViN0mJDDN0= Received: from DM6PR11MB3914.namprd11.prod.outlook.com (20.176.126.24) by DM6PR11MB3386.namprd11.prod.outlook.com (20.176.121.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18; Wed, 15 Jan 2020 09:25:33 +0000 Received: from DM6PR11MB3914.namprd11.prod.outlook.com ([fe80::29bf:9a8f:7bba:dd26]) by DM6PR11MB3914.namprd11.prod.outlook.com ([fe80::29bf:9a8f:7bba:dd26%6]) with mapi id 15.20.2644.015; Wed, 15 Jan 2020 09:25:33 +0000 From: "Iremonger, Bernard" To: "Zhang, Qi Z" , "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: AQHVyuJzuBUa/rmZt0Cdcgb94nXsOafq3VuAgACXNsA= Date: Wed, 15 Jan 2020 09:25:33 +0000 Message-ID: References: <1578669630-23866-1-git-send-email-bernard.iremonger@intel.com> <1579010128-15794-12-git-send-email-bernard.iremonger@intel.com> <039ED4275CED7440929022BC67E7061153E05036@SHSMSX105.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E7061153E05036@SHSMSX105.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzE0MDliMDYtNTExMS00OTYwLTg2NmYtYWNmZGZlOGY4MmY3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibzlQUlQrV3VvaExmTk5aeUg0Z2pCc1wvRFFIVWdxUHp4cHJ6N3RDQjBiZmRZd3IweFJXXC9ocU1ndnNrdlVoZTZpIn0= dlp-product: dlpe-windows x-ctpclassification: CTP_NT dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernard.iremonger@intel.com; x-originating-ip: [192.198.151.160] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1c1c2d69-bb3a-46fc-e64d-08d7999cdf1f x-ms-traffictypediagnostic: DM6PR11MB3386: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2201; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(376002)(366004)(136003)(39860400002)(396003)(189003)(199004)(110136005)(5660300002)(8936002)(81156014)(186003)(8676002)(71200400001)(6506007)(33656002)(86362001)(7696005)(26005)(81166006)(6636002)(64756008)(66476007)(2906002)(76116006)(66446008)(478600001)(52536014)(55016002)(9686003)(66946007)(54906003)(316002)(107886003)(4326008)(66556008); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR11MB3386; H:DM6PR11MB3914.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gYcmciV6A72ywcvOm8xLfkzlFu0B3IOjkZPX6QYXBRwOdpLUuVpA6rj5xdYMbrTxsiazJZtJGzftisNkKoygzgandKzCXO/OUJe2Vc7CbnP3AVZe+iR50gVu4YTVw611pqemfsvLeaLwd2XSsnB8ehJc7//GxqY8Y43wqgvQMJNjDkNyP4th4mRra/JtR5Xd4gvR1/oUSIM1svepLfTl+F40NYw5FA8B+xjdtptkWcKygnUIGCwr6/bYfrWiIrOBSs7m9aN7kWf/i7e17nTlO3qwH3sP0qql5HTVnJ5UkhaudcHBdHiCgbx7EE6gmfLRppXYWd73uUYxr2tS++hiCJf7pYFqrCgefESxp01qLB2+ue7zypzehBrNr4lYF5nevegpdkufdKQOatYBPiNw8ARd/nhRsoJjfCEBo5frInX1l3pGY2q2qYackKx0nSYx Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 1c1c2d69-bb3a-46fc-e64d-08d7999cdf1f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 09:25:33.2872 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZQThKaDQ3ft9MAFSszvPNDCKY7gKlLsr2aoGVlgKNKJAZ9hMWGVmFjWXJJ1ieDDn8H7rRWHvJ4MRv8Q82hd4DQPfiggXWmQmRTuhpXLL52I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3386 X-OriginatorOrg: intel.com 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" Hi Qi, > > Subject: [PATCH v5 11/14] net/i40e: display Flow Director packet > > > > 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() > > > > Signed-off-by: Bernard Iremonger > > --- > > drivers/net/i40e/i40e_fdir.c | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > 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 >=20 > Seems RTE_LIBRTE_I40E_DEBUG_FD need to be defined in > config/common_base Like RTE_LIBRTE_I40E_DEBUG_RX It is defined in config/common_base in previous patch=20 [v5,10/14] config: add debug to I40E Flow Director Maybe patches 10 and 11 should be squashed >=20 > > +#include > > +#endif > > > > #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; > > } > > > > @@ -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; > > } > > > > -- > > 2.7.4 >=20 Regards, Bernard.