summaryrefslogtreecommitdiff
path: root/sys/contrib/rdma/krping/krping.c
Commit message (Collapse)AuthorAgeFilesLines
* Correct MR length field to be 64-bit in ibcore.Hans Petter Selasky2019-11-151-1/+1
| | | | | | | | | | | Linux commit: edd31551148c09608feee6b8756ad148d550ee3b MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=354727
* Notify all sleeping threads of device removal in krping.Hans Petter Selasky2019-10-021-0/+14
| | | | | | | | | | | Implement d_purge for krping_cdevsw. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352954
* Add proper support for VIMAGE to krping.Hans Petter Selasky2018-09-061-1/+1
| | | | | | | | | | | Make sure we pass the correct VNET when allocating the RDMA ID. MFC after: 3 days Approved by: re (gjb) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=338495
* Add support for setting type of service, TOS, for outgoing RDMA connectionsHans Petter Selasky2018-05-151-0/+10
| | | | | | | | | | in the krping kernel test utility. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=333623
* Exit krping on device removal to avoid endless hang situation.Hans Petter Selasky2018-03-231-0/+2
| | | | | | | | MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331438
* Compile fixes for 32-bit architectures.Hans Petter Selasky2017-11-241-1/+1
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=326160
* Add full support for specifying IPv6 addresses to krping.Hans Petter Selasky2017-11-151-5/+37
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325843
* Set length of socket address in krping(). Else sobind() will fail with EINVAL.Hans Petter Selasky2017-07-261-0/+2
| | | | | | | | Submitted by: Chelsio Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=321551
* Merge ^/head r319973 through 321382.Hans Petter Selasky2017-07-231-0/+1
|\ | | | | | | Notes: svn path=/projects/bsd_rdma_4_9/; revision=321384
| * Avoid including list.h in LinuxKPI headers.Mark Johnston2017-06-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | list.h includes a number of FreeBSD headers as a workaround for the LIST_HEAD name collision. To reduce pollution, avoid including list.h in commonly used headers when it is not explicitly needed. Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D11249 Notes: svn path=/head/; revision=320072
* | Initial RoCE/infiniband kernel update to Linux v4.9.Hans Petter Selasky2017-06-151-1680/+477
|/ | | | | | | | | | | | This patch currently supports: - ibcore as a kernel module only - krping as a kernel module only - ipoib as a kernel module only Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=319974
* krping: Allow the underlying ib_device to handle DMA mappings.Navdeep Parhar2016-10-241-6/+6
| | | | | | | Submitted by: Vijay Singh @ Netapp Notes: svn path=/head/; revision=307881
* Fix for printf() compile warning when fast_reg.length is 64-bit.Hans Petter Selasky2016-04-221-1/+1
| | | | | | | | | | | Changing fast_reg.length to 64 bits is planned in the future. Krping uses 32-bit lengths internally. Sponsored by: Mellanox Technologies MFC after: 1 week Notes: svn path=/head/; revision=298461
* Send krping output to the log instead of the tty, as is done upstream.Navdeep Parhar2016-04-141-61/+63
| | | | | | | | | Reviewed by: hselasky@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D5931 Notes: svn path=/head/; revision=297945
* Add fastreg support to krping (ported from upstream).Navdeep Parhar2016-04-121-36/+1027
| | | | | | | | | Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D5777 Notes: svn path=/head/; revision=297879
* krping wasn't designed to take more than one client. Fail any connectNavdeep Parhar2016-03-291-2/+7
| | | | | | | | | | | requests if cb->state is not IDLE. Submitted by: Krishnamraju Eraparaju @ Chelsio Reviewed by: Steve Wise @ Open Grid Computing Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=297369
* Fix crash in krping when run as a client due to NULL pointer access.Hans Petter Selasky2016-03-161-0/+1
| | | | | | | | | | | Initialize pointer in question which is used only when fast registers mode is selected. Sponsored by: Mellanox Technologies MFC after: 1 week Notes: svn path=/head/; revision=296934
* Have krping use IB_ACCESS_LOCAL_WRITE because it's required for remoteNavdeep Parhar2016-01-051-2/+5
| | | | | | | | | write or remote atomic operations. Submitted by: Krishnamraju Eraparaju @ Chelsio Notes: svn path=/head/; revision=293186
* Rename linuxapi[.ko] into linuxkpi[.ko], to reflect that it is aHans Petter Selasky2015-10-221-1/+1
| | | | | | | | | | | | | kernel programming interface module, KPI, to avoid confusion with the existing Linux userspace binary compatibility shims. Bump the FreeBSD_version number. Reviewed by: np @ Suggested by: dumbbell @ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289749
* Update the infiniband stack to Mellanox's OFED version 2.1.Hans Petter Selasky2015-02-171-9/+9
| | | | | | | | | | | | | | | | Highlights: - Multiple verbs API updates - Support for RoCE, RDMA over ethernet All hardware drivers depending on the common infiniband stack has been updated aswell. Discussed with: np @ Sponsored by: Mellanox Technologies MFC after: 1 month Notes: svn path=/head/; revision=278886
* Add missing linuxapi module dependencies and always use the FreeBSDHans Petter Selasky2015-01-191-0/+2
| | | | | | | | | | | | "MODULE_VERSION" macro definition. Remove the redefinition of the "MODULE_VERSION" macro from the Linux kernel compatibility API. MFC after: 1 month Reported by: np@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=277402
* krping: In verbose mode print only first 128 bytes of krping data.Navdeep Parhar2014-10-271-5/+21
| | | | | | | | Submitted by: Hariprasad at Chelsio dot com. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=273751
* Update the OFED Linux compatibility layer andHans Petter Selasky2014-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | Mellanox hardware driver(s): - Properly name an inclusion guard - Fix compile warnings regarding unsigned enums - Add two new sysctl nodes - Remove all empty linux header files - Make an error printout more verbose - Use "mod_delayed_work()" instead of cancelling and starting a timeout. - Implement more Linux scatterlist functions. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=273135
* - Update the OFED Linux Emulation layer as a preparation for aHans Petter Selasky2014-08-271-2/+0
| | | | | | | | | | | | | | | | | | hardware driver update from Mellanox Technologies. - Remove empty files from the OFED Linux Emulation layer. - Fix compile warnings related to printf() and the "%lld" and "%llx" format specifiers. - Add some missing 2-clause BSD copyrights. - Add "Mellanox Technologies, Ltd." to list of copyright holders. - Add some new compatibility files. - Fix order of uninit in the mlx4ib module to avoid crash at unload using the new module_exit_order() function. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=270710
* Update krping to the latest upstream code. Move all the FreeBSDNavdeep Parhar2013-10-141-532/+1057
| | | | | | | | specific parts to krping_dev.c, which leaves the other files as close to their upstream versions as possible. Notes: svn path=/head/; revision=256470
* Assorted fixes to krping. Disconnect the rest of sys/contrib/rdma fromNavdeep Parhar2013-08-231-3/+16
| | | | | | | | | | | the build while here. sys/ofed has more recent RDMA code and should be used instead. We should probably move krping out of sys/contrib/rdma and get rid of the rest of it. Obtained from: Chelsio Notes: svn path=/head/; revision=254735
* - Updated TOE support in the kernel.Navdeep Parhar2012-06-191-9/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible) Notes: svn path=/head/; revision=237263
* Remove the explicit definition of inet_aton() as it was introduced as aAttilio Rao2009-11-121-103/+0
| | | | | | | | | | | general function in r199208. Reported by: np Sponsored by: Sandvine Incorporated MFC: 1 week Notes: svn path=/head/; revision=199223
* fix buildKip Macy2008-05-061-3/+3
| | | | Notes: svn path=/head/; revision=178812
* Import basic common and iwarp kernel RDMA infrastructure.Kip Macy2008-05-051-0/+1865
Supported by: Chelsio Inc. Notes: svn path=/head/; revision=178784