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:
7f69fa8
)
disable fc change if not supported
author
Yaroslav Brustinov
<
[email protected]
>
Sun, 23 Oct 2016 07:32:06 +0000
(09:32 +0200)
committer
Yaroslav Brustinov
<
[email protected]
>
Fri, 28 Oct 2016 12:38:33 +0000
(14:38 +0200)
Signed-off-by: Yaroslav Brustinov <
[email protected]
>
src/main_dpdk.cpp
patch
|
blob
|
history
diff --git
a/src/main_dpdk.cpp
b/src/main_dpdk.cpp
index
cd4c782
..
8810880
100644
(file)
--- a/
src/main_dpdk.cpp
+++ b/
src/main_dpdk.cpp
@@
-1504,6
+1504,9
@@
int TRexPortAttr::get_flow_ctrl(uint8_t port_id, int &mode) {
}
int TRexPortAttr::set_flow_ctrl(uint8_t port_id, int mode) {
+ if (!flag_is_fc_change_supported) {
+ return -ENOTSUP;
+ }
int ret = rte_eth_dev_flow_ctrl_get(port_id, &fc_conf_tmp);
if (ret) {
return ret;