Thread (72 messages) 72 messages, 12 authors, 2019-10-31

Re: [RFC 15/20] RDMA/irdma: Add miscellaneous utility definitions

From: Leon Romanovsky <leon@kernel.org>
Date: 2019-09-26 17:49:54
Also in: linux-rdma

On Thu, Sep 26, 2019 at 09:45:14AM -0700, Jeff Kirsher wrote:
quoted hunk ↗ jump to hunk
From: Mustafa Ismail <redacted>

Add miscellaneous utility functions and headers.

Signed-off-by: Mustafa Ismail <redacted>
Signed-off-by: Shiraz Saleem <redacted>
---
 drivers/infiniband/hw/irdma/osdep.h  |  108 ++
 drivers/infiniband/hw/irdma/protos.h |   96 ++
 drivers/infiniband/hw/irdma/status.h |   70 +
 drivers/infiniband/hw/irdma/utils.c  | 2333 ++++++++++++++++++++++++++
 4 files changed, 2607 insertions(+)
 create mode 100644 drivers/infiniband/hw/irdma/osdep.h
 create mode 100644 drivers/infiniband/hw/irdma/protos.h
 create mode 100644 drivers/infiniband/hw/irdma/status.h
 create mode 100644 drivers/infiniband/hw/irdma/utils.c
diff --git a/drivers/infiniband/hw/irdma/osdep.h b/drivers/infiniband/hw/irdma/osdep.h
new file mode 100644
index 000000000000..5885b6fa413d
--- /dev/null
+++ b/drivers/infiniband/hw/irdma/osdep.h
@@ -0,0 +1,108 @@
+/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */
+/* Copyright (c) 2019, Intel Corporation. */
+
+#ifndef IRDMA_OSDEP_H
+#define IRDMA_OSDEP_H
+
+#include <linux/version.h>
+#include <linux/kernel.h>
+#include <linux/vmalloc.h>
+#include <linux/string.h>
+#include <linux/bitops.h>
+#include <linux/pci.h>
+#include <net/tcp.h>
+#include <crypto/hash.h>
+/* get readq/writeq support for 32 bit kernels, use the low-first version */
+#include <linux/io-64-nonatomic-lo-hi.h>
+
+#define MAKEMASK(m, s) ((m) << (s))
It is a little bit over-macro.

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help