From: Yaroslav Brustinov Date: Sun, 23 Oct 2016 07:32:06 +0000 (+0200) Subject: disable fc change if not supported X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=815de471009a006096065717f8d35f73421df31a;p=trex.git disable fc change if not supported Signed-off-by: Yaroslav Brustinov --- 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;