summaryrefslogtreecommitdiff
path: root/drivers/net/i40e
diff options
context:
space:
mode:
authorQi Zhang <qi.z.zhang@intel.com>2018-09-25 10:34:37 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:48 +0200
commit1360f4862fcb02b33daeadf6cf9789b9eb0e8ef8 (patch)
treee93712698823e879040a7166c1877cabde37558a /drivers/net/i40e
parent131b086c5bc8c0ce1f7fec73c13e83a08f356fdd (diff)
downloaddpdk-next-eventdev-1360f4862fcb02b33daeadf6cf9789b9eb0e8ef8.zip
dpdk-next-eventdev-1360f4862fcb02b33daeadf6cf9789b9eb0e8ef8.tar.gz
dpdk-next-eventdev-1360f4862fcb02b33daeadf6cf9789b9eb0e8ef8.tar.xz
net/i40e/base: add FC threshold parameter for set MAC
This patch adds the default value for Flow Control Refresh Threshold to set_mac_config AdminQ command. Previously, calling this AdminQ command would overwrite the default value with 0. Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Beilei Xing <beilei.xing@intel.com>
Diffstat (limited to 'drivers/net/i40e')
-rw-r--r--drivers/net/i40e/base/i40e_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c
index 764a143..d0dace0 100644
--- a/drivers/net/i40e/base/i40e_common.c
+++ b/drivers/net/i40e/base/i40e_common.c
@@ -1876,6 +1876,10 @@ enum i40e_status_code i40e_aq_set_mac_config(struct i40e_hw *hw,
if (crc_en)
cmd->params |= I40E_AQ_SET_MAC_CONFIG_CRC_EN;
+#define I40E_AQ_SET_MAC_CONFIG_FC_DEFAULT_THRESHOLD 0x7FFF
+ cmd->fc_refresh_threshold =
+ CPU_TO_LE16(I40E_AQ_SET_MAC_CONFIG_FC_DEFAULT_THRESHOLD);
+
status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);
return status;