]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 37db44f60718f886388724b6f37798c852e8f7a0..4dd95cdd80703113fc2c74f8dadf9295a0a39501 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 b00e4a43b4dc8538e016f8d1c23707a1f49060a8..d57aa64fa7c7d44307e6ecf9bf401c0a8ea21b87 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 7802b72196f32efb7a838d47f7e3cc27654cbc6e..3bd9d806b506f603fcf546d054b6316b6c3ac35c 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 89910e2c10f4a63bcd285e28820141266f6d056f..c04d995df37c36f5ca2432de7392c66c52360879 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;