linux-hardened/drivers/infiniband/core
Matan Barak fac51590c1 IB/cma: cma_match_net_dev needs to take into account port_num
Previously, cma_match_net_dev called cma_protocol_roce which
tried to verify that the IB device uses RoCE protocol. However,
if rdma_id wasn't bound to a port, then the check would occur
against the first port of the device without regard to whether
that port was even of the same type as the type of port the
incoming packet was received on.

Fix this by passing the port of the request and only checking
against the same port of the device.

Reported-by: Or Gerlitz <gerlitz.or@gmail.com>
Fixes: b8cab5dab1 ('IB/cma: Accept connection without a valid netdev on RoCE')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-12-22 23:22:50 -05:00
..
addr.c
agent.c
agent.h
cache.c
cm.c
cm_msgs.h
cma.c IB/cma: cma_match_net_dev needs to take into account port_num 2015-12-22 23:22:50 -05:00
core_priv.h
device.c
fmr_pool.c
iwcm.c
iwcm.h
iwpm_msg.c
iwpm_util.c
iwpm_util.h
mad.c IB/mad: Require CM send method for everything except ClassPortInfo 2015-12-08 12:19:11 -05:00
mad_priv.h
mad_rmpp.c
mad_rmpp.h
Makefile
multicast.c
netlink.c
opa_smi.h
packer.c
roce_gid_mgmt.c
sa.h
sa_query.c IB/sa: Put netlink request into the request list before sending 2015-12-07 16:43:01 -05:00
smi.c
smi.h
sysfs.c
ucm.c
ucma.c
ud_header.c
umem.c
umem_odp.c
umem_rbtree.c
user_mad.c
uverbs.h
uverbs_cmd.c
uverbs_main.c
uverbs_marshall.c
verbs.c IB core: Fix ib_sg_to_pages() 2015-12-07 17:20:12 -05:00