forked from CCI/cci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.ctp.eth
71 lines (44 loc) · 2.13 KB
/
README.ctp.eth
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
= Configuration ================================================================
The eth CTP is enabled by default on Linux, disabled elsewhere.
= Endpoint naming ==============================================================
Eth endpoint URIs are MAC addresses followed by an endpoint number:
eth://00:24:d5:0f:bd:34:3
= Config file options ==========================================================
Eth devices _must_ have a transport item and either a mac line or a interface
line in the config file:
transport = eth
mac = 00:24:d5:0f:bd:34
transport = eth
interface = eth1
where 00:24:d5:0f:bd:34 is the MAC address or eth1 is the interface name of
the device to bind to.
= Driver configuration =========================================================
The eth CTP requires the ccieth kernel driver to be loaded.
To build the driver, run configure and make under the driver directory:
$ cd contrib/driver/ccieth/linux
$ ./configure
$ make
If building for a custom kernel instead of the currently running one, you
may pass the corresponding release version (what uname -r would say) or the
path to the kernel source/build tree on the configure line. For instance:
$ ./configure --with-linux-release=3.0.0-1-amd64
$ ./configure --with-linux=/usr/src/linux-2.6.35-mine
$ ./configure --with-linux=/usr/src/linux-2.6.35-fast --with-linux-build=/usr/src/linux-2.6.35-fast-amd64
Once built, load the driver:
# insmod ccieth.ko
You should get a /dev/ccieth. Make it available to everybody:
# chmod 0444 /dev/ccieth
You may add a udev rule to do so under /etc/udev/rules.d/ :
KERNEL=="ccieth", MODE="0444"
= Known limitations ============================================================
Not implemented:
RMA
Keepalive timeout
TX timeout
= Performance Tuning ===========================================================
CCI_CTP_ETH_ALLOW_LOOPBACK
If no config file is given, use the loopback interface "lo" as the
default device. Otherwise, this interface is ignored.
CCI_CTP_ETH_FORCE_GET_INFO_IOCTL
Use CCI specific ioctls to retrieve device information instead of
ethtool.