From c181e882312206254ec0c50d5a1cd049780e75ea Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Sun, 29 Nov 2015 07:20:23 +0200 Subject: Added ICMP latency packet modes --- linux_dpdk/ws_main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'linux_dpdk') diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py index 89f41376..566ceb1a 100755 --- a/linux_dpdk/ws_main.py +++ b/linux_dpdk/ws_main.py @@ -95,6 +95,7 @@ main_src = SrcGroup(dir='src', 'global_io_mode.cpp', 'main_dpdk.cpp', 'bp_sim.cpp', + 'latency.cpp', 'platform_cfg.cpp', 'tuple_gen.cpp', 'rx_check.cpp', -- cgit From 301341ddb1bf17387d7fea19667bedd40fce4509 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 13 Dec 2015 15:43:59 +0200 Subject: add git sha to version --- linux_dpdk/ws_main.py | 17 +++++++++++++++++ linux_dpdk/wscript | 3 +++ 2 files changed, 20 insertions(+) (limited to 'linux_dpdk') diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py index 566ceb1a..e5ac40fb 100755 --- a/linux_dpdk/ws_main.py +++ b/linux_dpdk/ws_main.py @@ -12,6 +12,7 @@ import shutil; import copy; import re import uuid +import subprocess # these variables are mandatory ('/' are converted automatically) @@ -702,6 +703,15 @@ def get_build_num (): return s; def create_version_files (): + git_sha="N/A" + try: + r=commands.getstatusoutput("git log --pretty=format:'%H' -n 1") + if r[0]==0: + git_sha=r[1] + except : + pass; + + s ='' s +="#ifndef __TREX_VER_FILE__ \n" s +="#define __TREX_VER_FILE__ \n" @@ -712,6 +722,7 @@ def create_version_files (): s +='extern const char * get_build_date(void); \n' s +='extern const char * get_build_time(void); \n' s +='#define VERSION_UIID "%s" \n' % uuid.uuid1() + s +='#define VERSION_GIT_SHA "%s" \n' % git_sha s +='#define VERSION_BUILD_NUM "%s" \n' % get_build_num() s +="#ifdef __cplusplus \n" s +=" } \n" @@ -877,6 +888,12 @@ def publish_ext(bld): +def test (bld): + r=commands.getstatusoutput("git log --pretty=format:'%H' -n 1") + if r[0]==0: + print r[1] + + diff --git a/linux_dpdk/wscript b/linux_dpdk/wscript index be048bd8..459e2201 100755 --- a/linux_dpdk/wscript +++ b/linux_dpdk/wscript @@ -45,6 +45,9 @@ def publish_web(bld): def sync(bld): ws_main.sync(bld) +def test(bld): + ws_main.test(bld) + -- cgit