mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
RDMA/cm: Delete not implemented CM peer to peer communication
Peer to peer support was never implemented, so delete it to make code less clutter. Link: https://lore.kernel.org/r/20200310091438.248429-6-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Mark Zhang <markz@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
a762d460a0
commit
a4f994a059
2 changed files with 0 additions and 8 deletions
|
@ -261,7 +261,6 @@ struct cm_id_private {
|
||||||
__be16 pkey;
|
__be16 pkey;
|
||||||
u8 private_data_len;
|
u8 private_data_len;
|
||||||
u8 max_cm_retries;
|
u8 max_cm_retries;
|
||||||
u8 peer_to_peer;
|
|
||||||
u8 responder_resources;
|
u8 responder_resources;
|
||||||
u8 initiator_depth;
|
u8 initiator_depth;
|
||||||
u8 retry_count;
|
u8 retry_count;
|
||||||
|
@ -1381,10 +1380,6 @@ static void cm_format_req(struct cm_req_msg *req_msg,
|
||||||
|
|
||||||
static int cm_validate_req_param(struct ib_cm_req_param *param)
|
static int cm_validate_req_param(struct ib_cm_req_param *param)
|
||||||
{
|
{
|
||||||
/* peer-to-peer not supported */
|
|
||||||
if (param->peer_to_peer)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
if (!param->primary_path)
|
if (!param->primary_path)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
@ -2437,8 +2432,6 @@ static int cm_rep_handler(struct cm_work *work)
|
||||||
cm_ack_timeout(cm_id_priv->target_ack_delay,
|
cm_ack_timeout(cm_id_priv->target_ack_delay,
|
||||||
cm_id_priv->alt_av.timeout - 1);
|
cm_id_priv->alt_av.timeout - 1);
|
||||||
|
|
||||||
/* todo: handle peer_to_peer */
|
|
||||||
|
|
||||||
ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg);
|
ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg);
|
||||||
ret = atomic_inc_and_test(&cm_id_priv->work_count);
|
ret = atomic_inc_and_test(&cm_id_priv->work_count);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
|
@ -360,7 +360,6 @@ struct ib_cm_req_param {
|
||||||
u32 starting_psn;
|
u32 starting_psn;
|
||||||
const void *private_data;
|
const void *private_data;
|
||||||
u8 private_data_len;
|
u8 private_data_len;
|
||||||
u8 peer_to_peer;
|
|
||||||
u8 responder_resources;
|
u8 responder_resources;
|
||||||
u8 initiator_depth;
|
u8 initiator_depth;
|
||||||
u8 remote_cm_response_timeout;
|
u8 remote_cm_response_timeout;
|
||||||
|
|
Loading…
Reference in a new issue