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

Function memif_msg_enq_connect

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

Source from the content-addressed store, hash-verified

470}
471
472static int
473memif_msg_enq_connect(struct rte_eth_dev *dev)
474{
475 struct pmd_internals *pmd = dev->data->dev_private;
476 struct memif_msg_queue_elt *e = memif_msg_enq(pmd->cc);
477 memif_msg_connect_t *c;
478
479 if (e == NULL)
480 return -1;
481
482 c = &e->msg.connect;
483 e->msg.type = MEMIF_MSG_TYPE_CONNECT;
484 strlcpy((char *)c->if_name, dev->data->name, sizeof(c->if_name));
485
486 return 0;
487}
488
489static int
490memif_msg_enq_connected(struct rte_eth_dev *dev)

Callers 1

memif_msg_receiveFunction · 0.85

Calls 2

memif_msg_enqFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected