Whamcloud - gitweb
LU-17744 ldiskfs: mballoc stats fixes
[fs/lustre-release.git] / lnet / include / uapi / linux / lnet / lnetctl.h
index cdf5849..bf86aed 100644 (file)
@@ -1,39 +1,17 @@
-/*
- *   This file is part of Lustre, https://wiki.whamcloud.com/
- *
- *   Portals is free software; you can redistribute it and/or
- *   modify it under the terms of version 2 of the GNU General Public
- *   License as published by the Free Software Foundation.
- *
- *   Portals is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with Portals; if not, write to the Free Software
- *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// SPDX-License-Identifier: GPL-2.0
+
+/* Copyright (c) 2014, 2017, Intel Corporation. */
+
+/* This file is part of Lustre, http://www.lustre.org/
  *
  * header for lnet ioctl
  */
-/*
- * Copyright (c) 2014, 2017, Intel Corporation.
- */
+
 #ifndef __UAPI_LNETCTL_H_
 #define __UAPI_LNETCTL_H_
 
 #include <linux/types.h>
-/*
- * This is due to us being out of kernel and the way the OpenSFS branch
- * handles CFLAGS.
- */
-#ifdef __KERNEL__
-# include <uapi/linux/lnet/lnet-types.h>
-#else
-# include <linux/lnet/lnet-types.h>
-#endif
-
-#include <stdbool.h>
+#include <linux/lnet/lnet-types.h>
 
 /** \addtogroup lnet_fault_simulation
  * @{ */
@@ -111,9 +89,9 @@ struct lnet_fault_attr {
                        /** error type mask */
                        __u32                   da_health_error_mask;
                        /** randomize error generation */
-                       bool                    da_random;
+                       __u32                   da_random:1,
                        /** drop all messages if flag is set */
-                       bool                    da_drop_all;
+                                               da_drop_all:1;
                } drop;
                /** message latency simulation */
                struct {