summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/efa/efa.h
diff options
context:
space:
mode:
authorGal Pressman <galpress@amazon.com>2020-04-20 09:22:12 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-02 20:32:14 -0300
commiteca5757f804f046dfaab4e9d3ea39af1f2523990 (patch)
tree55ab4078a3a15e3b4a0fa0d22b87529aa9910ef4 /drivers/infiniband/hw/efa/efa.h
parentb2ea69b3b4430642c98eea2c2d08419f2f02124d (diff)
RDMA/efa: Count mmap failures
Add a new stat that counts mmap failures, which might help when debugging different issues. Link: https://lore.kernel.org/r/20200420062213.44577-3-galpress@amazon.com Reviewed-by: Firas JahJah <firasj@amazon.com> Reviewed-by: Yossi Leybovich <sleybo@amazon.com> Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/efa/efa.h')
-rw-r--r--drivers/infiniband/hw/efa/efa.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/efa/efa.h b/drivers/infiniband/hw/efa/efa.h
index 45d519edb4c3..1889dd172a25 100644
--- a/drivers/infiniband/hw/efa/efa.h
+++ b/drivers/infiniband/hw/efa/efa.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/*
- * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All rights reserved.
+ * Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
*/
#ifndef _EFA_H_
@@ -40,6 +40,7 @@ struct efa_sw_stats {
atomic64_t reg_mr_err;
atomic64_t alloc_ucontext_err;
atomic64_t create_ah_err;
+ atomic64_t mmap_err;
};
/* Don't use anything other than atomic64 */