git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test mbuf attach
[dpdk.git]
/
usertools
/
cpu_layout.py
diff --git
a/usertools/cpu_layout.py
b/usertools/cpu_layout.py
index
6f129b1
..
5423c79
100755
(executable)
--- a/
usertools/cpu_layout.py
+++ b/
usertools/cpu_layout.py
@@
-10,6
+10,10
@@
try:
except NameError:
xrange = range # Python 3
except NameError:
xrange = range # Python 3
+if sys.version_info.major < 3:
+ print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr)
+ print("Please use Python 3 instead", file=sys.stderr)
+
sockets = []
cores = []
core_map = {}
sockets = []
cores = []
core_map = {}