summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-03-19 00:46:59 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-03-28 19:55:40 (GMT)
commitba5c35e0c7e30b095636cd58b0854fdbd3c32947 (patch)
tree43f59f4c98576811e66567e06470f0d840db18ab /net/tipc
parentfc28decdc93633a65d54e42498e9e819d466329c (diff)
downloadlinux-fsl-qoriq-ba5c35e0c7e30b095636cd58b0854fdbd3c32947.tar.xz
SUNRPC: Don't return EPROTONOSUPPORT in svc_register()'s helpers
The RPC client returns -EPROTONOSUPPORT if there is a protocol version mismatch (ie the remote RPC server doesn't support the RPC protocol version sent by the client). Helpers for the svc_register() function return -EPROTONOSUPPORT if they don't recognize the passed-in IPPROTO_ value. These are two entirely different failure modes. Have the helpers return -ENOPROTOOPT instead of -EPROTONOSUPPORT. This will allow callers to determine more precisely what the underlying problem is, and decide to report or recover appropriately. This patch is part of a series that addresses http://bugzilla.kernel.org/show_bug.cgi?id=12256 Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions