|
@@ -2282,6 +2282,35 @@ i40e_status i40e_aq_get_switch_config(struct i40e_hw *hw,
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * i40e_aq_set_switch_config
|
|
|
+ * @hw: pointer to the hardware structure
|
|
|
+ * @flags: bit flag values to set
|
|
|
+ * @valid_flags: which bit flags to set
|
|
|
+ * @cmd_details: pointer to command details structure or NULL
|
|
|
+ *
|
|
|
+ * Set switch configuration bits
|
|
|
+ **/
|
|
|
+enum i40e_status_code i40e_aq_set_switch_config(struct i40e_hw *hw,
|
|
|
+ u16 flags,
|
|
|
+ u16 valid_flags,
|
|
|
+ struct i40e_asq_cmd_details *cmd_details)
|
|
|
+{
|
|
|
+ struct i40e_aq_desc desc;
|
|
|
+ struct i40e_aqc_set_switch_config *scfg =
|
|
|
+ (struct i40e_aqc_set_switch_config *)&desc.params.raw;
|
|
|
+ enum i40e_status_code status;
|
|
|
+
|
|
|
+ i40e_fill_default_direct_cmd_desc(&desc,
|
|
|
+ i40e_aqc_opc_set_switch_config);
|
|
|
+ scfg->flags = cpu_to_le16(flags);
|
|
|
+ scfg->valid_flags = cpu_to_le16(valid_flags);
|
|
|
+
|
|
|
+ status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);
|
|
|
+
|
|
|
+ return status;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* i40e_aq_get_firmware_version
|
|
|
* @hw: pointer to the hw struct
|