Commit 73b23402 authored by Kevin Scott's avatar Kevin Scott Committed by Jeff Kirsher

i40e/i40evf: Save WR_CSR_PROT field from DEV/FUNC capabilities

Store the 8 bytes of the WR_CSR_PROT field returned as part of the get
device/function capabilities AQ command.

Change-ID: Ifcaeea2ff29885fa769e4f384c7db88a25e8afd0
Signed-off-by: default avatarKevin Scott <kevin.c.scott@intel.com>
Tested-by: default avatarJim Young <james.m.young@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 3169c323
...@@ -2397,6 +2397,7 @@ i40e_status i40e_aq_erase_nvm(struct i40e_hw *hw, u8 module_pointer, ...@@ -2397,6 +2397,7 @@ i40e_status i40e_aq_erase_nvm(struct i40e_hw *hw, u8 module_pointer,
#define I40E_DEV_FUNC_CAP_LED 0x61 #define I40E_DEV_FUNC_CAP_LED 0x61
#define I40E_DEV_FUNC_CAP_SDP 0x62 #define I40E_DEV_FUNC_CAP_SDP 0x62
#define I40E_DEV_FUNC_CAP_MDIO 0x63 #define I40E_DEV_FUNC_CAP_MDIO 0x63
#define I40E_DEV_FUNC_CAP_WR_CSR_PROT 0x64
/** /**
* i40e_parse_discover_capabilities * i40e_parse_discover_capabilities
...@@ -2541,6 +2542,10 @@ static void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff, ...@@ -2541,6 +2542,10 @@ static void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff,
p->fd_filters_guaranteed = number; p->fd_filters_guaranteed = number;
p->fd_filters_best_effort = logical_id; p->fd_filters_best_effort = logical_id;
break; break;
case I40E_DEV_FUNC_CAP_WR_CSR_PROT:
p->wr_csr_prot = (u64)number;
p->wr_csr_prot |= (u64)logical_id << 32;
break;
default: default:
break; break;
} }
......
...@@ -242,6 +242,7 @@ struct i40e_hw_capabilities { ...@@ -242,6 +242,7 @@ struct i40e_hw_capabilities {
u8 rx_buf_chain_len; u8 rx_buf_chain_len;
u32 enabled_tcmap; u32 enabled_tcmap;
u32 maxtc; u32 maxtc;
u64 wr_csr_prot;
}; };
struct i40e_mac_info { struct i40e_mac_info {
......
...@@ -242,6 +242,7 @@ struct i40e_hw_capabilities { ...@@ -242,6 +242,7 @@ struct i40e_hw_capabilities {
u8 rx_buf_chain_len; u8 rx_buf_chain_len;
u32 enabled_tcmap; u32 enabled_tcmap;
u32 maxtc; u32 maxtc;
u64 wr_csr_prot;
}; };
struct i40e_mac_info { struct i40e_mac_info {
......
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