From patchwork Tue Sep 5 12:38:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 111670 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp2782669qge; Tue, 5 Sep 2017 05:40:15 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4sFvTqnEfsQQTWFHDMNvRDu/yF4VSDnjrX/BQkrGCx6elKJisSwymsI7eRIAtYq1cgwWl7 X-Received: by 10.99.143.14 with SMTP id n14mr3906431pgd.339.1504615215406; Tue, 05 Sep 2017 05:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504615215; cv=none; d=google.com; s=arc-20160816; b=noqKXQNovcFSoS9E9162T0iN43xw+fM0w2djxJRqufYnMozXFpREXCMT46Zes5wz5v NEUhCaZv/HLA014l5VQWcXkNDI5AiihdwNNlw8Olg4h6RjD39aQ9DL/osI8Gz8DMrKA2 2Me9tTaBB18bYqM0OS9Bc2YCrCWwrJdwlwTUFY/io5olrHcJOGsSK1ZC7bZ1p8Hf0t5s 1KAgJ+Hlhl8bJ3T34gi8J0xJlEQpmSInAqN/MZ2qnzG1vAYMNCf2hfiChv0flVhfxgfb FRhldeGIbE6P0Bg+N81HzCC2mkzEhV6juvHcua5aljNNdLneXtSBbPYIaoJOeXDOLAQ/ qY6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=rECVBwVTcvYEwelGwpYfHmHc22I8S/NlkYAbjK1IAC8=; b=lazqqeTh7IggurHHmcOgljzPIaMat8+PEtSMQr4lxbY2CiWDIa5PUivadpB//Cgxp8 U806GwbJVluIPvfWmJmvlhthcxVb6+VZ/qofoa2lAScaXH5aOTGkW516GYXcS9x45MVr 60Z+B1WNv9Yw9h8J9/0KDZ3snd+Ni3mCtuFhSVph0Wu/xv99Qi16UcgWim1hfHeL8fEE rgh+mjkra2zfkv4lFPEK1MFgBTDLNYWVEOqnwdj7HemLxeXV536nk3a9k0Sm1sElxtVn mGSN2F7ZSI5fql6STjU9xz50CqfOSpDzgISRoPwp9foOiUXMGuPJ7pvod5Fg/6BH/G1g t8AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si201847pga.495.2017.09.05.05.40.15; Tue, 05 Sep 2017 05:40:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751703AbdIEMkM (ORCPT + 1 other); Tue, 5 Sep 2017 08:40:12 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39050 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbdIEMkF (ORCPT ); Tue, 5 Sep 2017 08:40:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9E457164F; Tue, 5 Sep 2017 05:40:04 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.140]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F17C3F3E1; Tue, 5 Sep 2017 05:39:54 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Jonathan Corbet , David Howells , Tom Lendacky , Gary Hook , Boris Brezillon , Arnaud Ebalard , Matthias Brugger , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li , Steve French , "Theodore Y. Ts'o" , Jaegeuk Kim , Steffen Klassert , Alexey Kuznetsov , Hideaki YOSHIFUJI , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-raid@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fscrypt@vger.kernel.org, netdev@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org Cc: Ofir Drang Subject: [PATCH v8 03/20] net: use -EAGAIN for transient busy indication Date: Tue, 5 Sep 2017 15:38:42 +0300 Message-Id: <1504615144-29770-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1504615144-29770-1-git-send-email-gilad@benyossef.com> References: <1504615144-29770-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Replace -EBUSY with -EAGAIN when handling transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef --- Please squash this patch with the previous one when merging upstream. --- net/ipv4/ah4.c | 2 +- net/ipv4/esp4.c | 2 +- net/ipv6/ah6.c | 2 +- net/ipv6/esp6.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) -- 2.1.4 diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index 37db44f..049cb0a 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c @@ -240,7 +240,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb) if (err == -EINPROGRESS) goto out; - if (err == -EBUSY) + if (err == -EAGAIN) err = NET_XMIT_DROP; goto out_free; } diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index b00e4a4..ff8e088 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -432,7 +432,7 @@ int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info * case -EINPROGRESS: goto error; - case -EBUSY: + case -EAGAIN: err = NET_XMIT_DROP; break; diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 7802b72..ba0c145 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -443,7 +443,7 @@ static int ah6_output(struct xfrm_state *x, struct sk_buff *skb) if (err == -EINPROGRESS) goto out; - if (err == -EBUSY) + if (err == -EAGAIN) err = NET_XMIT_DROP; goto out_free; } diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 89910e2..1a71ee5 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -396,7 +396,7 @@ int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info case -EINPROGRESS: goto error; - case -EBUSY: + case -EAGAIN: err = NET_XMIT_DROP; break;