diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-23 09:32:06 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-28 14:38:33 +0200 |
commit | 815de471009a006096065717f8d35f73421df31a (patch) | |
tree | e13bf265f917a98a91ae476c8c29e194c93c1386 | |
parent | 7f69fa8d0ef16124b266cd5a474942f432140d11 (diff) |
disable fc change if not supported
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r-- | src/main_dpdk.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index cd4c782b..8810880a 100644 --- 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; |