mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[SCSI] iscsi class: expand vlan support
Add support to set vlan priority and enable/disble a vlan. Patch based on code from Vikas Chaudhary. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
3093b0484d
commit
4223b9e919
2 changed files with 19 additions and 2 deletions
|
|
@ -281,6 +281,13 @@ struct iscsi_path {
|
|||
#define ISCSI_IFACE_TYPE_IPV4 0x01
|
||||
#define ISCSI_IFACE_TYPE_IPV6 0x02
|
||||
|
||||
#define ISCSI_MAX_VLAN_ID 4095
|
||||
#define ISCSI_MAX_VLAN_PRIORITY 7
|
||||
|
||||
/* iscsi vlan enable/disabled setting */
|
||||
#define ISCSI_VLAN_DISABLE 0x01
|
||||
#define ISCSI_VLAN_ENABLE 0x02
|
||||
|
||||
/* iSCSI network params */
|
||||
enum iscsi_net_param {
|
||||
ISCSI_NET_PARAM_IPV4_ADDR = 1,
|
||||
|
|
@ -296,8 +303,10 @@ enum iscsi_net_param {
|
|||
ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG = 11,
|
||||
ISCSI_NET_PARAM_IFACE_ENABLE = 12,
|
||||
ISCSI_NET_PARAM_VLAN_ID = 13,
|
||||
ISCSI_NET_PARAM_IFACE_TYPE = 14,
|
||||
ISCSI_NET_PARAM_IFACE_NAME = 15,
|
||||
ISCSI_NET_PARAM_VLAN_PRIORITY = 14,
|
||||
ISCSI_NET_PARAM_VLAN_ENABLED = 15,
|
||||
ISCSI_NET_PARAM_IFACE_TYPE = 16,
|
||||
ISCSI_NET_PARAM_IFACE_NAME = 17,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue