+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
+ *
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
+ *
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
+ *
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
+ *
+ */
+
/************************************************************************
* Tunable defaults that {u,k}lnds/ptllnd should have in common.
*/
-# Copyright (C) 2001 Cluster File Systems, Inc.
-#
-# This code is issued under the GNU General Public License.
-# See the file COPYING in this distribution
-
if MODULES
if BUILD_PTLLND
modulenet_DATA = kptllnd$(KMODEXT)
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: PJ Kirner <pjkirner@clusterfs.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: PJ Kirner <pjkirner@clusterfs.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
unsigned int offset,
unsigned int mlen,
unsigned int rlen);
-
+
int kptllnd_eager_recv(
- struct lnet_ni *ni,
+ struct lnet_ni *ni,
void *private,
lnet_msg_t *msg,
- void **new_privatep);
+ void **new_privatep);
void kptllnd_eq_callback(
ptl_event_t *evp);
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: PJ Kirner <pjkirner@clusterfs.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
*/
if(target_is_router || routing)
break;
-
- PJK_UT_MSG_DATA("nob=%d\n",lntmsg->msg_md->md_length);
+
+ PJK_UT_MSG_DATA("nob=%d\n",lntmsg->msg_md->md_length);
/* Is the payload small enough not to need RDMA? */
nob = offsetof(kptl_msg_t, ptlm_u.immediate.kptlim_payload[lntmsg->msg_md->md_length]);
}
int kptllnd_eager_recv(
- struct lnet_ni *ni,
+ struct lnet_ni *ni,
void *private,
lnet_msg_t *msg,
void **new_privatep)
{
//kptl_data_t *kptllnd_data = ni->ni_data;
kptl_rx_t *rx = private;
-
+
PJK_UT_MSG_DATA("Eager RX=%p RXB=%p\n",rx,rx->rx_rxb);
LASSERT(rx->rx_nob < *kptllnd_tunables.kptl_max_immd_size);
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: PJ Kirner <pjkirner@clusterfs.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
static int simulation_bitmap = 0;
CFS_MODULE_PARM(simulation_bitmap, "i", int, 0444,
"simulation bitmap");
-#endif
+#endif
kptl_tunables_t kptllnd_tunables = {
.kptl_peercredits = &peercredits,
.kptl_max_immd_size = &max_immd_size,
.kptl_peer_hash_table_size = &peer_hash_table_size,
-#ifdef PJK_DEBUGGING
+#ifdef PJK_DEBUGGING
.kptl_simulation_bitmap = &simulation_bitmap,
-#endif
+#endif
};
sizeof(int), 0444, NULL, &proc_dointvec},
{10, "peer_hash_table_size,", &peer_hash_table_size,
sizeof(int), 0444, NULL, &proc_dointvec},
-
-#ifdef PJK_DEBUGGING
+
+#ifdef PJK_DEBUGGING
{11, "simulation_bitmap,", &simulation_bitmap,
sizeof(int), 0444, NULL, &proc_dointvec},
#endif
-
+
{0}
};
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
+ *
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
+ *
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
+ *
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
+ *
+ */
+
#include "ptllnd.h"
#include <libcfs/list.h>
* posted to portals
*/
tx->tx_mdh = PTL_INVALID_HANDLE;
-
+
spin_unlock(&peer->peer_lock);
-
+
kptllnd_tx_decref(tx);
rc2 = PtlMEUnlink(meh);
LASSERT(atomic_read(&tx->tx_refcount)>1);
rc2 = PtlMDUnlink(tx->tx_mdh_msg);
LASSERT( rc2 == 0);
-
-
+
+
#ifndef LUSTRE_PORTALS_UNLINK_SEMANTICS
tx->tx_mdh_msg = PTL_INVALID_HANDLE;
kptllnd_tx_decref(tx);
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2002 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
*
- * This file is part of Portals
- * http://sourceforge.net/projects/sandiaportals/
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * 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.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
off < sizeof(stats_name_table) / sizeof(stats_name_table[0])){
pssi->pssi_index = off;
return 0;
- }
+ }
return -ENOENT;
}
static void *
-ptllnd_stats_seq_start (struct seq_file *s, loff_t *pos)
+ptllnd_stats_seq_start (struct seq_file *s, loff_t *pos)
{
ptllnd_stats_seq_iterator_t *pssi;
int rc;
-
+
PORTAL_ALLOC(pssi, sizeof(*pssi));
if (pssi == NULL)
return NULL;
rc = ptllnd_stats_seq_seek(pssi, *pos);
if (rc == 0)
return pssi;
-
+
PORTAL_FREE(pssi, sizeof(*pssi));
return NULL;
}
ptllnd_stats_seq_stop (struct seq_file *s, void *iter)
{
ptllnd_stats_seq_iterator_t *pssi = iter;
-
+
if (pssi != NULL)
PORTAL_FREE(pssi, sizeof(*pssi));
}
PORTAL_FREE(pssi, sizeof(*pssi));
return NULL;
}
-
+
*pos = next;
return pssi;
}
-static int
+static int
ptllnd_stats_seq_show (struct seq_file *s, void *iter)
{
ptllnd_stats_seq_iterator_t *pssi = iter;
-
+
seq_printf(s,"%02d %-40s %d\n",
(int)pssi->pssi_index,
stats_name_table[pssi->pssi_index],
((int*)&kptllnd_stats)[pssi->pssi_index]);
-
+
return 0;
}
struct proc_dir_entry *dp = PDE(inode);
struct seq_file *sf;
int rc;
-
+
rc = seq_open(file, &ptllnd_stats_sops);
if (rc == 0) {
sf = file->private_data;
sf->private = dp->data;
}
-
+
return rc;
}
.release = seq_release,
};
-void
+void
kptllnd_proc_init(void)
{
struct proc_dir_entry *stats;
CERROR("couldn't create proc entry %s\n", LNET_PTLLND_PROC_STATS);
return;
}
-
+
stats->proc_fops = &ptllnd_stats_fops;
- stats->data = NULL;
+ stats->data = NULL;
}
void
-#include "ptllnd.h"
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
+ *
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
+ *
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
+ *
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
+ *
+ */
+
+ #include "ptllnd.h"
kptl_rx_t*
kptllnd_rx_alloc(
kptl_peer_t *peer = rx->rx_peer;
kptl_msg_t *msg = rx->rx_msg;
int returned_credits = msg->ptlm_credits;
-
+
PJK_UT_MSG(">>> rx=%p\n",rx);
STAT_UPDATE(kps_rx_released);
-#include "ptllnd.h"
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
+ *
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
+ *
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
+ *
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
+ *
+ */
+
+ #include "ptllnd.h"
void
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: PJ Kirner <pjkirner@clusterfs.com>
+ *
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
+ *
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
+ *
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
+ *
*/
#include <stdio.h>
#include <string.h>
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: Eric Barton <eeb@bartonsoftware.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
* Author: Eric Barton <eeb@bartonsoftware.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/
+
#define DEBUG_SUBSYSTEM S_NAL
#include <lnet/lib-lnet.h>
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2005 Cluster File Systems, Inc.
- * Author: Eric Barton <ebarton@clusterfs.com>
+ * Copyright (C) 2005 Cluster File Systems, Inc. All rights reserved.
+ * Author: Eric Barton <eeb@bartonsoftware.com>
*
- * This file is part of Lustre, http://www.lustre.org.
+ * This file is part of the Lustre file system, http://www.lustre.org
+ * Lustre is a trademark of Cluster File Systems, Inc.
*
- * Lustre 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.
+ * This file is confidential source code owned by Cluster File Systems.
+ * No viewing, modification, compilation, redistribution, or any other
+ * form of use is permitted except through a signed license agreement.
*
- * Lustre 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 Lustre; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * If you have not signed such an agreement, then you have no rights to
+ * this file. Please destroy it immediately and contact CFS.
*
*/