https://github.com/torvalds/linux
Revision effa4bc4e75a265105f4ccb55857057e5ad231ed authored by Matan Barak on 23 September 2014, 13:05:59 UTC, committed by David S. Miller on 26 September 2014, 20:43:23 UTC
When the HCA is configured in SRIOV IB mode (that is, at least one of
the ports is IB) and the probe_vf module param isn't specified,
mlx4_init_one() failed because of the following condition:

if (ib_ports && (num_vfs_argc > 1 || probe_vfs_argc > 1)) {
	 .....
}

The root cause for that is a mistake in the initialization of num_vfs_argc
and probe_vfs_argc. When num_vfs / probe_vf aren't given, their argument
count counterpart should be 0, fix that.

Fixes: dd41cc3bb90e ('net/mlx4: Adapt num_vfs/probed_vf params for single port VF')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e7af85d
History
Tip revision: effa4bc4e75a265105f4ccb55857057e5ad231ed authored by Matan Barak on 23 September 2014, 13:05:59 UTC
net/mlx4_core: Allow not to specify probe_vf in SRIOV IB mode
Tip revision: effa4bc
File Mode Size
partitions
Kconfig -rw-r--r-- 3.6 KB
Kconfig.iosched -rw-r--r-- 1.6 KB
Makefile -rw-r--r-- 948 bytes
bio-integrity.c -rw-r--r-- 17.4 KB
bio.c -rw-r--r-- 49.6 KB
blk-cgroup.c -rw-r--r-- 29.7 KB
blk-cgroup.h -rw-r--r-- 16.7 KB
blk-core.c -rw-r--r-- 89.3 KB
blk-exec.c -rw-r--r-- 3.5 KB
blk-flush.c -rw-r--r-- 13.6 KB
blk-integrity.c -rw-r--r-- 11.7 KB
blk-ioc.c -rw-r--r-- 10.2 KB
blk-iopoll.c -rw-r--r-- 5.8 KB
blk-lib.c -rw-r--r-- 7.3 KB
blk-map.c -rw-r--r-- 8.2 KB
blk-merge.c -rw-r--r-- 14.7 KB
blk-mq-cpu.c -rw-r--r-- 1.6 KB
blk-mq-cpumap.c -rw-r--r-- 2.5 KB
blk-mq-sysfs.c -rw-r--r-- 10.5 KB
blk-mq-tag.c -rw-r--r-- 13.7 KB
blk-mq-tag.h -rw-r--r-- 2.0 KB
blk-mq.c -rw-r--r-- 48.1 KB
blk-mq.h -rw-r--r-- 3.1 KB
blk-settings.c -rw-r--r-- 27.2 KB
blk-softirq.c -rw-r--r-- 4.4 KB
blk-sysfs.c -rw-r--r-- 15.1 KB
blk-tag.c -rw-r--r-- 9.4 KB
blk-throttle.c -rw-r--r-- 45.8 KB
blk-timeout.c -rw-r--r-- 5.6 KB
blk.h -rw-r--r-- 7.9 KB
bounce.c -rw-r--r-- 6.5 KB
bsg-lib.c -rw-r--r-- 6.0 KB
bsg.c -rw-r--r-- 23.6 KB
cfq-iosched.c -rw-r--r-- 120.0 KB
cmdline-parser.c -rw-r--r-- 4.9 KB
compat_ioctl.c -rw-r--r-- 20.9 KB
deadline-iosched.c -rw-r--r-- 11.3 KB
elevator.c -rw-r--r-- 23.7 KB
genhd.c -rw-r--r-- 44.1 KB
ioctl.c -rw-r--r-- 10.8 KB
ioprio.c -rw-r--r-- 5.0 KB
noop-iosched.c -rw-r--r-- 2.7 KB
partition-generic.c -rw-r--r-- 14.0 KB
scsi_ioctl.c -rw-r--r-- 19.6 KB

back to top