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

Function memif_msg_enq_connected

dpdk/drivers/net/memif/memif_socket.c:489–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static int
490memif_msg_enq_connected(struct rte_eth_dev *dev)
491{
492 struct pmd_internals *pmd = dev->data->dev_private;
493 struct memif_msg_queue_elt *e = memif_msg_enq(pmd->cc);
494 memif_msg_connected_t *c;
495
496 if (e == NULL)
497 return -1;
498
499 c = &e->msg.connected;
500 e->msg.type = MEMIF_MSG_TYPE_CONNECTED;
501 strlcpy((char *)c->if_name, dev->data->name, sizeof(c->if_name));
502
503 return 0;
504}
505
506static void
507memif_intr_unregister_handler(struct rte_intr_handle *intr_handle, void *arg)

Callers 1

memif_msg_receiveFunction · 0.85

Calls 2

memif_msg_enqFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected