[SCSI] be2iscsi: Add support for configuring the VLAN on the adapter.
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / be2iscsi / be_cmds.h
index 953c354c4d9783c404f3e860c93e4dfd7d17b31b..2c8f98df12875c478c3e5e0872623b6476f0106b 100644 (file)
@@ -449,6 +449,12 @@ struct be_cmd_get_def_gateway_resp {
        struct ip_addr_format ip_addr;
 } __packed;
 
+#define BEISCSI_VLAN_DISABLE   0xFFFF
+struct be_cmd_set_vlan_req {
+       struct be_cmd_req_hdr hdr;
+       u32 interface_hndl;
+       u32 vlan_priority;
+} __packed;
 /******************** Create CQ ***************************/
 /**
  * Pseudo amap definition in which each bit of the actual structure is defined
@@ -688,6 +694,9 @@ int be_cmd_wrbq_create(struct be_ctrl_info *ctrl, struct be_dma_mem *q_mem,
 
 bool is_link_state_evt(u32 trailer);
 
+/* Configuration Functions */
+int be_cmd_set_vlan(struct beiscsi_hba *phba, uint16_t vlan_tag);
+
 struct be_default_pdu_context {
        u32 dw[4];
 } __packed;