aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c1
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c12
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c1
3 files changed, 8 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index 40dbe54056c7..73933a41ce84 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -1821,7 +1821,6 @@ done:
1821static int ipath_open(struct inode *in, struct file *fp) 1821static int ipath_open(struct inode *in, struct file *fp)
1822{ 1822{
1823 /* The real work is performed later in ipath_assign_port() */ 1823 /* The real work is performed later in ipath_assign_port() */
1824 cycle_kernel_lock();
1825 fp->private_data = kzalloc(sizeof(struct ipath_filedata), GFP_KERNEL); 1824 fp->private_data = kzalloc(sizeof(struct ipath_filedata), GFP_KERNEL);
1826 return fp->private_data ? 0 : -ENOMEM; 1825 return fp->private_data ? 0 : -ENOMEM;
1827} 1826}
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index e593af3354b8..de18fdfdadf2 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -1080,11 +1080,14 @@ static int nes_netdev_set_rx_csum(struct net_device *netdev, u32 enable)
1080 1080
1081 1081
1082/** 1082/**
1083 * nes_netdev_get_stats_count 1083 * nes_netdev_get_sset_count
1084 */ 1084 */
1085static int nes_netdev_get_stats_count(struct net_device *netdev) 1085static int nes_netdev_get_sset_count(struct net_device *netdev, int stringset)
1086{ 1086{
1087 return NES_ETHTOOL_STAT_COUNT; 1087 if (stringset == ETH_SS_STATS)
1088 return NES_ETHTOOL_STAT_COUNT;
1089 else
1090 return -EINVAL;
1088} 1091}
1089 1092
1090 1093
@@ -1264,7 +1267,6 @@ static void nes_netdev_get_drvinfo(struct net_device *netdev,
1264 sprintf(drvinfo->fw_version, "%u.%u", nesadapter->firmware_version>>16, 1267 sprintf(drvinfo->fw_version, "%u.%u", nesadapter->firmware_version>>16,
1265 nesadapter->firmware_version & 0x000000ff); 1268 nesadapter->firmware_version & 0x000000ff);
1266 strcpy(drvinfo->version, DRV_VERSION); 1269 strcpy(drvinfo->version, DRV_VERSION);
1267 drvinfo->n_stats = nes_netdev_get_stats_count(netdev);
1268 drvinfo->testinfo_len = 0; 1270 drvinfo->testinfo_len = 0;
1269 drvinfo->eedump_len = 0; 1271 drvinfo->eedump_len = 0;
1270 drvinfo->regdump_len = 0; 1272 drvinfo->regdump_len = 0;
@@ -1516,7 +1518,7 @@ static const struct ethtool_ops nes_ethtool_ops = {
1516 .get_rx_csum = nes_netdev_get_rx_csum, 1518 .get_rx_csum = nes_netdev_get_rx_csum,
1517 .get_sg = ethtool_op_get_sg, 1519 .get_sg = ethtool_op_get_sg,
1518 .get_strings = nes_netdev_get_strings, 1520 .get_strings = nes_netdev_get_strings,
1519 .get_stats_count = nes_netdev_get_stats_count, 1521 .get_sset_count = nes_netdev_get_sset_count,
1520 .get_ethtool_stats = nes_netdev_get_ethtool_stats, 1522 .get_ethtool_stats = nes_netdev_get_ethtool_stats,
1521 .get_drvinfo = nes_netdev_get_drvinfo, 1523 .get_drvinfo = nes_netdev_get_drvinfo,
1522 .get_coalesce = nes_netdev_get_coalesce, 1524 .get_coalesce = nes_netdev_get_coalesce,
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index add9188663ff..5f7a6fca0a4d 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -625,6 +625,7 @@ static struct iscsi_transport iscsi_iser_transport = {
625 ISCSI_USERNAME | ISCSI_PASSWORD | 625 ISCSI_USERNAME | ISCSI_PASSWORD |
626 ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN | 626 ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN |
627 ISCSI_FAST_ABORT | ISCSI_ABORT_TMO | 627 ISCSI_FAST_ABORT | ISCSI_ABORT_TMO |
628 ISCSI_LU_RESET_TMO | ISCSI_TGT_RESET_TMO |
628 ISCSI_PING_TMO | ISCSI_RECV_TMO | 629 ISCSI_PING_TMO | ISCSI_RECV_TMO |
629 ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME, 630 ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME,
630 .host_param_mask = ISCSI_HOST_HWADDRESS | 631 .host_param_mask = ISCSI_HOST_HWADDRESS |