MCPcopy Create free account
hub / github.com/F-Stack/f-stack / krping_format_send

Function krping_format_send

freebsd/contrib/rdma/krping/krping.c:753–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753static void krping_format_send(struct krping_cb *cb, u64 buf)
754{
755 struct krping_rdma_info *info = &cb->send_buf;
756 u32 rkey;
757
758 /*
759 * Client side will do reg or mw bind before
760 * advertising the rdma buffer. Server side
761 * sends have no data.
762 */
763 if (!cb->server || cb->wlat || cb->rlat || cb->bw) {
764 rkey = krping_rdma_rkey(cb, buf, !cb->server_invalidate);
765 info->buf = htonll(buf);
766 info->rkey = htonl(rkey);
767 info->size = htonl(cb->size);
768 DEBUG_LOG("RDMA addr %llx rkey %x len %d\n",
769 (unsigned long long)buf, rkey, cb->size);
770 }
771}
772
773static void krping_test_server(struct krping_cb *cb)
774{

Callers 7

krping_rlat_test_serverFunction · 0.85
krping_wlat_test_serverFunction · 0.85
krping_bw_test_serverFunction · 0.85
krping_test_clientFunction · 0.85
krping_rlat_test_clientFunction · 0.85
krping_wlat_test_clientFunction · 0.85
krping_bw_test_clientFunction · 0.85

Calls 2

krping_rdma_rkeyFunction · 0.85
htonllFunction · 0.50

Tested by

no test coverage detected