From patchwork Sun Oct 15 09:19:48 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: 115862 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2528429qgn; Sun, 15 Oct 2017 02:22:05 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBzhzw7meehCC/TVrQc2zFQYQvqjlD3vL9QVgXe7AskcYpyK6D4gAcltg4nWB35b8csdE/2 X-Received: by 10.98.66.139 with SMTP id h11mr5672435pfd.174.1508059325427; Sun, 15 Oct 2017 02:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508059325; cv=none; d=google.com; s=arc-20160816; b=pKdh6bADmWfNlv3bWPKzLEs7Bu8zUywFsxLS6cAO03Kc2ersAu28qw3Z/mq/CFh+Q6 LyC19Su1I4wcxfljixV2cqiX4iHuyKFFQkVLQbvYFrPh+Bwf+BkMcK6wy6eVUysAV5OC vggwByAXY5FucRzUERJLAwSy7qSf7X272tOYDqofUk1nBpb0F3S/9z1eBtmKlm34xCvJ Yut1lA9z9hFLKx3C1MubbhJJK6ZrQWRpxFAt2Mlpwz1Y2/1V1bCkpR73ANLI89GW6+6H HXQnKcJjczFttznAX42z+YAdeCFaKTTwEjSlYv8CiWSNKGxeBwW+U3ufskE83J3+y0Wy zovw== 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=4TvaGb+kdtkThzYPVxJHcz17W5xInpRllxLiOTuiIv4=; b=KYfbyv6/02VyUT8cMr6ayeZin/0A5AHXblnhMjJNzBzMfAgtioED/B2GzN111eYz5/ ILLl452YAqaZCKzHahM6oEzLSunbrPo2FnALb6IWbSG+tD+IL1wu4HpFyY46pn3Lksoz Pzyx3KJL7aK/soDVou1ujnOFVrWmNudAnt/ITBvsYbOdLN/Xa6jVc2k6iGTN2MN+NwQg 8N1wuq2EzN4FBhSWmFo+gWt3MVN2/J2tK0W4KRCpKCxVaFznIwVkwCqJnU5aFceulJvP cH2GcyQR9dNvdSGqGk0lgL0acaS+NjuIaOPJ5CPq4vAfwlenGkrSkzWLrCyYDAgTGbFo X2xA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p86si2884699pfi.474.2017.10.15.02.22.04; Sun, 15 Oct 2017 02:22:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016AbdJOJWD (ORCPT + 27 others); Sun, 15 Oct 2017 05:22:03 -0400 Received: from foss.arm.com ([217.140.101.70]:47310 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbdJOJV6 (ORCPT ); Sun, 15 Oct 2017 05:21:58 -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 64F97165D; Sun, 15 Oct 2017 02:21:58 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 28C883F3E1; Sun, 15 Oct 2017 02:21:49 -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, Steve French , "Theodore Y. Ts'o" , Jaegeuk Kim , Steffen Klassert , Alexey Kuznetsov , Hideaki YOSHIFUJI , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" Cc: Ofir Drang , 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-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 Subject: [PATCH v9 03/20] net: use -EAGAIN for transient busy indication Date: Sun, 15 Oct 2017 10:19:48 +0100 Message-Id: <1508059209-25529-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508059209-25529-1-git-send-email-gilad@benyossef.com> References: <1508059209-25529-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.7.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;