Commit 9fffa3f3 authored by Neerav Parikh's avatar Neerav Parikh Committed by Jeff Kirsher

i40e/i40evf: Cache the CEE TLV status returned from firmware

Store the CEE TLV status returned by firmware to allow drivers to dump that
for debug purposes.

Change-ID: Ie3c4cf8cebabee4f15e1e3fdc4fc8a68bbca40ee
Signed-off-by: default avatarNeerav Parikh <neerav.parikh@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent b8262a6d
...@@ -588,6 +588,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw) ...@@ -588,6 +588,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw)
if (!ret) { if (!ret) {
/* CEE mode */ /* CEE mode */
hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE; hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE;
hw->local_dcbx_config.tlv_status =
le16_to_cpu(cee_v1_cfg.tlv_status);
i40e_cee_to_dcb_v1_config(&cee_v1_cfg, i40e_cee_to_dcb_v1_config(&cee_v1_cfg,
&hw->local_dcbx_config); &hw->local_dcbx_config);
} }
...@@ -597,6 +599,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw) ...@@ -597,6 +599,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw)
if (!ret) { if (!ret) {
/* CEE mode */ /* CEE mode */
hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE; hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE;
hw->local_dcbx_config.tlv_status =
le32_to_cpu(cee_cfg.tlv_status);
i40e_cee_to_dcb_config(&cee_cfg, i40e_cee_to_dcb_config(&cee_cfg,
&hw->local_dcbx_config); &hw->local_dcbx_config);
} }
......
...@@ -440,6 +440,7 @@ struct i40e_dcbx_config { ...@@ -440,6 +440,7 @@ struct i40e_dcbx_config {
#define I40E_DCBX_MODE_CEE 0x1 #define I40E_DCBX_MODE_CEE 0x1
#define I40E_DCBX_MODE_IEEE 0x2 #define I40E_DCBX_MODE_IEEE 0x2
u32 numapps; u32 numapps;
u32 tlv_status; /* CEE mode TLV status */
struct i40e_dcb_ets_config etscfg; struct i40e_dcb_ets_config etscfg;
struct i40e_dcb_ets_config etsrec; struct i40e_dcb_ets_config etsrec;
struct i40e_dcb_pfc_config pfc; struct i40e_dcb_pfc_config pfc;
......
...@@ -434,6 +434,7 @@ struct i40e_ieee_app_priority_table { ...@@ -434,6 +434,7 @@ struct i40e_ieee_app_priority_table {
struct i40e_dcbx_config { struct i40e_dcbx_config {
u32 numapps; u32 numapps;
u32 tlv_status; /* CEE mode TLV status */
struct i40e_ieee_ets_config etscfg; struct i40e_ieee_ets_config etscfg;
struct i40e_ieee_ets_recommend etsrec; struct i40e_ieee_ets_recommend etsrec;
struct i40e_ieee_pfc_config pfc; struct i40e_ieee_pfc_config pfc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment