OSDN Git Service

net: use -ENOSPC for transient busy indication
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:35 +0000 (08:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:17 +0000 (22:11 +0800)
Replace -EBUSY with -ENOSPC when handling transient busy
indication in the absence of backlog.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv6/ah6.c
net/ipv6/esp6.c

index 37db44f..4dd95cd 100644 (file)
@@ -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 == -ENOSPC)
                        err = NET_XMIT_DROP;
                goto out_free;
        }
index b00e4a4..d57aa64 100644 (file)
@@ -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 -ENOSPC:
                err = NET_XMIT_DROP;
                break;
 
index 7802b72..3bd9d80 100644 (file)
@@ -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 == -ENOSPC)
                        err = NET_XMIT_DROP;
                goto out_free;
        }
index 89910e2..c04d995 100644 (file)
@@ -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 -ENOSPC:
                err = NET_XMIT_DROP;
                break;