diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2012-10-20 02:01:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-21 22:15:35 -0400 |
commit | d5c184731fad8018084f5d8c4850f0b9cb5336e5 (patch) | |
tree | a383b1ed8338a1788fc5ce111eaf9a5eea7e2c76 /drivers/net/ethernet/emulex/benet/be_cmds.h | |
parent | abb9395123f6529de46f58900867ec07dc032a78 (diff) |
be2net: Fix setting QoS for VF for Lancer
Use Lancer specific command to set QoS for VF.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h index c2bf4dfdb690..ad16d31b86d7 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.h +++ b/drivers/net/ethernet/emulex/benet/be_cmds.h | |||
@@ -198,6 +198,7 @@ struct be_mcc_mailbox { | |||
198 | #define OPCODE_COMMON_GET_HSW_CONFIG 152 | 198 | #define OPCODE_COMMON_GET_HSW_CONFIG 152 |
199 | #define OPCODE_COMMON_GET_FUNC_CONFIG 160 | 199 | #define OPCODE_COMMON_GET_FUNC_CONFIG 160 |
200 | #define OPCODE_COMMON_GET_PROFILE_CONFIG 164 | 200 | #define OPCODE_COMMON_GET_PROFILE_CONFIG 164 |
201 | #define OPCODE_COMMON_SET_PROFILE_CONFIG 165 | ||
201 | #define OPCODE_COMMON_SET_HSW_CONFIG 153 | 202 | #define OPCODE_COMMON_SET_HSW_CONFIG 153 |
202 | #define OPCODE_COMMON_READ_OBJECT 171 | 203 | #define OPCODE_COMMON_READ_OBJECT 171 |
203 | #define OPCODE_COMMON_WRITE_OBJECT 172 | 204 | #define OPCODE_COMMON_WRITE_OBJECT 172 |
@@ -1689,6 +1690,14 @@ struct be_cmd_req_set_ext_fat_caps { | |||
1689 | #define RESOURCE_DESC_SIZE 72 | 1690 | #define RESOURCE_DESC_SIZE 72 |
1690 | #define NIC_RESOURCE_DESC_TYPE_ID 0x41 | 1691 | #define NIC_RESOURCE_DESC_TYPE_ID 0x41 |
1691 | #define MAX_RESOURCE_DESC 4 | 1692 | #define MAX_RESOURCE_DESC 4 |
1693 | |||
1694 | /* QOS unit number */ | ||
1695 | #define QUN 4 | ||
1696 | /* Immediate */ | ||
1697 | #define IMM 6 | ||
1698 | /* No save */ | ||
1699 | #define NOSV 7 | ||
1700 | |||
1692 | struct be_nic_resource_desc { | 1701 | struct be_nic_resource_desc { |
1693 | u8 desc_type; | 1702 | u8 desc_type; |
1694 | u8 desc_len; | 1703 | u8 desc_len; |
@@ -1746,6 +1755,17 @@ struct be_cmd_resp_get_profile_config { | |||
1746 | u8 func_param[MAX_RESOURCE_DESC * RESOURCE_DESC_SIZE]; | 1755 | u8 func_param[MAX_RESOURCE_DESC * RESOURCE_DESC_SIZE]; |
1747 | }; | 1756 | }; |
1748 | 1757 | ||
1758 | struct be_cmd_req_set_profile_config { | ||
1759 | struct be_cmd_req_hdr hdr; | ||
1760 | u32 rsvd; | ||
1761 | u32 desc_count; | ||
1762 | struct be_nic_resource_desc nic_desc; | ||
1763 | }; | ||
1764 | |||
1765 | struct be_cmd_resp_set_profile_config { | ||
1766 | struct be_cmd_req_hdr hdr; | ||
1767 | }; | ||
1768 | |||
1749 | extern int be_pci_fnum_get(struct be_adapter *adapter); | 1769 | extern int be_pci_fnum_get(struct be_adapter *adapter); |
1750 | extern int be_fw_wait_ready(struct be_adapter *adapter); | 1770 | extern int be_fw_wait_ready(struct be_adapter *adapter); |
1751 | extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, | 1771 | extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, |
@@ -1863,3 +1883,6 @@ extern int be_cmd_query_port_name(struct be_adapter *adapter, u8 *port_name); | |||
1863 | extern int be_cmd_get_func_config(struct be_adapter *adapter); | 1883 | extern int be_cmd_get_func_config(struct be_adapter *adapter); |
1864 | extern int be_cmd_get_profile_config(struct be_adapter *adapter, u32 *cap_flags, | 1884 | extern int be_cmd_get_profile_config(struct be_adapter *adapter, u32 *cap_flags, |
1865 | u8 domain); | 1885 | u8 domain); |
1886 | |||
1887 | extern int be_cmd_set_profile_config(struct be_adapter *adapter, u32 bps, | ||
1888 | u8 domain); | ||