]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB: userspace SRQ support
authorRoland Dreier <roland@eddore.topspincom.com>
Thu, 18 Aug 2005 19:24:13 +0000 (12:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 27 Aug 2005 03:37:37 +0000 (20:37 -0700)
commita97f8376c1e6988fb3d864af40f34d83f2aa2fd5
treeba512b75aaef8bf0c89ab4f75b80c75af5ead60c
parent98bc4d627b66cb78c524869db16d59347061d526
[PATCH] IB: userspace SRQ support

Add SRQ support to userspace verbs module.  This adds several commands
and associated structures, but it's OK to do this without bumping the
ABI version because the commands are added at the end of the list so
they don't change the existing numbering.  There are two cases to
worry about:

1. New kernel, old userspace.  This is OK because old userspace simply
   won't try to use the new SRQ commands.  None of the old commands are
   changed.

2. Old kernel, new userspace.  This works perfectly as long as
   userspace doesn't try to use SRQ commands.  If userspace tries to
   use SRQ commands, it will get EINVAL, which is perfectly
   reasonable: the kernel doesn't support SRQs, so we couldn't do any
   better.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/include/ib_user_verbs.h