From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) by dpdk.org (Postfix) with ESMTP id B33C0201; Mon, 1 Oct 2018 06:52:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3z+Sxsr3Z+MI9yg81T1lSKu7NrhWiIau23n1NOaE0E8=; b=ZfZbNM7WP+26VmK4tBDDLY0orssf5TMrCZkYWS8nf6+ef0ZbZxR8pcQgPyWeuJg6xIVbGGI5WkjGXfQ/xpyu6QYbK+tpi2Sf8VTm+R+B1+B83EHccqAkY1UlfSlPJRoxbZPlL4yOYbhuc+ly4FVpovd0DctaES3L7opccwxdoEQ= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.29) by AM6PR08MB3176.eurprd08.prod.outlook.com (52.135.164.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Mon, 1 Oct 2018 04:52:00 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::f423:e46a:a03c:e928]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::f423:e46a:a03c:e928%2]) with mapi id 15.20.1185.024; Mon, 1 Oct 2018 04:52:00 +0000 From: Honnappa Nagarahalli To: Ferruh Yigit , "dev-bounces@dpdk.org" , "dev@dpdk.org" CC: nd , "jerin.jacob@caviumnetworks.com" , "kkokkilagadda@caviumnetworks.com" , "Gavin Hu (Arm Technology China)" , Honnappa Nagarahalli Thread-Topic: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization Thread-Index: AQHUVY6+qsdY6UJtd0CoOLYugL1o96UJ1KCg Date: Mon, 1 Oct 2018 04:52:00 +0000 Message-ID: References: <1537363820-3827-1-git-send-email-phil.yang@arm.com> <1537364560-4124-1-git-send-email-phil.yang@arm.com> <1537364560-4124-2-git-send-email-phil.yang@arm.com> In-Reply-To: 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=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR08MB3176; 6:foCXWmYqG2Rt3Dpa0/xLil0Qv6/Jvj2U7ot/t9Nzncp4iiLpWxKCA3B/5Fh7uk2Cww2sutv50Lp82huib3sOhipt/HY2tM4lUVT62D5EJZCOPEBTeHBsBgV15C8zr0/ZMw2ywGYvZ/snABc+knjjFDuKd5WFbBwW5FuzgkXQPkJCBf8IOUbNng4BImFt/cK4Jjt0BPV72iaDur+82ogiOcpTClC+k2L+mW/2hr1AieLxxPK+IK5aaXaSjK4xEtY5etibf4jvmj8piHNzjCvS0OeDhNtckKRHG+WCMZDVK8QOmFggRRa+GpixvvBPVmvka0VTOUYm6LQewG39bGk1CkEsSRXtElW6ByTSmT4vPTn7YVPv4PrXQlAuSRcPd/gDFl1eTE3ryWnRPgjxPCiwN9G/M+whkzf2C3pv/3PlD3ch9wPw9rr/QCWjwpFh0hrzMXxwT9Efud5DyxpkXQc9Xw==; 5:6QYC4GZ0Moq6FtH4scHIuB7fBPkNBMtZ+lPQr2FpwfBLAyaBOKaLM254kweLXjnTwjSDOCnjGQZh0ZnFtbLKzjDxv+/g2G080spemWIU33B/7XjtwvJbzmOa5vB6tgPXL88mlYjBpp/rv1tC7yPnQPlBxgZggiIINFBaiBzjrEQ=; 7:0RDqZibzN/P6Gli72Kv1OHxEmEAXWyJm2EMAZQJ+Z8XPONi4EKzSxrBU9sDvr7a8B074PDJnBjH2xXV7kr/rbZtMKuPifPTEF8SLMGw3G/5DoyXTbHACTbLOhRWoRy8u+c4pXZb+/uKn5hztcG8Wfbydh1ABXrkGfFNPUzN65feTwKy+NFJxb1Qo3vG72FSD1+4fpTf5ojs1EPL8984Wj4+4aIT8GHjLRHLsSoTpqHQ8DCKSRvb+nO3ghiVZP2R6 x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: ae483188-a899-4c38-9416-08d627599fa4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB3176; x-ms-traffictypediagnostic: AM6PR08MB3176: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201708071742011)(7699051); SRVR:AM6PR08MB3176; BCL:0; PCL:0; RULEID:; SRVR:AM6PR08MB3176; x-forefront-prvs: 0812095267 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(396003)(366004)(39850400004)(189003)(199004)(2501003)(3846002)(486006)(6116002)(305945005)(74316002)(7736002)(54906003)(8936002)(110136005)(71200400001)(71190400001)(66066001)(14444005)(256004)(4326008)(186003)(476003)(446003)(26005)(11346002)(6246003)(6436002)(55016002)(53936002)(229853002)(6306002)(9686003)(25786009)(2900100001)(102836004)(34290500001)(14454004)(2906002)(106356001)(105586002)(72206003)(5660300001)(93886005)(478600001)(966005)(316002)(99286004)(2201001)(8676002)(53546011)(6506007)(5250100002)(81156014)(81166006)(97736004)(86362001)(68736007)(7696005)(76176011)(33656002)(564094006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3176; H:AM6PR08MB3672.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: WWNWcvN251FqKivOdn3WtRk7I3kdZRa1Op1WgjR+5DBKdV4qdR/OmYSDakHLtKQ0HnzdLbWG26S0w4y+rgRQSW6icdyy9WZR4VkYQb12hw8r+vhd0VlpdEwT/sRcqUuzoiebIE/0WP41iKc/RsvReP14Ny2cpYI6mXuXebWm3wuUc23BUaBVEQKW9mASdGcLOpGOfRs1SDjfJdrz8DEmU7LxHbUBq2hykCACoWidbtK9Rnv1h/q5A6RzqnPBtliyJN3KEiNkrgdD3rXHq1q/jpFidJWNx2VtETU1xGQD8LEhS5hn3YjUrhbblnZBApSlQzFr4S0GH1eMaGj1N6/LIRt3GDJs0ldYMNqZ75v7a1w= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae483188-a899-4c38-9416-08d627599fa4 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2018 04:52:00.2345 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3176 Subject: Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization 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: Mon, 01 Oct 2018 04:52:02 -0000 PiANCj4gT24gOS8xOS8yMDE4IDI6NDIgUE0sIGRldi1ib3VuY2VzQGRwZGsub3JnIHdyb3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