aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_cmds.h
diff options
context:
space:
mode:
authorJohn Soni Jose <sony.john-n@emulex.com>2012-08-20 13:30:43 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-14 12:59:27 -0400
commit6f72238e774742f618ba0332b76b1860762a40cb (patch)
treec3f702662a58859b2c357e24593a4517bb019bc1 /drivers/scsi/be2iscsi/be_cmds.h
parentdf5d0e6ee9d68f874959fa028388efa26f495f63 (diff)
[SCSI] be2iscsi: Add support for configuring the VLAN on the adapter.
Add support for configuring the VLAN parameters on the adapter using the iscsiadm interface. Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.h')
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h
index 953c354c4d97..2c8f98df1287 100644
--- a/drivers/scsi/be2iscsi/be_cmds.h
+++ b/drivers/scsi/be2iscsi/be_cmds.h
@@ -449,6 +449,12 @@ struct be_cmd_get_def_gateway_resp {
449 struct ip_addr_format ip_addr; 449 struct ip_addr_format ip_addr;
450} __packed; 450} __packed;
451 451
452#define BEISCSI_VLAN_DISABLE 0xFFFF
453struct be_cmd_set_vlan_req {
454 struct be_cmd_req_hdr hdr;
455 u32 interface_hndl;
456 u32 vlan_priority;
457} __packed;
452/******************** Create CQ ***************************/ 458/******************** Create CQ ***************************/
453/** 459/**
454 * Pseudo amap definition in which each bit of the actual structure is defined 460 * 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,
688 694
689bool is_link_state_evt(u32 trailer); 695bool is_link_state_evt(u32 trailer);
690 696
697/* Configuration Functions */
698int be_cmd_set_vlan(struct beiscsi_hba *phba, uint16_t vlan_tag);
699
691struct be_default_pdu_context { 700struct be_default_pdu_context {
692 u32 dw[4]; 701 u32 dw[4];
693} __packed; 702} __packed;