From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70079.outbound.protection.outlook.com [40.107.7.79]) by dpdk.org (Postfix) with ESMTP id 16D734CAB for ; Tue, 16 Oct 2018 12:10:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LaryXObOQJiIvuhtuhvKRPCozJewnK0CXRkf6Qfadi4=; b=ITAIzbKU8a1bEizZrvt7Gw7WwQwiRSVEAefXjHO4kxb/FGC+2ty6OUalyneQM5eSMsQ1eeodhqiVzff02fZT9vTcYdKK+H7C04gp/4RY9GlAr1tLYBPhq+nkpCe40PuW6sVdEiMYsXvWbBU2OCUsx9di2AttH7HcBv4ROYtgd0c= Received: from DB5PR05MB1254.eurprd05.prod.outlook.com (10.162.157.140) by DB5PR05MB1911.eurprd05.prod.outlook.com (10.166.173.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Tue, 16 Oct 2018 10:10:52 +0000 Received: from DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::19a0:ec0f:60ff:94e2]) by DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::19a0:ec0f:60ff:94e2%5]) with mapi id 15.20.1228.027; Tue, 16 Oct 2018 10:10:52 +0000 From: Raslan Darawsheh To: Ferruh Yigit , "jingjing.wu@intel.com" CC: Thomas Monjalon , "dev@dpdk.org" , Shahaf Shuler , "Xueming(Steven) Li" , Ori Kam , "jerin.jacob@caviumnetworks.com" , "david.marchand@6wind.com" , "bernard.iremonger@intel.com" Thread-Topic: [dpdk-dev] [PATCH v4 1/3] app/testpmd: move dumping packets to a separate function Thread-Index: AQHUXhCvOnf6BEKfi0qTgHyiiuRxvKUaKP8AgAeLG4A= Date: Tue, 16 Oct 2018 10:10:52 +0000 Message-ID: References: <1537793304-27883-1-git-send-email-rasland@mellanox.com> <1538897848-1693-1-git-send-email-rasland@mellanox.com> <860e6ca0-fc54-2ecf-538b-56a96fbf8176@intel.com> In-Reply-To: <860e6ca0-fc54-2ecf-538b-56a96fbf8176@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [82.213.2.186] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR05MB1911; 6:7lC7lfAy7kNiFBtzFDDOPuDAub8PNCl8wmbk4db4WkVzKCPnmacR9FnrdJ/ssh1DXYrir6i1UrmHqRMlbQxqUBs/njq7J5Qny6NIzOIIHCnVU1Su8sZOHV9FQl7i8d6j/CYeIiN9Q2HBZnv9a1t/5HUUquxK1SdoI8lwf3KiIQ39ZzfnU1qMv622Zf+qOtUAmve6D2Lsc86GQLlMEgeDY95KYp2CnRFGYr4rE7ym3LD14ocO7GdyxRWPOtnYMQ2dNHM5XqiujpPyY15YyVkdu7FR4FzAy02ZV9633nhiCBR07ljKLZsuT0+Lh5OqSSmlbC+TmL3NuVHZ4UryflXHGak0OmlnBfIgZof3+9b2Zx2GnAnB3ExXkMdnMRw294MHszCVCBaPsb8FKhHJKST0oaX84RzWX6JEj8LVZMngU7TuGl9jul1kK/SxGl6l88kMtuvTYJCwGLhZUmInufLoGzAFt+BPClwl1yldObluod0=; 5:mBgwqvdfZ2vS4TV/eNBoWFaJkm9bSPDv5Sb/+OIbEzEfBtQe3JAbreFtY9VecfPpIfj2cPwvewuS2QXOFsCWCo6vEgu4BQUDrV5NYvnq1vBylH/jOQFC42mS1TX2Pn9+YXBHvhJtZa7c5lif27cSzvdE1JOO/iVeaozW2Y61KBA=; 7:t7FngtV9M/qt+H5gwXCjY+E/gb3VdErIsxhn7RLjp7GSgd8GkftlgQfb0UFUbOWyAFv7+aIHPppZNcMs0KpzZTu4xmGVZK6WJLbdUCEeGDEw257f5oxHbacU3dxJUIvbXU2q/eij0M80Cln8sBKpSBUHRxL4mjNz+DiEhJNLox+Dx7bpq7pBjmhdPaf4uYAcRVgMaAi1hlQ+WPXA5KByjj+pwTvMll32xpp1pVQA+wd72LXAvIuewBrW9cDSBk8b x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: f046ef65-f514-4532-9958-08d6334fa785 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB5PR05MB1911; x-ms-traffictypediagnostic: DB5PR05MB1911: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:DB5PR05MB1911; BCL:0; PCL:0; RULEID:; SRVR:DB5PR05MB1911; x-forefront-prvs: 0827D7ACB9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(136003)(396003)(199004)(189003)(13464003)(6246003)(66066001)(5660300001)(8936002)(2900100001)(53936002)(25786009)(106356001)(26005)(54906003)(110136005)(14444005)(256004)(6436002)(3846002)(486006)(71190400001)(14454004)(6116002)(2906002)(229853002)(68736007)(8676002)(476003)(446003)(11346002)(2501003)(5250100002)(478600001)(102836004)(97736004)(7736002)(71200400001)(81156014)(86362001)(9686003)(316002)(305945005)(81166006)(74316002)(76176011)(4326008)(7696005)(105586002)(186003)(99286004)(6506007)(53546011)(33656002)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR05MB1911; H:DB5PR05MB1254.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: c0s3wQOKzWMttVI7MLNV0wuK0rPlCOtC9Oe/kJsdjlD7EOxR1N7i0T0zz4aA/lGGy2Qdtuc4JmBSkAfeQYxWU/Hkwg+OxI6geKGmmxgPh8eEthbHrNtrMYNw20fHF0nxBgsXOoFBzte/MepPKLY87TaCx7rPRrjvVsK80aq6mvIs1Ac+4sH7SIFDYeI5NlwEBiAw4HpHDbPOutifyEopvItTufaTh88rEP6eyfCImuk985K5v0WnoZ5nCRAN4aHE7PZpTHtT2Fqb2KQ1fdhQU4JnyeDMcpvykJJaSN92MwI0N5eG3yTHT2CGq0QXU88PNMajPRa/ZpzZZzpxU/cXPgarM0zf+HZeRYXjTOvVX2c= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: f046ef65-f514-4532-9958-08d6334fa785 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2018 10:10:52.3924 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1911 Subject: Re: [dpdk-dev] [PATCH v4 1/3] app/testpmd: move dumping packets to a separate function 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: Tue, 16 Oct 2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