Browse Source

net: use -ENOSPC for transient busy indication

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>
Gilad Ben-Yossef 7 years ago
parent
commit
068c2e7035
4 changed files with 4 additions and 4 deletions
  1. 1 1
      net/ipv4/ah4.c
  2. 1 1
      net/ipv4/esp4.c
  3. 1 1
      net/ipv6/ah6.c
  4. 1 1
      net/ipv6/esp6.c

+ 1 - 1
net/ipv4/ah4.c

@@ -240,7 +240,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb)
 		if (err == -EINPROGRESS)
 		if (err == -EINPROGRESS)
 			goto out;
 			goto out;
 
 
-		if (err == -EBUSY)
+		if (err == -ENOSPC)
 			err = NET_XMIT_DROP;
 			err = NET_XMIT_DROP;
 		goto out_free;
 		goto out_free;
 	}
 	}

+ 1 - 1
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:
 	case -EINPROGRESS:
 		goto error;
 		goto error;
 
 
-	case -EBUSY:
+	case -ENOSPC:
 		err = NET_XMIT_DROP;
 		err = NET_XMIT_DROP;
 		break;
 		break;
 
 

+ 1 - 1
net/ipv6/ah6.c

@@ -443,7 +443,7 @@ static int ah6_output(struct xfrm_state *x, struct sk_buff *skb)
 		if (err == -EINPROGRESS)
 		if (err == -EINPROGRESS)
 			goto out;
 			goto out;
 
 
-		if (err == -EBUSY)
+		if (err == -ENOSPC)
 			err = NET_XMIT_DROP;
 			err = NET_XMIT_DROP;
 		goto out_free;
 		goto out_free;
 	}
 	}

+ 1 - 1
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:
 	case -EINPROGRESS:
 		goto error;
 		goto error;
 
 
-	case -EBUSY:
+	case -ENOSPC:
 		err = NET_XMIT_DROP;
 		err = NET_XMIT_DROP;
 		break;
 		break;