linux/drivers/net/ethernet/mellanox/mlx4
Jack Morgenstein a30f1bc5c0 net/mlx4_core: Fix checking order in MR table init
In procedure mlx4_init_mr_table(), slaves should do no processing,
but should return success. This initialization is hypervisor-only.

However, the check for num_mpts being a power-of-2 was performed
before the check to return immediately if the driver is for a slave.
This resulted in spurious failures.

The order of performing the checks is reversed, so that if the
driver is for a slave, no processing is done and success is returned.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-04 16:19:07 -05:00
..
alloc.c
catas.c
cmd.c net/mlx4_core: Don't fail reg/unreg vlan for older guests 2013-11-04 16:19:07 -05:00
cq.c net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
en_clock.c mlx4_en: fix a build error on 32bit arches 2013-04-30 19:00:25 -04:00
en_cq.c net/mlx4_en: Add Low Latency Socket (LLS) support 2013-06-19 18:32:16 -07:00
en_dcb_nl.c net/mlx4_en: Disable global flow control when PFC enabled 2013-08-21 12:19:26 -07:00
en_ethtool.c net/mlx4_en: Check device state when setting coalescing 2013-09-12 23:42:15 -04:00
en_main.c net/mlx4_en: Fix resource leak in error flow 2013-06-25 16:29:38 -07:00
en_netdev.c net/mlx4_en: Use vlan id instead of vlan index for unregistration 2013-11-04 16:19:07 -05:00
en_port.c
en_port.h
en_resources.c net/mlx4: Strengthen VLAN tags/priorities enforcement in VST mode 2013-05-11 16:12:44 -07:00
en_rx.c net/mlx4_en: Fix pages never dma unmapped on rx 2013-10-08 16:09:50 -04:00
en_selftest.c drivers:net: Remove unnecessary OOM messages after netdev_alloc_skb 2013-03-09 16:09:19 -05:00
en_tx.c net/mlx4_en: Reduce scope of local variables in mlx4_en_xmit 2013-08-21 12:19:26 -07:00
eq.c net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
fw.c net/mlx4: Unused local variable in mlx4_opreq_action 2013-10-17 15:10:50 -04:00
fw.h net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
icm.c
icm.h
intf.c
Kconfig
main.c net/mlx4_core: Load higher level modules according to ports type 2013-10-17 15:10:50 -04:00
Makefile net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
mcg.c net/mlx4: Clean the code to eliminate trivial build warnings 2013-10-17 15:10:49 -04:00
mlx4_en.h net/mlx4_en: Rename name of mlx4_en_rx_alloc members 2013-10-08 16:09:50 -04:00
mlx4.h net/mlx4_core: Don't fail reg/unreg vlan for older guests 2013-11-04 16:19:07 -05:00
mr.c net/mlx4_core: Fix checking order in MR table init 2013-11-04 16:19:07 -05:00
pd.c net/mlx4_core: Fix endianness bug in set_param_l 2013-03-07 15:52:03 -05:00
port.c net/mlx4_en: Use vlan id instead of vlan index for unregistration 2013-11-04 16:19:07 -05:00
profile.c
qp.c net/mlx4_core: Fix endianness bug in set_param_l 2013-03-07 15:52:03 -05:00
reset.c
resource_tracker.c net/mlx4_core: Don't fail reg/unreg vlan for older guests 2013-11-04 16:19:07 -05:00
sense.c
srq.c net/mlx4: Clean the code to eliminate trivial build warnings 2013-10-17 15:10:49 -04:00