summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-02-27 15:28:14 +0200
committerHanoh Haim <hhaim@cisco.com>2017-02-27 15:44:34 +0200
commit9948fdf7520aac4dbee7c0abcdc5151cb8aec213 (patch)
treed7d6ed8e5e9ff89e6c08e356403fff8f0523582f /doc
parent636b54879f9017deb00a28eaf4ab54cf0e6455de (diff)
mlx5 change local ibverb to OFED 4.0 lib
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/trex_book.asciidoc56
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/trex_book.asciidoc b/doc/trex_book.asciidoc
index 3f0db6c0..6d614f19 100755
--- a/doc/trex_book.asciidoc
+++ b/doc/trex_book.asciidoc
@@ -2813,6 +2813,62 @@ There is a task to automate the production of thess reports
Cause: rte_eth_dev_filter_ctrl: err=-22, port=2
----
+==== Build with native OFED
+
+In some case there is a need to build the dpdk-mlx5 with different OFED (not just 4.0 maybe newer)
+to do so run this on native machine
+
+[source,bash]
+----
+[csi-trex-07]> ./b configure
+Setting top to : /auto/srg-sce-swinfra-usr/emb/users/hhaim/work/depot/asr1k/emb/private/hhaim/bp_sim_git/trex-core
+Setting out to : /auto/srg-sce-swinfra-usr/emb/users/hhaim/work/depot/asr1k/emb/private/hhaim/bp_sim_git/trex-core/linux_dpdk/build_dpdk
+Checking for program 'g++, c++' : /bin/g++
+Checking for program 'ar' : /bin/ar
+Checking for program 'gcc, cc' : /bin/gcc
+Checking for program 'ar' : /bin/ar
+Checking for program 'ldd' : /bin/ldd
+Checking for library z : yes
+Checking for OFED : Found needed version 4.0 #1
+Checking for library ibverbs : yes
+'configure' finished successfully (1.826s)
+----
+<1> make sure it was identify
+
+
+[source,python]
+----
+ index fba7540..a55fe6b 100755
+ --- a/linux_dpdk/ws_main.py
+ +++ b/linux_dpdk/ws_main.py
+ @@ -143,8 +143,11 @@ def missing_pkg_msg(fedora, ubuntu):
+ def check_ofed(ctx):
+ ctx.start_msg('Checking for OFED')
+ ofed_info='/usr/bin/ofed_info'
+ - ofed_ver= '-3.4-'
+ - ofed_ver_show= 'v3.4'
+ +
+ + ofed_ver_re = re.compile('.*[-](\d)[.](\d)[-].*')
+ +
+ + ofed_ver= 40 <1>
+ + ofed_ver_show= '4.0'
+
+
+ --- a/scripts/dpdk_setup_ports.py
+ +++ b/scripts/dpdk_setup_ports.py
+ @@ -366,8 +366,8 @@ Other network devices
+
+ ofed_ver_re = re.compile('.*[-](\d)[.](\d)[-].*')
+
+ - ofed_ver= 34
+ - ofed_ver_show= '3.4-1'
+ + ofed_ver= 40 <2>
+ + ofed_ver_show= '4.0'
+----
+<1> change to new version
+<2> change to new version
+
+
=== Cisco VIC support