diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-02-27 20:41:53 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-02-27 20:41:53 +0200 |
commit | a7fbd337035d5a5b1ca59ae290d995232a3adc22 (patch) | |
tree | 463284124bc69ea3a4ac9173a930940f1ba23e00 /scripts/dpdk_setup_ports.py | |
parent | d812110d34d0188ad1a1e6258d49d48a13e6e5ef (diff) |
dpdk_setup_ports: change return code to 32 in case of Mellanox NICs.
Add info on packages for compiling .ko file.
Change-Id: Ic958a339ad6af696764cb76d95d72776afc8b304
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/dpdk_setup_ports.py')
-rwxr-xr-x | scripts/dpdk_setup_ports.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index c956b6c0..72d91de3 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -21,7 +21,8 @@ import platform # exit code is Important should be # -1 : don't continue # 0 : no errors - no need to load mlx share object -# 1 : no errors - mlx share object should be loaded +# 32 : no errors - mlx share object should be loaded +MLX_EXIT_CODE = 32 class ConfigCreator(object): @@ -534,7 +535,7 @@ Other network devices if only_check_all_mlx: if Mellanox_cnt >0: - exit(1); + exit(MLX_EXIT_CODE); else: exit(0); @@ -573,7 +574,7 @@ Other network devices sys.exit(-1) if Mellanox_cnt: - return 1 + return MLX_EXIT_CODE else: return 0 |