diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2016-08-19 05:50:02 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-23 22:42:42 -0400 |
commit | 37f216482a72ea8ffc2935b2e7e926ba1241a2dd (patch) | |
tree | 7a0d012a79d873011ac0f3d1b01895ce8d3da78f /drivers/scsi/be2iscsi/be_mgmt.h | |
parent | f7dd017e133e3b2d0395156f8d1ed16be732a6a7 (diff) |
scsi: be2iscsi: Fix gateway APIs to support IPv4 & IPv6
Gateway APIs assume IP type as IPv4. Modify it to be generic to allow
clearing of IPv6 gateway set using BIOS.
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_mgmt.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_mgmt.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.h b/drivers/scsi/be2iscsi/be_mgmt.h index f3a48a04b2ca..fd9b68f318c0 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.h +++ b/drivers/scsi/be2iscsi/be_mgmt.h | |||
@@ -298,11 +298,10 @@ int mgmt_get_nic_conf(struct beiscsi_hba *phba, | |||
298 | int mgmt_get_if_info(struct beiscsi_hba *phba, int ip_type, | 298 | int mgmt_get_if_info(struct beiscsi_hba *phba, int ip_type, |
299 | struct be_cmd_get_if_info_resp **if_info); | 299 | struct be_cmd_get_if_info_resp **if_info); |
300 | 300 | ||
301 | int mgmt_get_gateway(struct beiscsi_hba *phba, int ip_type, | 301 | int beiscsi_if_get_gw(struct beiscsi_hba *phba, u32 ip_type, |
302 | struct be_cmd_get_def_gateway_resp *gateway); | 302 | struct be_cmd_get_def_gateway_resp *resp); |
303 | 303 | ||
304 | int mgmt_set_gateway(struct beiscsi_hba *phba, | 304 | int beiscsi_if_set_gw(struct beiscsi_hba *phba, u32 ip_type, u8 *gw); |
305 | struct iscsi_iface_param_info *gateway_param); | ||
306 | 305 | ||
307 | int be_mgmt_get_boot_shandle(struct beiscsi_hba *phba, | 306 | int be_mgmt_get_boot_shandle(struct beiscsi_hba *phba, |
308 | unsigned int *s_handle); | 307 | unsigned int *s_handle); |