Date: Tue, 30 Oct 2007 18:59:14 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128359 for review Message-ID: <200710301859.l9UIxERi017384@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128359 Change 128359 by kmacy@kmacy_home:ethng on 2007/10/30 18:59:01 initial import of core support for in-kernel iwarp Affected files ... .. //depot/projects/ethng/src/sys/contrib/rdma/ib_addr.h#2 edit .. //depot/projects/ethng/src/sys/contrib/rdma/ib_sa.h#3 edit .. //depot/projects/ethng/src/sys/contrib/rdma/ib_umem.h#3 edit .. //depot/projects/ethng/src/sys/contrib/rdma/ib_verbs.h#6 edit .. //depot/projects/ethng/src/sys/contrib/rdma/rdma_addr.c#1 add .. //depot/projects/ethng/src/sys/contrib/rdma/rdma_cma.c#1 add .. //depot/projects/ethng/src/sys/contrib/rdma/rdma_device.c#1 add .. //depot/projects/ethng/src/sys/contrib/rdma/rdma_iwcm.c#1 add .. //depot/projects/ethng/src/sys/contrib/rdma/rdma_verbs.c#1 add .. //depot/projects/ethng/src/sys/modules/Makefile#7 edit .. //depot/projects/ethng/src/sys/modules/rdma/Makefile#1 add Differences ... ==== //depot/projects/ethng/src/sys/contrib/rdma/ib_addr.h#2 (text+ko) ==== @@ -30,15 +30,11 @@ #if !defined(IB_ADDR_H) #define IB_ADDR_H -#include <linux/in.h> -#include <linux/in6.h> -#include <linux/netdevice.h> -#include <linux/socket.h> -#include <rdma/ib_verbs.h> +#include <contrib/rdma/ib_verbs.h> struct rdma_addr_client { atomic_t refcount; - struct completion comp; + struct cv comp; }; /** ==== //depot/projects/ethng/src/sys/contrib/rdma/ib_sa.h#3 (text+ko) ==== @@ -326,10 +326,10 @@ * * If the join operation fails; status will be non-zero, with the following * failures possible: - * -ETIMEDOUT: The request timed out. - * -EIO: An error occurred sending the query. - * -EINVAL: The MCMemberRecord values differed from the existing group's. - * -ENETRESET: Indicates that an fatal error has occurred on the multicast + * ETIMEDOUT: The request timed out. + * EIO: An error occurred sending the query. + * EINVAL: The MCMemberRecord values differed from the existing group's. + * ENETRESET: Indicates that an fatal error has occurred on the multicast * group, and the user must rejoin the group to continue using it. */ struct ib_sa_multicast *ib_sa_join_multicast(struct ib_sa_client *client, ==== //depot/projects/ethng/src/sys/contrib/rdma/ib_umem.h#3 (text+ko) ==== @@ -74,7 +74,7 @@ static inline struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access) { - return ERR_PTR(-EINVAL); + return ERR_PTR(EINVAL); } static inline void ib_umem_release(struct ib_umem *umem) { } static inline int ib_umem_page_count(struct ib_umem *umem) { return 0; } ==== //depot/projects/ethng/src/sys/contrib/rdma/ib_verbs.h#6 (text+ko) ==== @@ -1072,12 +1072,12 @@ static inline int ib_copy_from_udata(void *dest, struct ib_udata *udata, size_t len) { - return copyin(udata->inbuf, dest, len) ? -EFAULT : 0; + return copyin(udata->inbuf, dest, len); } static inline int ib_copy_to_udata(struct ib_udata *udata, void *src, size_t len) { - return copyout(src, udata->outbuf, len) ? -EFAULT : 0; + return copyout(src, udata->outbuf, len); } /** @@ -1452,7 +1452,7 @@ { return cq->device->req_ncomp_notif ? cq->device->req_ncomp_notif(cq, wc_cnt) : - -ENOSYS; + ENOSYS; } /** @@ -1766,7 +1766,7 @@ /* XXX reference counting in corresponding MR? */ return mw->device->bind_mw ? mw->device->bind_mw(qp, mw, mw_bind) : - -ENOSYS; + ENOSYS; } /** ==== //depot/projects/ethng/src/sys/modules/Makefile#7 (text+ko) ==== @@ -216,6 +216,7 @@ ${_ray} \ rc \ rc4 \ + rdma \ re \ reiserfs \ rl \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710301859.l9UIxERi017384>