Motr  M0
lnet_core.c File Reference
#include <stdio.h>
#include "lib/misc.h"
#include "motr/magic.h"
Include dependency graph for lnet_core.c:

Go to the source code of this file.

Macros

#define CBD_EP(f)   cbd->cbd_passive_ep.cepa_ ## f
 
#define TM_EP(f)   lctm->ctm_addr.cepa_ ## f
 
#define B_EP(f)   lcbuf->cb_addr.cepa_ ## f
 

Functions

static bool nlx_core_tm_invariant (const struct nlx_core_transfer_mc *lctm)
 
static bool nlx_core_tm_is_locked (const struct nlx_core_transfer_mc *lctm)
 
static bool nlx_core_buffer_invariant (const struct nlx_core_buffer *lcb)
 
static uint32_t nlx_core_kmem_loc_checksum (const struct nlx_core_kmem_loc *loc)
 
static void nlx_core_bev_free_cb (struct nlx_core_bev_link *ql)
 
M0_INTERNAL int nlx_core_bevq_provision (struct nlx_core_domain *lcdom, struct nlx_core_transfer_mc *lctm, size_t need)
 
M0_INTERNAL void nlx_core_bevq_release (struct nlx_core_transfer_mc *lctm, size_t release)
 
M0_INTERNAL bool nlx_core_buf_event_get (struct nlx_core_transfer_mc *lctm, struct nlx_core_buffer_event *lcbe)
 
static uint64_t nlx_core_match_bits_encode (uint32_t tmid, uint64_t counter)
 
static void nlx_core_match_bits_decode (uint64_t mb, uint32_t *tmid, uint64_t *counter)
 
static uint64_t nlx_core_buf_desc_checksum (const struct nlx_core_buf_desc *cbd)
 
M0_INTERNAL void nlx_core_buf_desc_encode (struct nlx_core_transfer_mc *lctm, struct nlx_core_buffer *lcbuf, struct nlx_core_buf_desc *cbd)
 
M0_INTERNAL int nlx_core_buf_desc_decode (struct nlx_core_transfer_mc *lctm, struct nlx_core_buffer *lcbuf, struct nlx_core_buf_desc *cbd)
 
int nlx_core_ep_addr_decode (struct nlx_core_domain *lcdom, const char *ep_addr, struct nlx_core_ep_addr *cepa)
 
void nlx_core_ep_addr_encode (struct nlx_core_domain *lcdom, const struct nlx_core_ep_addr *cepa, char buf[M0_NET_LNET_XEP_ADDR_LEN])
 
M0_INTERNAL void nlx_core_dom_set_debug (struct nlx_core_domain *lcdom, unsigned dbg)
 
M0_INTERNAL void nlx_core_tm_set_debug (struct nlx_core_transfer_mc *lctm, unsigned dbg)