Received: by 10.213.65.68 with SMTP id h4csp489620imn; Sun, 25 Mar 2018 05:08:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELsg17Hmtr7XKvYjrTccwGhNOlgjqQX6wiA0QUBI2I68WJxWrdgXdolx/9kAv0Y+OjSwsWuO X-Received: by 2002:a17:902:b193:: with SMTP id s19-v6mr36719059plr.193.1521979688679; Sun, 25 Mar 2018 05:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521979688; cv=none; d=google.com; s=arc-20160816; b=UbFVIwP1ZY1JT/00AkiL24ThBYyKO+NTS7/wRYK5M1mhSq2YSKr+JwUkQSwvH3Dprl YfLb7+b6MpI8IUtvISzUBw8RfrBomMbbrMDNAKxCDbpln12wXPLdcoBLpP63EBlxJcd+ rm0bjNtqzTTbsBh3+ONveJURFwv+P6b/uBlgfTqKwfTnPlQLNlDN2naH07iXgaloadE1 PkbFTLGVa3XPJYUZokyxatymA9C18N5JqWkMHdD0+gfH4e5LHZ+ANwGxMd6hu22lV3nT EBuVMFfZX37RmuQoqZ9RUbLTmRONAL8Hg0OCZ6lXQNhphCZS/nGiL6kNGHLyEHkezr+O FEzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=hvrqN+06oTv5qX3Iqqua6IqLYSH/KuZzbFamBY7oOYU=; b=doejyfnAxcMeBqfbiLApSMrMouIUFmT0F+pbAk/819iGgv1nnFIti8YEO84AzlJopV GlRDbp1yYJ0/x4Eyzmlf/EEAo7zjYu45B+1I4zSXokRPNUoq1ZkfWb2FdH+39+6WHxiE 6a2pfMG4tsBy52BmarLPNDK073a6ZQAM1H6PoTpMsFxrshMOcJXT8QZAjHuRTiTWqZYD fq4Ubvl59u6gj2VNC3wwmis/PtpzW7jebgC3Eht7Zs9yH+RjBL8NroYO3vpq/vRxy4qp TbyM/zN9fanT1QrX94kG4LkSrT9hfh+Jn6o4ek8x3O/LL0uTUzbknpYWzl2c6FYy3nZf 2UBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=C4eArvhN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si3087061pgo.323.2018.03.25.05.07.53; Sun, 25 Mar 2018 05:08:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=C4eArvhN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753018AbeCYMHD (ORCPT + 99 others); Sun, 25 Mar 2018 08:07:03 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:7201 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbeCYMHA (ORCPT ); Sun, 25 Mar 2018 08:07:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1521979620; x=1553515620; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=hvrqN+06oTv5qX3Iqqua6IqLYSH/KuZzbFamBY7oOYU=; b=C4eArvhNp3h15TuIZilMnbshmZmn1JlJJwGR45fgG+g6HlTFTN87Ye/X xwZd5gzDdtxy2YEBZv1kqwp2GeO8hRglqJmftacKjd9bdm1BUa+kGskOA 4Wa/n7LjKKPWJh48ZGpjF8TFJmmQgHGP4iRZDyJlQMYR4D1L/7i8Maa1b M=; X-IronPort-AV: E=Sophos;i="5.48,358,1517875200"; d="scan'208";a="602463534" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-69849ee2.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Mar 2018 12:06:58 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-69849ee2.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w2PC6rC9092942 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 25 Mar 2018 12:06:57 GMT Received: from EX13D06EUA004.ant.amazon.com (10.43.165.60) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sun, 25 Mar 2018 12:06:56 +0000 Received: from EX13D06EUA003.ant.amazon.com (10.43.165.206) by EX13D06EUA004.ant.amazon.com (10.43.165.60) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sun, 25 Mar 2018 12:06:56 +0000 Received: from EX13D06EUA003.ant.amazon.com ([10.43.165.206]) by EX13D06EUA003.ant.amazon.com ([10.43.165.206]) with mapi id 15.00.1236.000; Sun, 25 Mar 2018 12:06:54 +0000 From: "Belgazal, Netanel" To: Sinan Kaya , "netdev@vger.kernel.org" , "timur@codeaurora.org" , "sulrich@codeaurora.org" , "Kiyanovski, Arthur" CC: "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Bshara, Saeed" , "Machulsky, Zorik" , "David S. Miller" , Tobias Klauser , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 17/17] net: ena: Eliminate duplicate barriers on weakly-ordered archs Thread-Topic: [PATCH v4 17/17] net: ena: Eliminate duplicate barriers on weakly-ordered archs Thread-Index: AQHTv/U+YUU+F9LXyku2npqUNw2fxqPhFecA Date: Sun, 25 Mar 2018 12:06:54 +0000 Message-ID: <7BF039D2-9E0F-45BE-9F40-8E785814C17D@amazon.com> References: <1521513753-7325-1-git-send-email-okaya@codeaurora.org> <1521513753-7325-18-git-send-email-okaya@codeaurora.org> In-Reply-To: <1521513753-7325-18-git-send-email-okaya@codeaurora.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.164.139] Content-Type: text/plain; charset="utf-8" Content-ID: <317014DDBCAEF840A2DF86ACEEE822EA@amazon.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SSB0aGluayB5b3Ugc2hvdWxkIGVpdGhlciBhZGQgYSBwYXJhbWV0ZXIgdG8gZW5hX2NvbV93cml0 ZV9zcV9kb29yYmVsbCgpIG9yIGFkZCBlbmFfY29tX3dyaXRlX3NxX2Rvb3JiZWxsX3JlbCgpLg0K UmlnaHQgbm93LCB5b3UgaGF2ZSB1bnVzZWQgZnVuY3Rpb24uDQoNCu+7v09uIDMvMjAvMTgsIDQ6 NDMgQU0sICJTaW5hbiBLYXlhIiA8b2theWFAY29kZWF1cm9yYS5vcmc+IHdyb3RlOg0KDQogICAg Q29kZSBpbmNsdWRlcyBiYXJyaWVyKCkgZm9sbG93ZWQgYnkgd3JpdGVsKCkuIHdyaXRlbCgpIGFs cmVhZHkgaGFzIGENCiAgICBiYXJyaWVyDQogICAgb24gc29tZSBhcmNoaXRlY3R1cmVzIGx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