From: Roland Dreier <rdreier@cisco.com>
To: Steve Wise <swise@opengridcomputing.com>, tom@opengridcomputing.com
Cc: openib-general@openib.org, netdev@vger.kernel.org
Subject: Re: [PATCH v5 1/2] iWARP Connection Manager.
Date: Wed, 30 Aug 2006 10:35:30 -0700 [thread overview]
Message-ID: <adafyfem8il.fsf@cisco.com> (raw)
In-Reply-To: <20060803210240.16228.18429.stgit@dell3.ogc.int> (Steve Wise's message of "Thu, 03 Aug 2006 16:02:40 -0500")
OK, getting closer to finishing the merge...
anyway, why is iw_cm_private.h in include/rdma where it is visible
everywhere? As far as I can tell drivers/infiniband/core/iwcm.c is
the only place it's included. So why not just put this stuff in
drivers/infiniband/core/iwcm.h and do
#include "iwcm.h"
Or the file is small enough that maybe it's simpler just to stuff this
at the top of iwcm.c and kill the include entirely?
- R.
> --- /dev/null
> +++ b/include/rdma/iw_cm_private.h
> @@ -0,0 +1,63 @@
> +#ifndef IW_CM_PRIVATE_H
> +#define IW_CM_PRIVATE_H
> +
> +#include <rdma/iw_cm.h>
> +
> +enum iw_cm_state {
> + IW_CM_STATE_IDLE, /* unbound, inactive */
> + IW_CM_STATE_LISTEN, /* listen waiting for connect */
> + IW_CM_STATE_CONN_RECV, /* inbound waiting for user accept */
> + IW_CM_STATE_CONN_SENT, /* outbound waiting for peer accept */
> + IW_CM_STATE_ESTABLISHED, /* established */
> + IW_CM_STATE_CLOSING, /* disconnect */
> + IW_CM_STATE_DESTROYING /* object being deleted */
> +};
> +
> +struct iwcm_id_private {
> + struct iw_cm_id id;
> + enum iw_cm_state state;
> + unsigned long flags;
> + struct ib_qp *qp;
> + struct completion destroy_comp;
> + wait_queue_head_t connect_wait;
> + struct list_head work_list;
> + spinlock_t lock;
> + atomic_t refcount;
> + struct list_head work_free_list;
> +};
> +#define IWCM_F_CALLBACK_DESTROY 1
> +#define IWCM_F_CONNECT_WAIT 2
> +
> +#endif /* IW_CM_PRIVATE_H */
next prev parent reply other threads:[~2006-08-30 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 21:02 [PATCH v5 0/2] iWARP Core Support Steve Wise
2006-08-03 21:02 ` [PATCH v5 1/2] iWARP Connection Manager Steve Wise
2006-08-30 17:35 ` Roland Dreier [this message]
2006-08-30 17:52 ` Tom Tucker
2006-08-03 21:02 ` [PATCH v5 2/2] iWARP Core Changes Steve Wise
2006-08-30 20:11 ` Roland Dreier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adafyfem8il.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=netdev@vger.kernel.org \
--cc=openib-general@openib.org \
--cc=swise@opengridcomputing.com \
--cc=tom@opengridcomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.