Skip to content

Commit 9fffa3f

Browse files
Neerav ParikhJeff Kirsher
authored andcommitted
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: Neerav Parikh <neerav.parikh@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent b8262a6 commit 9fffa3f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_dcb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw)
588588
if (!ret) {
589589
/* CEE mode */
590590
hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE;
591+
hw->local_dcbx_config.tlv_status =
592+
le16_to_cpu(cee_v1_cfg.tlv_status);
591593
i40e_cee_to_dcb_v1_config(&cee_v1_cfg,
592594
&hw->local_dcbx_config);
593595
}
@@ -597,6 +599,8 @@ i40e_status i40e_get_dcb_config(struct i40e_hw *hw)
597599
if (!ret) {
598600
/* CEE mode */
599601
hw->local_dcbx_config.dcbx_mode = I40E_DCBX_MODE_CEE;
602+
hw->local_dcbx_config.tlv_status =
603+
le32_to_cpu(cee_cfg.tlv_status);
600604
i40e_cee_to_dcb_config(&cee_cfg,
601605
&hw->local_dcbx_config);
602606
}

drivers/net/ethernet/intel/i40e/i40e_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ struct i40e_dcbx_config {
440440
#define I40E_DCBX_MODE_CEE 0x1
441441
#define I40E_DCBX_MODE_IEEE 0x2
442442
u32 numapps;
443+
u32 tlv_status; /* CEE mode TLV status */
443444
struct i40e_dcb_ets_config etscfg;
444445
struct i40e_dcb_ets_config etsrec;
445446
struct i40e_dcb_pfc_config pfc;

drivers/net/ethernet/intel/i40evf/i40e_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ struct i40e_ieee_app_priority_table {
434434

435435
struct i40e_dcbx_config {
436436
u32 numapps;
437+
u32 tlv_status; /* CEE mode TLV status */
437438
struct i40e_ieee_ets_config etscfg;
438439
struct i40e_ieee_ets_recommend etsrec;
439440
struct i40e_ieee_pfc_config pfc;

0 commit comments

Comments
 (0)