Broadcom User Space RoCE Driver
v2 cover Broadcom User Space RoCE Driver
This series introduces the user space RoCE driver for the Broadcom NetXtreme-E 10/25/40/50 RDMA Ethernet Controller. This driver is dependent on the bnxt_re driver posted earlier to linux-rdma community and is under reveiw.
This patch series is based on the latest master of rdma-core repository hosted at https://github.com/linux-rdma/rdma-core.git
The GIT for this library is hosted at following URL on github
https://github.com/dsharma283/bnxtre-rdma-core.git
branch: bnxtre-v2
Please review and give your valuable feedback for the betterment.
v1->v2
-- Rename directory from bnxtre to bnxt_re
-- Squashed byte-order conversion patch
-- Removed version.h file
Devesh Sharma (9):
libbnxt_re: introduce bnxtre user space RDMA provider
libbnxt_re: Add support for user memory regions
libbnxt_re: Add support for CQ and QP management
libbnxt_re: Add support for posting and polling
libbnxt_re: Allow apps to poll for flushed completions
libbnxt_re: Enable UD control path and wqe posting
libbnxt_re: Enable polling for UD completions
libbnxt_re: Add support for atomic operations
libbnxt_re: Add support for SRQ in user lib
CMakeLists.txt | 1 + MAINTAINERS | 5 + providers/bnxt_re/CMakeLists.txt | 6 + providers/bnxt_re/bnxt_re-abi.h | 375 +++++++++ providers/bnxt_re/db.c | 108 +++ providers/bnxt_re/flush.h | 85 ++ providers/bnxt_re/main.c | 215 ++++++ providers/bnxt_re/main.h | 398 ++++++++++ providers/bnxt_re/memory.c | 76 ++ providers/bnxt_re/memory.h | 154 ++++ providers/bnxt_re/verbs.c | 1591 ++++++++++++++++++++++++++++++++++++++ providers/bnxt_re/verbs.h | 101 +++ 12 files changed, 3115 insertions(+) create mode 100644 providers/bnxt_re/CMakeLists.txt create mode 100644 providers/bnxt_re/bnxt_re-abi.h create mode 100644 providers/bnxt_re/db.c create mode 100644 providers/bnxt_re/flush.h create mode 100644 providers/bnxt_re/main.c create mode 100644 providers/bnxt_re/main.h create mode 100644 providers/bnxt_re/memory.c create mode 100644 providers/bnxt_re/memory.h create mode 100644 providers/bnxt_re/verbs.c create mode 100644 providers/bnxt_re/verbs.h
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1487432638-19607-1-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/[email protected]
PATCH v2 1/9 libbnxt_re: introduce bnxtre user space RDMA provider
libnxtre is a user-space driver which provides RDMA capability to user applications. The current framework has following parts working:
-Basic Cmake framework to build and install the library. -Register and unregister user-space driver with uverbs
interface.
-List all available bnxt_re devices using "ibv_devinfo"
admin command.
-List all the device and port attributes using
"ibv_devinfo" admin command.
-Support allocate/free of protection domains. -Check ABI version between library and kernel module. -Update MAINTAINERS file
v1->v2:
--Deleted bnxtre.driver file
--Dropped HAVE_CONFIG_H macro and cna_table declaration --Renamed abi.h to bnxt_re-abi.h
--- CMakeLists.txt | 1 + MAINTAINERS | 5 + providers/bnxt_re/CMakeLists.txt | 4 + providers/bnxt_re/bnxt_re-abi.h | 59 ++++++++++ providers/bnxt_re/main.c | 187 ++++++++++++++++++++++++++++++ providers/bnxt_re/main.h | 110 ++++++++++++++++++ providers/bnxt_re/verbs.c | 242 +++++++++++++++++++++++++++++++++++++++ providers/bnxt_re/verbs.h | 101 ++++++++++++++++ 8 files changed, 709 insertions(+) create mode 100644 providers/bnxt_re/CMakeLists.txt create mode 100644 providers/bnxt_re/bnxt_re-abi.h create mode 100644 providers/bnxt_re/main.c create mode 100644 providers/bnxt_re/main.h create mode 100644 providers/bnxt_re/verbs.c create mode 100644 providers/bnxt_re/verbs.h
CMakeLists.txt +1 -0
@@ -371,6 +371,7 @@ add_subdirectory(libibcm) # Providers if (HAVE_COHERENT_DMA) +add_subdirectory(providers/bnxt_re) add_subdirectory(providers/cxgb3) add_subdirectory(providers/cxgb4) add_subdirectory(providers/hns)
MAINTAINERS +5 -0
@@ -40,6 +40,11 @@ F: */CMakeLists.txt F: */lib*.map F: buildlib/ +BNXT_RE USERSPACE PROVIDER (for bnxt_re.ko) +M: Devesh Sharma <Devesh.sharma-dY08KVG/lbpWk0Htik3J/[email protected]> +S: Supported +F: providers/bnxt_re/ + CXGB3 USERSPACE PROVIDER (for iw_cxgb3.ko) M: Steve Wise <[email protected]> S: Supported
providers/bnxt_re/CMakeLists.txt new file +4 -0
@@ -0,0 +1,4 @@ +rdma_provider(bnxt_re + main.c + verbs.c +)
providers/bnxt_re/bnxt_re-abi.h new file +59 -0
59 lines not on this page · raw message
providers/bnxt_re/main.c new file +187 -0
187 lines not on this page · raw message
providers/bnxt_re/main.h new file +110 -0
110 lines not on this page · raw message
providers/bnxt_re/verbs.c new file +242 -0
242 lines not on this page · raw message
providers/bnxt_re/verbs.h new file +101 -0
101 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 2/9 libbnxt_re: Add support for user memory regions
In reply to a message not in the archiveThis patch adds code to allow user applications to register and unregister memory buffers with the HCA. Following functions are now supported:
- ibv_reg_mr()
- ibv_dereg_mr()
--- providers/bnxt_re/bnxt_re-abi.h | 4 ++++ providers/bnxt_re/verbs.c | 26 ++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-)
providers/bnxt_re/bnxt_re-abi.h +4 -0
@@ -56,4 +56,8 @@ struct bnxt_re_pd_resp { __u64 dbr; }; +struct bnxt_re_mr_resp { +struct ibv_reg_mr_resp resp; +}; +#endif
providers/bnxt_re/verbs.c +24 -2
@@ -129,12 +129,34 @@ int bnxt_re_free_pd(struct ibv_pd *ibvpd)struct ibv_mr *bnxt_re_reg_mr (struct ibv_pd *ibvpd,void *sva,size_t len,int access) { -return NULL ; +struct bnxt_re_mr *mr; +struct ibv_reg_mr cmd; +struct bnxt_re_mr_resp resp; + + mr =calloc (1 ,sizeof (*mr)); +if (!mr) +return NULL ; + +if (ibv_cmd_reg_mr (ibvpd, sva, len, (uint64_t )sva, access, &mr->ibvmr, + &cmd,sizeof (cmd), &resp.resp,sizeof (resp))) { +free (mr); +return NULL ; + } + +return &mr->ibvmr; }int bnxt_re_dereg_mr (struct ibv_mr *ibvmr) { -return -ENOSYS ; +struct bnxt_re_mr *mr = (struct bnxt_re_mr *)ibvmr; +int status; + + status =ibv_cmd_dereg_mr (ibvmr); +if (status) +return status; +free (mr); + +return 0 ; } struct ibv_cq *bnxt_re_create_cq(struct ibv_context *ibvctx, int ncqe,
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 3/9 libbnxt_re: Add support for CQ and QP management
In reply to a message not in the archiveThis patch adds support for completion queue creation and destruction following are the changes:
- Added User/Kernel ABI to communicate CQ specific parameters.
- Added a function in a new file to allocate Page-Aligned address space.
- Added a function to free page-aligned address space.
- Added function to create and destroy completion queue.
- Add ABI to for QP creation and WQE/RQE format.
- Add functions to allocate SQ, RQ and Search PSN address space.
- Add functions to store/clean qp-handles in the form of a linear table. There is table maintained in every instance of ucontext.
- CQ and QP contexts now hold a pointer to the DPI mapped during PD allocation.
- Removed hard-coding of page size during mapping DB page.
- Renamed a variable in PD code.
- Add support for create-qp.
- Add support for destroy-qp.
- Add support for modify-qp.
- Add support for query-qp.
v1->v2
-- Sorted file list
-- Removed inline functions from ahi.h
--- providers/bnxt_re/CMakeLists.txt | 1 + providers/bnxt_re/bnxt_re-abi.h | 113 +++++++++++++++++++ providers/bnxt_re/main.c | 5 + providers/bnxt_re/main.h | 73 ++++++++++-- providers/bnxt_re/memory.c | 76 +++++++++++++ providers/bnxt_re/memory.h | 76 +++++++++++++ providers/bnxt_re/verbs.c | 236 ++++++++++++++++++++++++++++++++++++++- 7 files changed, 562 insertions(+), 18 deletions(-) create mode 100644 providers/bnxt_re/memory.c create mode 100644 providers/bnxt_re/memory.h
providers/bnxt_re/CMakeLists.txt +1 -0
@@ -1,4 +1,5 @@ rdma_provider(bnxt_re main.c + memory.c verbs.c )
providers/bnxt_re/bnxt_re-abi.h +113 -0
123 lines not on this page · raw message
providers/bnxt_re/main.c +5 -0
@@ -110,8 +110,10 @@ static int bnxt_re_init_context(struct verbs_device *vdev, {struct ibv_get_context cmd;struct bnxt_re_cntx_resp resp; +struct bnxt_re_dev *dev;struct bnxt_re_context *cntx; + dev =to_bnxt_re_dev (&vdev->device); cntx =to_bnxt_re_context (ibvctx);memset (&resp,0 ,sizeof (resp));
@@ -122,6 +124,9 @@ static int bnxt_re_init_context(struct verbs_device *vdev, cntx->dev_id = resp.dev_id; cntx->max_qp = resp.max_qp; + dev->pg_size = resp.pg_size; + dev->cqe_size = resp.cqe_size; + dev->max_cq_depth = resp.max_cqd; ibvctx->ops = bnxt_re_cntx_ops;return 0 ;
providers/bnxt_re/main.h +61 -12
102 lines not on this page · raw message
providers/bnxt_re/memory.c new file +76 -0
76 lines not on this page · raw message
providers/bnxt_re/memory.h new file +76 -0
76 lines not on this page · raw message
providers/bnxt_re/verbs.c +230 -6
296 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 4/9 libbnxt_re: Add support for posting and polling
In reply to a message not in the archiveThis patch adds code to support ibv_post_recv(), ibv_post_send(), ibv_poll_cq() and ibv_arm_cq() routines. With this patch applications are able to enqueue RQE or WQE ring doorbells and poll for completions from CQ. Currently, this code do not support SRQ, UD service and and flush completions. Following are the major changes:
- Added most of the enums to handle device specific opcodes, masks, shifts and data structures.
- Added a new file to define DB related routines.
- Added routines to handle circular queue operations.
- Added enums and few utility functions.
- Added bnxt_re_post_recv().
- Add code to build and post SQEs for RDMA-WRITE, RDMA-READ, SEND through bnxt_re_post_send() routine.
- Fixed couple of bugs in create-qp and modify-qp.
- bnxt_re_create_qp() now check the limits.
- Add polling support for RC send completions.
- Add polling support for RC Recv completions.
- Add support to ARM completion queue.
- Cleanup CQ while QP is being destroyed.
- Add utility functions to convert chip specific completion codes to IB stack specific codes.
v1->v2
-- Delete redefinition of "true" and "false" -- Removed unwanted wmb()
-- Removed dead code and fixed return type mismatch.
--- providers/bnxt_re/CMakeLists.txt | 1 + providers/bnxt_re/bnxt_re-abi.h | 174 +++++++++- providers/bnxt_re/db.c | 90 ++++++ providers/bnxt_re/main.c | 1 + providers/bnxt_re/main.h | 199 +++++++++++- providers/bnxt_re/memory.h | 63 ++++ providers/bnxt_re/verbs.c | 665 ++++++++++++++++++++++++++++++++++++--- 7 files changed, 1152 insertions(+), 41 deletions(-) create mode 100644 providers/bnxt_re/db.c
providers/bnxt_re/CMakeLists.txt +1 -0
@@ -1,4 +1,5 @@ rdma_provider(bnxt_re + db.c main.c memory.c verbs.c
providers/bnxt_re/bnxt_re-abi.h +172 -2
196 lines not on this page · raw message
providers/bnxt_re/db.c new file +90 -0
90 lines not on this page · raw message
providers/bnxt_re/main.c +1 -0
@@ -105,6 +105,7 @@ static struct ibv_context_ops bnxt_re_cntx_ops = { .destroy_ah = bnxt_re_destroy_ah }; +/* Context Init functions */ static int bnxt_re_init_context (struct verbs_device *vdev,struct ibv_context *ibvctx,int cmd_fd) {
providers/bnxt_re/main.h +195 -4
240 lines not on this page · raw message
providers/bnxt_re/memory.h +63 -0
67 lines not on this page · raw message
providers/bnxt_re/verbs.c +630 -35
752 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 5/9 libbnxt_re: Allow apps to poll for flushed completions
In reply to a message not in the archiveThis patch adds support for reporting flush completions. following is the overview of the algorithm used.
Step-1: Poll a completion from h/w CQ.
Step-2: check the status, if it is error goto step3 else report
completion to user based on the con_idx reported.
Step-3: Report the completion with actual error to consumer, and
without bothering about the con_idx reported in the completion do following:
3a. Add this QP to the CQ flush list if it was not there
already. If this is req-error, add the QP to send-flush list, else add it to recv-flush-list.
3b. Change QP-soft-state to ERROR if it was not in error
already.
Step-4: If next CQE is TERM CQE, extract this CQE. make sure this CQE
is not reported to the consumer. Do the following steps as further processing:
4a. Add this QP to both send-flush-list and recv-flush-list
if QP is absent from any of the flush lists.
4b. Change QP-soft-state to ERROR if it was not in error
already.
Step5: Continue polling from both h/w CQ and flush-lists until
all the queues are empty.
The QP is removed from the flush list during destroy-qp.
Further, it adds network to host format conversion on the received immediate data.
This patch also takes care of Hardware specific requirement to skip reporting h/w flush error CQEs to consumer but ring the CQ-DB for them.
v1->v2
-- Used ccan/list.h instead.
--- providers/bnxt_re/flush.h | 85 ++++++++++++++++ providers/bnxt_re/main.c | 5 + providers/bnxt_re/main.h | 6 ++ providers/bnxt_re/memory.h | 5 + providers/bnxt_re/verbs.c | 243 ++++++++++++++++++++++++++++++++++++++++----- 5 files changed, 320 insertions(+), 24 deletions(-) create mode 100644 providers/bnxt_re/flush.h
providers/bnxt_re/flush.h new file +85 -0
@@ -0,0 +1,85 @@ +/* +* Broadcom NetXtreme-E User Space RoCE driver +* +* Copyright (c) 2015-2017, Broadcom. All rights reserved. The term +* Broadcom refers to Broadcom Limited and/or its subsidiaries. +* +* This software is available to you under a choice of one of two +* licenses. You may choose to be licensed under the terms of the GNU +* General Public License (GPL) Version 2, available from the file +* COPYING in the main directory of this source tree, or the +* BSD license below: +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions +* are met: +* +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in +* the documentation and/or other materials provided with the +* distribution. +* +* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS +* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* Description: A few wrappers for flush queue management +*/ + +#ifndef __FLUSH_H__ +#define __FLUSH_H__ + +#include <ccan/list.h> + +struct bnxt_re_fque_node { +uint8_t valid; +struct list_node list; +}; + +static inline void fque_init_node (struct bnxt_re_fque_node *node) +{ +list_node_init (&node->list); + node->valid = false; +} + +static inline void fque_add_node_tail (struct list_head *head, +struct bnxt_re_fque_node *new) +{ +list_add_tail (head, &new->list); + new->valid = true; +} + +static inline void fque_del_node (struct bnxt_re_fque_node *entry) +{ + entry->valid = false; +list_del (&entry->list); +} + +static inline uint8_t _fque_node_valid (struct bnxt_re_fque_node *node) +{ +return node->valid; +} + +static inline void bnxt_re_fque_add_node (struct list_head *head, +struct bnxt_re_fque_node *node) +{ +if (!_fque_node_valid (node)) +fque_add_node_tail (head, node); +} + +static inline void bnxt_re_fque_del_node (struct bnxt_re_fque_node *node) +{ +if (_fque_node_valid (node)) +fque_del_node (node); +} +#endif /* __FLUSH_H__ */
providers/bnxt_re/main.c +5 -0
@@ -128,6 +128,7 @@ static int bnxt_re_init_context(struct verbs_device *vdev, dev->pg_size = resp.pg_size; dev->cqe_size = resp.cqe_size; dev->max_cq_depth = resp.max_cqd; +pthread_spin_init (&cntx->fqlock,PTHREAD_PROCESS_PRIVATE ); ibvctx->ops = bnxt_re_cntx_ops;return 0 ;
@@ -136,7 +137,11 @@ static int bnxt_re_init_context(struct verbs_device *vdev,static void bnxt_re_uninit_context (struct verbs_device *vdev,struct ibv_context *ibvctx) { +struct bnxt_re_context *cntx; + + cntx =to_bnxt_re_context (ibvctx);/* Unmap if anything device specific was mapped in init_context. */ +pthread_spin_destroy (&cntx->fqlock); } static struct verbs_device *bnxt_re_driver_init(const char *uverbs_sys_path,
providers/bnxt_re/main.h +6 -0
@@ -50,6 +50,7 @@#include "bnxt_re-abi.h" #include "memory.h" +#include "flush.h" #define DEV "bnxtre : "
@@ -69,6 +70,8 @@ struct bnxt_re_cq {uint32_t cqid;struct bnxt_re_queue cqq;struct bnxt_re_dpi *udpi; +struct list_head sfhead; +struct list_head rfhead;uint32_t cqe_size;uint8_t phase; };
@@ -104,6 +107,8 @@ struct bnxt_re_qp {struct bnxt_re_cq *rcq;struct bnxt_re_dpi *udpi;struct bnxt_re_qpcap cap; +struct bnxt_re_fque_node snode; +struct bnxt_re_fque_node rnode;uint32_t qpid;uint32_t tbl_indx;uint32_t sq_psn;
@@ -133,6 +138,7 @@ struct bnxt_re_context {uint32_t max_qp;uint32_t max_srq;struct bnxt_re_dpi udpi; +pthread_spinlock_t fqlock; };/* DB ring functions used internally*/
providers/bnxt_re/memory.h +5 -0
@@ -89,6 +89,11 @@ static inline uint32_t bnxt_re_is_que_full(struct bnxt_re_queue *que)return (((que->tail +1 ) & (que->depth -1 )) == que->head); } +static inline uint32_t bnxt_re_is_que_empty (struct bnxt_re_queue *que) +{ +return que->tail == que->head; +} +static inline uint32_t bnxt_re_incr (uint32_t val,uint32_t max) {return (++val & (max -1 ));
providers/bnxt_re/verbs.c +219 -24
316 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 6/9 libbnxt_re: Enable UD control path and wqe posting
In reply to a message not in the archiveThis patch adds infrastructure needed to enable unreliable datagram control path. It also adds support to allow posting Send WQEs to UD QPs. Following are the major changes:
- Mmap the shared page exported from kernel driver to read AH-ID from kernel space.
- Adds support to create-AH and destroy-AH.
- Add support to allow posting UD WQEs.
- Do not use search-psn memory for UD QPs.
v1->v2
--Removed extra ref of PD in ah structure
--- providers/bnxt_re/bnxt_re-abi.h | 7 ++++ providers/bnxt_re/main.c | 17 ++++++++ providers/bnxt_re/main.h | 12 ++++++ providers/bnxt_re/verbs.c | 93 ++++++++++++++++++++++++++++++++++------- 4 files changed, 114 insertions(+), 15 deletions(-)
providers/bnxt_re/bnxt_re-abi.h +7 -0
@@ -174,6 +174,13 @@ enum bnxt_re_ud_flags_mask {BNXT_RE_UD_FLAGS_ROCE_IPV6 =0x03 }; +enum bnxt_re_shpg_offt { +BNXT_RE_SHPG_BEG_RESV_OFFT =0x00 , +BNXT_RE_SHPG_AVID_OFFT =0x10 , +BNXT_RE_SHPG_AVID_SIZE =0x04 , +BNXT_RE_SHPG_END_RESV_OFFT =0xFF0 +}; +struct bnxt_re_db_hdr {__u32 indx;__u32 typ_qid;/* typ: 4, qid:20*/
providers/bnxt_re/main.c +17 -0
@@ -129,18 +129,35 @@ static int bnxt_re_init_context(struct verbs_device *vdev, dev->cqe_size = resp.cqe_size; dev->max_cq_depth = resp.max_cqd;pthread_spin_init (&cntx->fqlock,PTHREAD_PROCESS_PRIVATE ); +/* mmap shared page. */ + cntx->shpg =mmap (NULL , dev->pg_size,PROT_READ |PROT_WRITE , +MAP_SHARED , cmd_fd,0 ); +if (cntx->shpg ==MAP_FAILED ) { + cntx->shpg =NULL ; + goto failed; + } +pthread_mutex_init (&cntx->shlock,NULL ); + ibvctx->ops = bnxt_re_cntx_ops;return 0 ; +failed: +fprintf (stderr,DEV "Failed to allocate context for device\n" ); +return errno; }static void bnxt_re_uninit_context (struct verbs_device *vdev,struct ibv_context *ibvctx) { +struct bnxt_re_dev *dev;struct bnxt_re_context *cntx; + dev =to_bnxt_re_dev (&vdev->device); cntx =to_bnxt_re_context (ibvctx);/* Unmap if anything device specific was mapped in init_context. */ +pthread_mutex_destroy (&cntx->shlock); +if (cntx->shpg) +munmap (cntx->shpg, dev->pg_size);pthread_spin_destroy (&cntx->fqlock); }
providers/bnxt_re/main.h +12 -0
@@ -123,6 +123,11 @@ struct bnxt_re_mr {struct ibv_mr ibvmr; }; +struct bnxt_re_ah { +struct ibv_ah ibvah; +uint32_t avid; +}; +struct bnxt_re_dev {struct verbs_device vdev;uint8_t abi_version;
@@ -138,6 +143,8 @@ struct bnxt_re_context {uint32_t max_qp;uint32_t max_srq;struct bnxt_re_dpi udpi; +void *shpg; +pthread_mutex_t shlock;pthread_spinlock_t fqlock; };
@@ -175,6 +182,11 @@ static inline struct bnxt_re_qp *to_bnxt_re_qp(struct ibv_qp *ibvqp) return container_of(ibvqp, struct bnxt_re_qp, ibvqp); } +static inline struct bnxt_re_ah *to_bnxt_re_ah (struct ibv_ah *ibvah) +{ + return container_of(ibvah, struct bnxt_re_ah, ibvah); +} +static inline uint32_t bnxt_re_get_sqe_sz (void ) { return sizeof(struct bnxt_re_bsqe) +
providers/bnxt_re/verbs.c +78 -15
136 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 7/9 libbnxt_re: Enable polling for UD completions
In reply to a message not in the archiveThis patch adds support to allow polling of send
and recv completions for a UD qp.
--- providers/bnxt_re/bnxt_re-abi.h | 6 ++++++ providers/bnxt_re/verbs.c | 43 +++++++++++++++++++++++++++-------------- 2 files changed, 35 insertions(+), 14 deletions(-)
providers/bnxt_re/bnxt_re-abi.h +6 -0
@@ -174,6 +174,12 @@ enum bnxt_re_ud_flags_mask {BNXT_RE_UD_FLAGS_ROCE_IPV6 =0x03 }; +enum bnxt_re_ud_cqe_mask { +BNXT_RE_UD_CQE_MAC_MASK =0xFFFFFFFFFFFFULL , +BNXT_RE_UD_CQE_SRCQPLO_MASK =0xFFFF , +BNXT_RE_UD_CQE_SRCQPLO_SHIFT =0x30 +}; +enum bnxt_re_shpg_offt {BNXT_RE_SHPG_BEG_RESV_OFFT =0x00 ,BNXT_RE_SHPG_AVID_OFFT =0x10 ,
providers/bnxt_re/verbs.c +29 -14
102 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 8/9 libbnxt_re: Add support for atomic operations
In reply to a message not in the archiveThis patch adds support for compare-and-swap and fetch-and-add atomic operations in user library.
v1->v2
-- Fixed the missing "break"
-- Changed macros to inline function
--- providers/bnxt_re/bnxt_re-abi.h | 3 ++- providers/bnxt_re/main.h | 8 +++++- providers/bnxt_re/memory.h | 10 +++++++ providers/bnxt_re/verbs.c | 58 +++++++++++++++++++++++++++++++++++------ 4 files changed, 69 insertions(+), 10 deletions(-)
providers/bnxt_re/bnxt_re-abi.h +2 -1
@@ -54,7 +54,8 @@ enum bnxt_re_wr_opcode {BNXT_RE_WR_OPCD_ATOMIC_FA =0x0B ,BNXT_RE_WR_OPCD_LOC_INVAL =0x0C ,BNXT_RE_WR_OPCD_BIND =0x0E , -BNXT_RE_WR_OPCD_RECV =0x80 +BNXT_RE_WR_OPCD_RECV =0x80 , +BNXT_RE_WR_OPCD_INVAL =0xFF }; enum bnxt_re_wr_flags {
providers/bnxt_re/main.h +7 -1
@@ -236,9 +236,15 @@ static inline uint8_t bnxt_re_ibv_to_bnxt_wr_opcd(uint8_t ibv_opcd)case IBV_WR_RDMA_READ : bnxt_opcd =BNXT_RE_WR_OPCD_RDMA_READ ;break ; +case IBV_WR_ATOMIC_CMP_AND_SWP : + bnxt_opcd =BNXT_RE_WR_OPCD_ATOMIC_CS ; +break ; +case IBV_WR_ATOMIC_FETCH_AND_ADD : + bnxt_opcd =BNXT_RE_WR_OPCD_ATOMIC_FA ; +break ;/* TODO: Add other opcodes */ default : - bnxt_opcd =0xFF ; + bnxt_opcd =BNXT_RE_WR_OPCD_INVAL ;break ; };
providers/bnxt_re/memory.h +10 -0
@@ -83,6 +83,16 @@ static inline void iowrite32(__u32 *dst, uint32_t *src) *(volatile __u32 *)dst = *src; } +static inline __u32 upper_32_bits (uint64_t n) +{ +return (__u32)((n >>16 ) >>16 ); +} + +static inline __u32 lower_32_bits (uint64_t n) +{ +return (__u32)(n &0xFFFFFFFFUL ); +} +/* Basic queue operation */ static inline uint32_t bnxt_re_is_que_full (struct bnxt_re_queue *que) {
providers/bnxt_re/verbs.c +50 -8
89 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 9/9 libbnxt_re: Add support for SRQ in user lib
In reply to a message not in the archiveThis patch adds support for shared receive
queue. Following are the changes:
- Add ABI for user/kernel information exchange.
- Add function to handle SRQ ARMing and DB-ring.
- Add function to create/destroy SRQ.
- Add function to query/modify SRQ.
- Add function to post RQE on a SRQ.
--- providers/bnxt_re/bnxt_re-abi.h | 15 +++ providers/bnxt_re/db.c | 18 +++ providers/bnxt_re/main.h | 32 ++++- providers/bnxt_re/verbs.c | 261 ++++++++++++++++++++++++++++++++++------ 4 files changed, 288 insertions(+), 38 deletions(-)
providers/bnxt_re/bnxt_re-abi.h +15 -0
@@ -214,6 +214,7 @@ struct bnxt_re_mr_resp {struct ibv_reg_mr_resp resp; }; +/* CQ */ struct bnxt_re_cq_req {struct ibv_create_cq cmd;__u64 cq_va;
@@ -261,6 +262,7 @@ struct bnxt_re_term_cqe {__u64 rsvd1; }; +/* QP */ struct bnxt_re_qp_req {struct ibv_create_qp cmd;__u64 qpsva;
@@ -352,6 +354,19 @@ struct bnxt_re_rqe {__u64 rsvd[2 ]; }; +/* SRQ */ +struct bnxt_re_srq_req { +struct ibv_create_srq cmd; +__u64 srqva; +__u64 srq_handle; +}; + +struct bnxt_re_srq_resp { +struct ibv_create_srq_resp resp; +__u32 srqid; +__u32 rsvd; +}; +struct bnxt_re_srqe {__u32 srq_tag;/* 20 bits are valid */ __u32 rsvd1;
providers/bnxt_re/db.c +18 -0
@@ -73,6 +73,24 @@ void bnxt_re_ring_sq_db(struct bnxt_re_qp *qp)bnxt_re_ring_db (qp->udpi, &hdr); } +void bnxt_re_ring_srq_db (struct bnxt_re_srq *srq) +{ +struct bnxt_re_db_hdr hdr; + +bnxt_re_init_db_hdr (&hdr, srq->srqq->tail, srq->srqid, +BNXT_RE_QUE_TYPE_SRQ ); +bnxt_re_ring_db (srq->udpi, &hdr); +} + +void bnxt_re_ring_srq_arm (struct bnxt_re_srq *srq) +{ +struct bnxt_re_db_hdr hdr; + +bnxt_re_init_db_hdr (&hdr, srq->cap.srq_limit, srq->srqid, +BNXT_RE_QUE_TYPE_SRQ_ARM ); +bnxt_re_ring_db (srq->udpi, &hdr); +} +void bnxt_re_ring_cq_db (struct bnxt_re_cq *cq) {struct bnxt_re_db_hdr hdr;
providers/bnxt_re/main.h +28 -4
@@ -76,10 +76,6 @@ struct bnxt_re_cq {uint8_t phase; }; -struct bnxt_re_srq { -struct ibv_srq ibvsrq; -}; -struct bnxt_re_wrid {struct bnxt_re_psns *psns;uint64_t wrid;
@@ -96,6 +92,16 @@ struct bnxt_re_qpcap {uint8_t sqsig; }; +struct bnxt_re_srq { +struct ibv_srq ibvsrq; +struct ibv_srq_attr cap; +struct bnxt_re_queue *srqq; +struct bnxt_re_wrid *srwrid; +struct bnxt_re_dpi *udpi; +uint32_t srqid; +uint32_t pre_count; +}; +struct bnxt_re_qp {struct ibv_qp ibvqp;struct bnxt_re_queue *sqq;
@@ -151,6 +157,7 @@ struct bnxt_re_context {/* DB ring functions used internally*/ void bnxt_re_ring_rq_db (struct bnxt_re_qp *qp);void bnxt_re_ring_sq_db (struct bnxt_re_qp *qp); +void bnxt_re_ring_srq_arm (struct bnxt_re_srq *srq);void bnxt_re_ring_srq_db (struct bnxt_re_srq *srq);void bnxt_re_ring_cq_db (struct bnxt_re_cq *cq);void bnxt_re_ring_cq_arm_db (struct bnxt_re_cq *cq,uint8_t aflag);
@@ -182,6 +189,11 @@ static inline struct bnxt_re_qp *to_bnxt_re_qp(struct ibv_qp *ibvqp) return container_of(ibvqp, struct bnxt_re_qp, ibvqp); } +static inline struct bnxt_re_srq *to_bnxt_re_srq (struct ibv_srq *ibvsrq) +{ + return container_of(ibvsrq, struct bnxt_re_srq, ibvsrq); +} +static inline struct bnxt_re_ah *to_bnxt_re_ah (struct ibv_ah *ibvah) { return container_of(ibvah, struct bnxt_re_ah, ibvah);
@@ -211,6 +223,18 @@ static inline uint32_t bnxt_re_get_rqe_hdr_sz(void)return sizeof (struct bnxt_re_brqe ) +sizeof (struct bnxt_re_rqe ); } +static inline uint32_t bnxt_re_get_srqe_hdr_sz (void ) +{ +return sizeof (struct bnxt_re_brqe ) +sizeof (struct bnxt_re_srqe ); +} + +static inline uint32_t bnxt_re_get_srqe_sz (void ) +{ +return sizeof (struct bnxt_re_brqe ) + +sizeof (struct bnxt_re_srqe ) + +BNXT_RE_MAX_INLINE_SIZE ; +} +static inline uint32_t bnxt_re_get_cqe_sz (void ) {return sizeof (struct bnxt_re_req_cqe ) +sizeof (struct bnxt_re_bcqe );
providers/bnxt_re/verbs.c +227 -34
350 lines not on this page · raw message
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Devesh Sharma
This series introduces the user space RoCE driver for the Broadcom NetXtreme-E 10/25/40/50 RDMA Ethernet Controller. This driver is dependent on the
bnxt_redriver posted earlier to linux-rdma community and is under reveiw.This patch series is based on the latest master of rdma-core repository hosted at https://github.com/linux-rdma/rdma-core.git
Quoted 7 lines
The GIT for this library is hosted at following URL on github
https://github.com/dsharma283/bnxtre-rdma-core.git
branch: bnxtre-v2Please review and give your valuable feedback for the betterment.
v1->v2
It still doesn't compile, please make sure everything is travis clean before submitting..
$ buildlib/cbuild pkg travis
[59/172] Building C object providers/hns/CMakeFiles/hns-rdmav2.dir/hns_roce_u_hw_v1.c.o
FAILED: /usr/bin/gcc-6 -Dbnxt_re_rdmav2_EXPORTS -Werror -m32 -std=gnu11 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wshadow -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -O2 -g -fPIC -Iinclude -MMD -MT providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o -MF "providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o.d" -o providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o -c ../providers/bnxt_re/verbs.c
../providers/bnxt_re/verbs.c: In function 'bnxt_re_reg_mr':
../providers/bnxt_re/verbs.c:143:38: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (ibv_cmd_reg_mr(ibvpd, sva, len, (uint64_t)sva, access, &mr->ibvmr,
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_cq':
../providers/bnxt_re/verbs.c:191:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.cq_va = (uint64_t)cq->cqq.va;
^
../providers/bnxt_re/verbs.c:192:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.cq_handle = (uint64_t)cq;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_poll_one':
../providers/bnxt_re/verbs.c:512:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)scqe->qp_handle;
^
../providers/bnxt_re/verbs.c:521:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)rcqe->qp_handle;
^
../providers/bnxt_re/verbs.c:531:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)scqe->qp_handle;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_cleanup_cq':
../providers/bnxt_re/verbs.c:689:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (scqe->qp_handle == (uint64_t)qp)
^
../providers/bnxt_re/verbs.c:693:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (rcqe->qp_handle == (uint64_t)qp)
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_qp':
../providers/bnxt_re/verbs.c:876:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qpsva = (uint64_t)qp->sqq->va;
^
../providers/bnxt_re/verbs.c:877:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qprva = qp->rqq ? (uint64_t)qp->rqq->va : 0;
^
../providers/bnxt_re/verbs.c:878:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qp_handle = (uint64_t)qp;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_build_sge':
../providers/bnxt_re/verbs.c:1014:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
memcpy(dst, (void *)sg_list[indx].addr,
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_srq':
../providers/bnxt_re/verbs.c:1412:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.srqva = (uint64_t)srq->srqq->va;
^
../providers/bnxt_re/verbs.c:1413:19: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.srq_handle = (uint64_t)srq;
^Hum, you might want to put the wmb() ino bnxt_re_ring_db:
bnxt_re_incr_tail(sq);
wr = wr->next;
wmb(); /* write barrier */
bnxt_re_ring_sq_db(qp);More likely to be universally correct that way.
There is only one rmb() in this driver and it seems in a wonky place. There is no reason to have a barrier after a kernel syscall, if a barrier is needed there it belongs in there kernel code.
The rmb() is missing after calls to bnxt_re_is_cqe_valid() it looks like?
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170221195053.GG13138-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 14 lines · Jason Gunthorpe
Quoted 12 lines · Devesh Sharma
This series introduces the user space RoCE driver for the Broadcom NetXtreme-E 10/25/40/50 RDMA Ethernet Controller. This driver is dependent on the
bnxt_redriver posted earlier to linux-rdma community and is under reveiw.This patch series is based on the latest master of rdma-core repository hosted at https://github.com/linux-rdma/rdma-core.git
The GIT for this library is hosted at following URL on github
https://github.com/dsharma283/bnxtre-rdma-core.git
branch: bnxtre-v2
Quoted 6 lines
Quoted 3 lines
Please review and give your valuable feedback for the betterment.
v1->v2It still doesn't compile, please make sure everything is travis clean before submitting..
I could not find travis package, thus could not gave it try before submitting v2. I will give it a shot again.
Quoted 55 lines
$ buildlib/cbuild pkg travis
[59/172] Building C object providers/hns/CMakeFiles/hns-rdmav2.dir/hns_roce_u_hw_v1.c.o
FAILED: /usr/bin/gcc-6 -Dbnxt_re_rdmav2_EXPORTS -Werror -m32 -std=gnu11 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wshadow -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -O2 -g -fPIC -Iinclude -MMD -MT providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o -MF "providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o.d" -o providers/bnxt_re/CMakeFiles/bnxt_re-rdmav2.dir/verbs.c.o -c ../providers/bnxt_re/verbs.c
../providers/bnxt_re/verbs.c: In function 'bnxt_re_reg_mr':
../providers/bnxt_re/verbs.c:143:38: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (ibv_cmd_reg_mr(ibvpd, sva, len, (uint64_t)sva, access, &mr->ibvmr,
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_cq':
../providers/bnxt_re/verbs.c:191:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.cq_va = (uint64_t)cq->cqq.va;
^
../providers/bnxt_re/verbs.c:192:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.cq_handle = (uint64_t)cq;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_poll_one':
../providers/bnxt_re/verbs.c:512:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)scqe->qp_handle;
^
../providers/bnxt_re/verbs.c:521:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)rcqe->qp_handle;
^
../providers/bnxt_re/verbs.c:531:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
qp = (struct bnxt_re_qp *)scqe->qp_handle;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_cleanup_cq':
../providers/bnxt_re/verbs.c:689:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (scqe->qp_handle == (uint64_t)qp)
^
../providers/bnxt_re/verbs.c:693:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if (rcqe->qp_handle == (uint64_t)qp)
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_qp':
../providers/bnxt_re/verbs.c:876:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qpsva = (uint64_t)qp->sqq->va;
^
../providers/bnxt_re/verbs.c:877:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qprva = qp->rqq ? (uint64_t)qp->rqq->va : 0;
^
../providers/bnxt_re/verbs.c:878:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
req.qp_handle = (uint64_t)qp;
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_build_sge':
../providers/bnxt_re/verbs.c:1014:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
memcpy(dst, (void *)sg_list[indx].addr,
^
../providers/bnxt_re/verbs.c: In function 'bnxt_re_create_srq':
../providers/bnxt_re/verbs.c:1412:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.srqva = (uint64_t)srq->srqq->va;
^
../providers/bnxt_re/verbs.c:1413:19: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cmd.srq_handle = (uint64_t)srq;
^Quoted 5 lines
Hum, you might want to put the
wmb()inobnxt_re_ring_db:bnxt_re_incr_tail(sq); wr = wr->next; wmb(); /* write barrier */
[DS]: That is correct, I was probably waiting for this comment before I move it..will fold in v3
Quoted 9 lines
bnxt_re_ring_sq_db(qp);More likely to be universally correct that way.
There is only one
rmb()in this driver and it seems in a wonky place. There is no reason to have a barrier after a kernel syscall, if a barrier is needed there it belongs in there kernel code.
[DS}: Will remove it.
Quoted 2 lines
The
rmb()is missing after calls tobnxt_re_is_cqe_valid()it looks like?
[DS]: true, its missing. I will correct it.
Quoted 2 lines
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CANjDDBi7bvYMvnjgsdSXzj6ot2wJS+w1nRCp-26TgEEpE38vfg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 5 lines · Devesh Sharma
Quoted 2 lines
It still doesn't compile, please make sure everything is travis clean before submitting..
I could not find travis package, thus could not gave it try before submitting v2. I will give it a shot again.
To run travis you need to install docker and run
$ buildlib/cbuild build-images travis
Then you can run:
Quoted 1 line
Quoted 1 line
$ buildlib/cbuild pkg travis
Which emulates travis locally.
Real travis only runs once you create a PR in github.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170222050804.GA29755-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 11 lines · Jason Gunthorpe
Quoted 5 lines · Devesh Sharma
Quoted 2 lines
It still doesn't compile, please make sure everything is travis clean before submitting..
I could not find travis package, thus could not gave it try before submitting v2. I will give it a shot again.
To run travis you need to install docker and run
$ buildlib/cbuild build-images travis
Quoted 8 lines
Then you can run:
Quoted 1 line
Quoted 1 line
$ buildlib/cbuild pkg travisWhich emulates travis locally.
Real travis only runs once you create a PR in github.
Thanks Jason, I will try it out and submit v3 of this series.
Quoted 1 line
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html