File: README

package info (click to toggle)
srptools 0.0.4-1.2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 580 kB
  • ctags: 775
  • sloc: ansic: 3,467; sh: 1,174; makefile: 98
file content (82 lines) | stat: -rw-r--r-- 3,145 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Introduction
============

srptools is a package of tools for discovering and connecting to SRP
SCSI targets on InfiniBand fabrics.  These targets can be accessed
with the InfiniBand SRP initiator module, "ib_srp," included in Linux
kernels 2.6.15 and newer.

Using srptools
==============

srptools currently contains only a single executable, ibsrpdm.  To run
ibsrpdm, the ib_umad module must be loaded, as well as an appropriate
low-level driver for the installed IB hardware -- for example,
ib_mthca for a Mellanox HCA, ib_ipath for a QLogic HCA, or hcad_mod
for an IBM eHCA.

With no command line parameters, ibsrpdm displays information about
SRP targets in human-readable form:

    # ibsrpdm
    IO Unit Info:
        port LID:        0009
        port GID:        fe800000000000000005ad00000013e9
        change ID:       73b0
        max controllers: 0x01

        controller[  1]
            GUID:      0005ad00000013e7
            vendor ID: 0005ad
            device ID: 0005ad
            IO class : 0100
            ID:        Topspin SRP/FC TCA
            service entries: 2
                service[  0]: 0000000000000066 / SRP.T10:20030003BA27CC7A
                service[  1]: 0000000000000066 / SRP.T10:20030003BA27CF53

With the "-c" flag, ibsrpdm displays information in a form that can be
written to the kernel SRP initiators add_target file to connect to the
SRP targets.  For example:

    # ibsrpdm -c
    id_ext=20030003BA27CC7A,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066
    id_ext=20030003BA27CF53,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066

Given this, the command below will connect to the first target
discovered from the first port of the local HCA device "mthca0":

    # echo -n id_ext=20030003BA27CC7A,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066 > /sys/class/infiniband_srp/srp-mthca0-1/add_target

Reporting bugs
==============

Bugs should be reported to the OpenIB mailing list
<openib-general@openib.org>.  In your bug report, please include:

 * Information about your system:
   - Linux distribution and version
   - Linux kernel and version
   - InfiniBand hardware and firmware version
   - ... any other relevant information

 * How to reproduce the bug.

 * If the bug is a crash, the exact output printed out when the crash
   occurred, including any kernel messages produced.

Submitting patches
==================

Patches should also be submitted to the OpenIB mailing list
<openib-general@openib.org>.  Please use unified diff form (the -u
option to GNU diff), and include a good description of what your patch
does and why it should be applied.  If your patch fixes a bug, please
make sure to describe the bug and how your fix works.

Please include a change to the ChangeLog file (in standard GNU
changelog format) as part of your patch.

Make sure that your contribution can be licensed under the same
license as the original code you are patching, and that you have all
necessary permissions to release your work.