Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
229352c
)
Cantos MTU is printed in a different way
90/4290/1
author
Hanoh Haim
<
[email protected]
>
Sun, 11 Dec 2016 15:05:18 +0000
(17:05 +0200)
committer
Hanoh Haim
<
[email protected]
>
Sun, 11 Dec 2016 15:05:18 +0000
(17:05 +0200)
Signed-off-by: Hanoh Haim <
[email protected]
>
scripts/dpdk_setup_ports.py
patch
|
blob
|
history
diff --git
a/scripts/dpdk_setup_ports.py
b/scripts/dpdk_setup_ports.py
index
e445a40
..
ce6d2b2
100755
(executable)
--- a/
scripts/dpdk_setup_ports.py
+++ b/
scripts/dpdk_setup_ports.py
@@
-324,7
+324,11
@@
Other network devices
if obj:
return int(obj.group(1));
else:
- return -1
+ obj=re.search(r'mtu (\d+)',out,flags=re.MULTILINE|re.DOTALL);
+ if obj:
+ return int(obj.group(1));
+ else:
+ return -1
def set_mtu_mlx5 (self,dev_id,new_mtu):
if len(dev_id)>0: