tipc: Fix misleading error code when enabling Ethernet bearers
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 3 Sep 2010 08:33:42 +0000 (08:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:12:57 +0000 (18:12 -0700)
commitd1fb62796cdac6899ebd4319e4a610684db063e9
tree10cedaa8eb09b412bf229190d5c7089b8f2dd42b
parent9fbfca013176f9b90d186f3b446fd93e4d972b25
tipc: Fix misleading error code when enabling Ethernet bearers

Cause TIPC to return EAGAIN if it is unable to enable a new Ethernet
bearer because one or more recently disabled Ethernet bearers are
temporarily consuming resources during shut down.  (The previous error
code, EDQUOT, is now returned only if all available Ethernet bearer
data structures are fully enabled at the time the request to enable an
additional bearer is received.)

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/eth_media.c