OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlx4
Moni Shoua 6cd28f044b net/mlx4_core: Remove unnecessary validation for port number
This is a fix to a regression introduced by commit:
"982290a net/mlx4_core: Check port number for validity
before accessing data"

IPoIB could not attach to multicast group and we get this in dmesg:
[144214.145008] ib0: failed to attach to multicast group, ret = -22
[144214.145016] ib0: couldn't attach QP to multicast group ff12:401b:ffff:0000:0000:0000:ffff:ffff
[144214.145019] ib0: multicast join failed for ff12:401b:ffff:0000:0000:0000:ffff:ffff, status -22

The cause to the problem is because port is extracted from gid[5].
Which is only valid for Ethernet.
Removed this validation in mlx4_qp_attach_common(), which is accessed
from both Ethernet and IB flows.
Error flow for bad port value in Ethernet is already exists in that
function.

Signed-off-by: Moni Shoua <monis@mellanox.co.il>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-21 23:14:27 -08:00
..
Kconfig mlx4_en: Select PTP_1588_CLOCK 2014-01-07 16:23:45 -05:00
Makefile net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
alloc.c mlx4_core: Roll back round robin bitmap allocation commit for CQs, SRQs, and MPTs 2013-12-09 21:12:13 -05:00
catas.c mlx4: Add support for EEH error recovery 2012-07-25 15:24:13 -07:00
cmd.c net/mlx4_core: Add immediate activate for VGT->VST->VGT 2013-11-07 19:22:47 -05:00
cq.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
en_clock.c mlx4_en: Only cycle port if HW timestamp config changes 2014-01-02 03:30:36 -05:00
en_cq.c net/mlx4_en: Add NAPI support for transmit side 2013-12-19 19:04:44 -05: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 mlx4_en: Add PTP hardware clock 2014-01-02 03:30:36 -05:00
en_main.c mlx4_en: Add PTP hardware clock 2014-01-02 03:30:36 -05:00
en_netdev.c net/mlx4_en: fix error return code in mlx4_en_get_qp() 2014-01-07 15:42:52 -05:00
en_port.c net/mlx4_en: Datapath resources allocated dynamically 2013-11-07 19:22:48 -05:00
en_port.h net/mlx4_core: set port QoS attributes 2012-04-05 05:08:03 -04:00
en_resources.c net/mlx4_en: Add netdev support for TCP/IP offloads of vxlan tunneling 2013-12-31 14:31:43 -05:00
en_rx.c net/mlx4_en: call gro handler for encapsulated frames 2014-01-13 11:41:47 -08:00
en_selftest.c net/mlx4_en: Remove selftest TX queues empty condition 2013-12-01 20:36:07 -05:00
en_tx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-01-14 14:42:42 -08:00
eq.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
fw.c net/mlx4_core: Add basic support for TCP/IP offloads under tunneling 2013-12-31 14:31:43 -05:00
fw.h net/mlx4_core: Expose physical port id as PF/VF capability 2013-12-19 19:04:43 -05:00
icm.c net/mlx4_core: ICM pages are allocated on device NUMA node 2013-11-07 19:22:48 -05:00
icm.h mlx4_core: Fix integer overflows so 8TBs of memory registration works 2012-09-13 17:52:02 -07:00
intf.c mlx4: Use port management change event instead of smp_snoop 2012-07-10 09:47:10 -07:00
main.c net/mlx4_core: Warn if device doesn't have enough PCI bandwidth 2014-01-05 20:37:05 -05:00
mcg.c net/mlx4_core: Remove unnecessary validation for port number 2014-01-21 23:14:27 -08:00
mlx4.h mlx4_core: Roll back round robin bitmap allocation commit for CQs, SRQs, and MPTs 2013-12-09 21:12:13 -05:00
mlx4_en.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-01-14 14:42:42 -08:00
mr.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
pd.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
port.c net/mlx4_core: Add basic support for TCP/IP offloads under tunneling 2013-12-31 14:31:43 -05:00
profile.c mlx4_core: Fix integer overflow issues around MTT table 2012-08-15 21:05:26 -07:00
qp.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
reset.c mlx4: Use PCI Express Capability accessors 2012-08-23 10:11:13 -06:00
resource_tracker.c net/mlx4_core: clean up srq_res_start_move_to() 2014-01-16 16:04:47 -08:00
sense.c Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
srq.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00