Skip to content

Commit

Permalink
libcxgb3-1.3.1 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 26, 2025
1 parent f65345d commit 991db6f
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
57 changes: 57 additions & 0 deletions libcxgb3/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
libcxgb3
------------------------------------------
Chelsio T3 iWARP HCA Userspace Driver

Runtime requirements:
cygwin-3.5.6-1
libibverbs1-1.2.1-1bl2

Build requirements:
(besides corresponding -devel packages)
autoconf-15-2
automake-20240607-1
binutils-2.43.1-1
cygport-0.36.9-1
gcc-core-12.4.0-3
libibverbs-devel-1.2.1-1bl2
libtool-2.5.4-1
make-4.4.1-2

Canonical website:
https://www.openfabrics.org/

Canonical download:
https://www.openfabrics.org/downloads/cxgb3/libcxgb3-1.3.1.tar.gz

-------------------------------------------

Build instructions:
1. unpack libcxgb3-1.3.1-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libcxgb3-1.3.1-X.cygport all

This will create:
/usr/src/libcxgb3-1.3.1-X-src.tar.xz
/usr/src/libcxgb3-1.3.1-X.tar.xz

-------------------------------------------

Files included in the binary package:

(libcxgb3)
/etc/libibverbs.d/cxgb3.driver
/usr/bin/cygcxgb3-rdmav2.dll
/usr/share/doc/Cygwin/libcxgb3.README
/usr/share/doc/libcxgb3/AUTHORS
/usr/share/doc/libcxgb3/COPYING
/usr/share/doc/libcxgb3/ChangeLog
/usr/share/doc/libcxgb3/README

------------------

Port Notes:

----- version 1.3.1-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
21 changes: 21 additions & 0 deletions libcxgb3/libcxgb3-1.3.1-1bl1.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
HOMEPAGE="https://www.openfabrics.org/"
SRC_URI="https://www.openfabrics.org/downloads/cxgb3/${P}.tar.gz"

CATEGORY="Libs"
SUMMARY="Chelsio T3 iWARP HCA Userspace Driver"
DESCRIPTION="${SUMMARY}"

LICENSE="BSD-3-Clause"
LICENSE_SPDX="SPDX-License-Identifier: BSD-3-Clause"
LICENSE_URI="COPYING"

BUILD_REQUIRES="libibverbs-devel"

PKG_IGNORE="
usr/lib/libcxgb3.dll.a
"
PKG_CONTENTS="
etc
usr/bin
usr/share
"
39 changes: 39 additions & 0 deletions libcxgb3/libcxgb3-1.3.1-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
--- origsrc/libcxgb3-1.3.1/Makefile.am 2011-10-11 00:01:50.000000000 +0900
+++ src/libcxgb3-1.3.1/Makefile.am 2025-01-27 07:30:38.135210900 +0900
@@ -12,7 +12,7 @@ endif

src_libcxgb3_la_SOURCES = src/cq.c src/iwch.c src/qp.c \
src/verbs.c
-src_libcxgb3_la_LDFLAGS = -avoid-version -release @IBV_DEVICE_LIBRARY_EXTENSION@ \
+src_libcxgb3_la_LDFLAGS = -no-undefined -avoid-version -release @IBV_DEVICE_LIBRARY_EXTENSION@ \
$(cxgb3_version_script)

cxgb3confdir = $(sysconfdir)/libibverbs.d
--- origsrc/libcxgb3-1.3.1/src/cxio_wr.h 2011-10-11 00:01:50.000000000 +0900
+++ src/libcxgb3-1.3.1/src/cxio_wr.h 2025-01-27 07:46:12.554198000 +0900
@@ -638,9 +638,9 @@ static inline unsigned t3_cq_depth(struc
return (1UL<<cq->size_log2);
}

-unsigned long iwch_page_size;
-unsigned long iwch_page_shift;
-unsigned long iwch_page_mask;
+extern unsigned long iwch_page_size;
+extern unsigned long iwch_page_shift;
+extern unsigned long iwch_page_mask;

#define PAGE_ALIGN(x) (((x) + iwch_page_mask) & ~iwch_page_mask)

--- origsrc/libcxgb3-1.3.1/src/verbs.c 2011-10-11 00:01:50.000000000 +0900
+++ src/libcxgb3-1.3.1/src/verbs.c 2025-01-27 07:46:02.765667400 +0900
@@ -45,6 +45,10 @@
#include "iwch.h"
#include "iwch-abi.h"

+unsigned long iwch_page_size;
+unsigned long iwch_page_shift;
+unsigned long iwch_page_mask;
+
int iwch_query_device(struct ibv_context *context, struct ibv_device_attr *attr)
{
struct ibv_query_device cmd;

0 comments on commit 991db6f

Please sign in to comment.