diff options
| author | Shannon Nelson <shannon.nelson@intel.com> | 2014-01-15 18:18:24 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-01-16 20:20:51 -0500 |
| commit | 0aebd2d9ab42b764ba43875e185ef52cec2afdec (patch) | |
| tree | cbad66ebf3f3d86f94aa274f99395b98ba5348c3 | |
| parent | 68bf94aae1873cb112385830e1a98a36bf154970 (diff) | |
i40e: updates to AdminQ interface
Refinements to cloud support in the Firmware API.
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 22 | ||||
| -rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_common.c | 1 |
2 files changed, 8 insertions, 15 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h index be61a474fd84..7b6374a8f8da 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h +++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | |||
| @@ -680,7 +680,6 @@ struct i40e_aqc_add_get_update_vsi { | |||
| 680 | #define I40E_AQ_VSI_TYPE_PF 0x2 | 680 | #define I40E_AQ_VSI_TYPE_PF 0x2 |
| 681 | #define I40E_AQ_VSI_TYPE_EMP_MNG 0x3 | 681 | #define I40E_AQ_VSI_TYPE_EMP_MNG 0x3 |
| 682 | #define I40E_AQ_VSI_FLAG_CASCADED_PV 0x4 | 682 | #define I40E_AQ_VSI_FLAG_CASCADED_PV 0x4 |
| 683 | #define I40E_AQ_VSI_FLAG_CLOUD_VSI 0x8 | ||
| 684 | __le32 addr_high; | 683 | __le32 addr_high; |
| 685 | __le32 addr_low; | 684 | __le32 addr_low; |
| 686 | }; | 685 | }; |
| @@ -1042,7 +1041,9 @@ struct i40e_aqc_set_vsi_promiscuous_modes { | |||
| 1042 | #define I40E_AQC_SET_VSI_PROMISC_VLAN 0x10 | 1041 | #define I40E_AQC_SET_VSI_PROMISC_VLAN 0x10 |
| 1043 | __le16 seid; | 1042 | __le16 seid; |
| 1044 | #define I40E_AQC_VSI_PROM_CMD_SEID_MASK 0x3FF | 1043 | #define I40E_AQC_VSI_PROM_CMD_SEID_MASK 0x3FF |
| 1045 | u8 reserved[10]; | 1044 | __le16 vlan_tag; |
| 1045 | #define I40E_AQC_SET_VSI_VLAN_VALID 0x8000 | ||
| 1046 | u8 reserved[8]; | ||
| 1046 | }; | 1047 | }; |
| 1047 | 1048 | ||
| 1048 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_vsi_promiscuous_modes); | 1049 | I40E_CHECK_CMD_LENGTH(i40e_aqc_set_vsi_promiscuous_modes); |
| @@ -1947,19 +1948,12 @@ I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_start); | |||
| 1947 | /* Add Udp Tunnel command and completion (direct 0x0B00) */ | 1948 | /* Add Udp Tunnel command and completion (direct 0x0B00) */ |
| 1948 | struct i40e_aqc_add_udp_tunnel { | 1949 | struct i40e_aqc_add_udp_tunnel { |
| 1949 | __le16 udp_port; | 1950 | __le16 udp_port; |
| 1950 | u8 header_len; /* in DWords, 1 to 15 */ | 1951 | u8 reserved0[3]; |
| 1951 | u8 protocol_type; | 1952 | u8 protocol_type; |
| 1952 | #define I40E_AQC_TUNNEL_TYPE_TEREDO 0x0 | 1953 | #define I40E_AQC_TUNNEL_TYPE_VXLAN 0x00 |
| 1953 | #define I40E_AQC_TUNNEL_TYPE_VXLAN 0x2 | 1954 | #define I40E_AQC_TUNNEL_TYPE_NGE 0x01 |
| 1954 | #define I40E_AQC_TUNNEL_TYPE_NGE 0x3 | 1955 | #define I40E_AQC_TUNNEL_TYPE_TEREDO 0x10 |
| 1955 | u8 variable_udp_length; | 1956 | u8 reserved1[10]; |
| 1956 | #define I40E_AQC_TUNNEL_FIXED_UDP_LENGTH 0x0 | ||
| 1957 | #define I40E_AQC_TUNNEL_VARIABLE_UDP_LENGTH 0x1 | ||
| 1958 | u8 udp_key_index; | ||
| 1959 | #define I40E_AQC_TUNNEL_KEY_INDEX_VXLAN 0x0 | ||
| 1960 | #define I40E_AQC_TUNNEL_KEY_INDEX_NGE 0x1 | ||
| 1961 | #define I40E_AQC_TUNNEL_KEY_INDEX_PROPRIETARY_UDP 0x2 | ||
| 1962 | u8 reserved[10]; | ||
| 1963 | }; | 1957 | }; |
| 1964 | 1958 | ||
| 1965 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_udp_tunnel); | 1959 | I40E_CHECK_CMD_LENGTH(i40e_aqc_add_udp_tunnel); |
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c index aedc71b6f3f8..529ecb4da076 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_common.c +++ b/drivers/net/ethernet/intel/i40e/i40e_common.c | |||
| @@ -1742,7 +1742,6 @@ i40e_status i40e_aq_add_udp_tunnel(struct i40e_hw *hw, | |||
| 1742 | i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_udp_tunnel); | 1742 | i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_udp_tunnel); |
| 1743 | 1743 | ||
| 1744 | cmd->udp_port = cpu_to_le16(udp_port); | 1744 | cmd->udp_port = cpu_to_le16(udp_port); |
| 1745 | cmd->header_len = header_len; | ||
| 1746 | cmd->protocol_type = protocol_index; | 1745 | cmd->protocol_type = protocol_index; |
| 1747 | 1746 | ||
| 1748 | status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); | 1747 | status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); |
