-/*
- * This file is part of Lustre, https://wiki.hpdd.intel.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_
-/*
- * 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/types.h>
+#include <linux/lnet/lnet-types.h>
/** \addtogroup lnet_fault_simulation
* @{ */
lnet_nid_t fa_src;
/** destination NID of drop rule, see \a dr_src for details */
lnet_nid_t fa_dst;
+ /** local NID. In case of router this is the NID we're ceiving
+ * messages on
+ */
+ lnet_nid_t fa_local_nid;
/**
* Portal mask to drop, -1 means all portals, for example:
* fa_ptl_mask = (1 << _LDLM_CB_REQUEST_PORTAL ) |
/** 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 */
+ da_drop_all:1;
} drop;
/** message latency simulation */
struct {