From: Aleksey Senin <alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Roland Dreier <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
Moni Shoua <monis-hKgKHo2Ms0F+cjeuK/JdrQ@public.gmane.org>,
Alex Rosenbaum <Alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Subject: [PATCH V2 1/3] RAW_PACKET QP type definition
Date: Wed, 03 Nov 2010 16:33:44 +0200 [thread overview]
Message-ID: <4CD172C8.4010700@voltaire.com> (raw)
In-Reply-To: <4CD171F0.8020506-smomgflXvOZWk0Htik3J/w@public.gmane.org>
The following patch add a new QP type named RAW_PACKET.
This type of QP is used in Ethernet environment and intended for
creation of a whole packet, including L2 headers, from userspace.
Reserve a place for future XRC patch in order to be sure that OFED
kernel ABI will not broken when XRC and RAW patches will be accepted
to upstream kernel.
Signed-off-by: Aleksey Senin <alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
drivers/infiniband/core/verbs.c | 4 ++--
include/rdma/ib_verbs.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index af7a8b0..b04b419 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -326,8 +326,8 @@ EXPORT_SYMBOL(ib_create_qp);
static const struct {
int valid;
- enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETHERTYPE + 1];
- enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETHERTYPE + 1];
+ enum ib_qp_attr_mask req_param[IB_QPT_RAW_PACKET + 1];
+ enum ib_qp_attr_mask opt_param[IB_QPT_RAW_PACKET + 1];
} qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = {
[IB_QPS_RESET] = {
[IB_QPS_RESET] = { .valid = 1 },
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index ecf098a..555165b 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -562,7 +562,8 @@ enum ib_qp_type {
IB_QPT_UC,
IB_QPT_UD,
IB_QPT_RAW_IPV6,
- IB_QPT_RAW_ETHERTYPE
+ IB_QPT_RAW_ETHERTYPE = 7,
+ IB_QPT_RAW_PACKET = 8
};
enum ib_qp_create_flags {
--
1.6.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-11-03 14:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 14:30 [PATCH V2 0/3] New RAW_PACKET QP type Aleksey Senin
[not found] ` <4CD171F0.8020506-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2010-11-03 14:33 ` Aleksey Senin [this message]
[not found] ` <4CD172C8.4010700-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2010-11-03 14:35 ` [PATCH V2 2/3] Security check on " Aleksey Senin
[not found] ` <4CD17345.7040400-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2010-11-03 14:37 ` [PATCH V2 3/3] Add RAW_PACKET to ib_attach/detach mcast calls Aleksey Senin
2010-11-03 14:58 ` [PATCH V2 0/3] New RAW_PACKET QP type Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25B8308783-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-11-05 15:06 ` Steve Wise
[not found] ` <4CD41D5D.9030103-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-11-05 15:15 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25B83D606E-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-11-05 15:20 ` Steve Wise
[not found] ` <4CD420C3.1090803-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-11-05 16:05 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25B83D6128-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-11-05 16:09 ` Steve Wise
[not found] ` <4CD42C54.7010609-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-11-07 6:50 ` Or Gerlitz
[not found] ` <4CD64C1D.6010908-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-11-07 21:04 ` Steve Wise
2010-11-08 6:38 ` Alekseys Senin
2010-11-07 12:16 ` Alekseys Senin
2010-11-04 14:25 ` Or Gerlitz
2010-11-05 15:05 ` Steve Wise
2010-11-11 16:01 ` Alekseys Senin
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=4CD172C8.4010700@voltaire.com \
--to=alekseys-smomgflxvozwk0htik3j/w@public.gmane.org \
--cc=Alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=monis-hKgKHo2Ms0F+cjeuK/JdrQ@public.gmane.org \
--cc=rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
/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.