All of lore.kernel.org
 help / color / mirror / Atom feed
From: Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	talal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	yonatanc-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Kamal Heib <kamalh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Amir Vadai <amirv-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: [PATCH v2 rdma-next 04/29] IB/rxe: External interface to lower level modules
Date: Thu, 16 Jun 2016 16:45:26 +0300	[thread overview]
Message-ID: <1466084751-29901-5-git-send-email-monis@mellanox.com> (raw)
In-Reply-To: <1466084751-29901-1-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Functions to be called by the networking layer.

Signed-off-by: Kamal Heib <kamalh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Amir Vadai <amirv-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Reviewed-by: Haggai Eran <haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 drivers/infiniband/hw/rxe/rxe.h | 70 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 drivers/infiniband/hw/rxe/rxe.h

diff --git a/drivers/infiniband/hw/rxe/rxe.h b/drivers/infiniband/hw/rxe/rxe.h
new file mode 100644
index 0000000..7d05f31
--- /dev/null
+++ b/drivers/infiniband/hw/rxe/rxe.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
+ * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *	- Redistributions of source code must retain the above
+ *	  copyright notice, this list of conditions and the following
+ *	  disclaimer.
+ *
+ *	- Redistributions in binary form must reproduce the above
+ *	  copyright notice, this list of conditions and the following
+ *	  disclaimer in the documentation and/or other materials
+ *	  provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#ifndef RXE_H
+#define RXE_H
+
+#include <linux/module.h>
+#include <linux/skbuff.h>
+#include <linux/crc32.h>
+
+#include <rdma/ib_verbs.h>
+#include <rdma/ib_user_verbs.h>
+#include <rdma/ib_pack.h>
+#include <rdma/ib_smi.h>
+#include <rdma/ib_umem.h>
+#include <rdma/ib_cache.h>
+#include <rdma/ib_addr.h>
+
+#include "rxe_net.h"
+#include "rxe_opcode.h"
+#include "rxe_hdr.h"
+#include "rxe_param.h"
+#include "rxe_verbs.h"
+
+#define RXE_UVERBS_ABI_VERSION		(1)
+
+#define IB_PHYS_STATE_LINK_UP		(5)
+
+#define RXE_ROCE_V2_SPORT		(0xc000)
+
+int rxe_set_mtu(struct rxe_dev *rxe, unsigned int dev_mtu,
+		unsigned int port_num);
+
+int rxe_add(struct rxe_dev *rxe, unsigned int mtu);
+
+void rxe_remove(struct rxe_dev *rxe);
+
+int rxe_rcv(struct sk_buff *skb);
+
+#endif /* RXE_H */
-- 
1.8.3.1

--
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

  parent reply	other threads:[~2016-06-16 13:45 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-16 13:45 [PATCH v2 rdma-next 00/29] Soft RoCE driver Moni Shoua
     [not found] ` <1466084751-29901-1-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-06-16 13:45   ` [PATCH v2 rdma-next 01/29] IB/rxe: IBA header types and methods Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 02/29] IB/rxe: Bit mask and lengths declaration for different opcodes Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 03/29] IB/rxe: Default rxe device and port parameters Moni Shoua
2016-06-16 13:45   ` Moni Shoua [this message]
2016-06-16 13:45   ` [PATCH v2 rdma-next 05/29] IB/rxe: Misc local interfaces between files Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 06/29] IB/rxe: Add maintainer for rxe driver Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 07/29] IB/rxe: Work request's opcode information table Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 08/29] IB/rxe: User/kernel shared queues infrastructure Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 09/29] IB/rxe: Common user/kernel queue implementation Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 10/29] IB/rxe: Interface to ib_core Moni Shoua
     [not found]     ` <1466084751-29901-11-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-06-16 14:47       ` Steve Wise
2016-06-16 14:53         ` Moni Shoua
2016-06-16 18:01         ` Jason Gunthorpe
     [not found]           ` <20160616180131.GD23229-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-06-19 11:12             ` Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 11/29] IB/rxe: Allocation pool for RDMA objects Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 12/29] IB/rxe: RXE tasks handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 13/29] IB/rxe: Address vector manipulation functions Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 14/29] IB/rxe: Shared Receive Queue (SRQ) " Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 15/29] IB/rxe: Completion Queue (CQ) " Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 16/29] IB/rxe: Queue Pair (QP) handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 17/29] IB/rxe: Memory Region (MR) manioulation Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 18/29] IB/rxe: Add multicast infrastructure Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 19/29] IB/rxe: Received packets handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 20/29] IB/rxe: Completion handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 21/29] IB/rxe: QP request handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 22/29] IB/rxe: QP response handling Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 23/29] IB/rxe: Dummy DMA callbacks for RXE device Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 24/29] IB/rxe: Invariant CRC implementation Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 25/29] IB/rxe: Module init hooks Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 26/29] IB/rxe: Interface to netdev stack Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 27/29] IB/rxe: sysfs interface to RXE Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 28/29] IB/rxe: Shared objects between user and kernel Moni Shoua
2016-06-16 13:45   ` [PATCH v2 rdma-next 29/29] IB/rxe: Add Soft-RoCE to kbuild and makefiles Moni Shoua
2016-06-16 13:50   ` [PATCH v2 rdma-next 00/29] Soft RoCE driver Christoph Hellwig
     [not found]     ` <20160616135056.GA27373-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2016-06-16 13:55       ` Moni Shoua
     [not found]         ` <CAG9sBKO7psY+YkLCeGH1s9jmEizdkySbPz0tbtbO45Mo4bvVSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-16 14:31           ` Steve Wise
2016-06-16 14:34             ` Moni Shoua
2016-06-16 14:30   ` Steve Wise
2016-06-20 19:10   ` Steve Wise
2016-06-21  7:21     ` Moni Shoua
     [not found]       ` <CAG9sBKPOxXMb=cFQTqiujRmRBz=HwK5yAZROvjsCeLXN_OT0EA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-21 13:52         ` Steve Wise
2016-06-23 16:18   ` Doug Ledford
     [not found]     ` <c233fabc-7779-db30-b983-13cf61094716-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-06-23 16:22       ` Moni Shoua
2016-06-24 17:11       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A82373AB0651CA-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-06-24 21:27           ` Doug Ledford
2016-06-26 11:48       ` Moni Shoua

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=1466084751-29901-5-git-send-email-monis@mellanox.com \
    --to=monis-vpraknaxozvwk0htik3j/w@public.gmane.org \
    --cc=amirv-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=kamalh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=talal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=yonatanc-VPRAkNaXOzVWk0Htik3J/w@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.