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

Function memif_msg_receive_disconnect

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

Source from the content-addressed store, hash-verified

368}
369
370static int
371memif_msg_receive_disconnect(struct rte_eth_dev *dev, memif_msg_t *msg)
372{
373 struct pmd_internals *pmd = dev->data->dev_private;
374 memif_msg_disconnect_t *d = &msg->disconnect;
375
376 memset(pmd->remote_disc_string, 0, sizeof(pmd->remote_disc_string));
377 strlcpy(pmd->remote_disc_string, (char *)d->string,
378 sizeof(pmd->remote_disc_string));
379
380 MIF_LOG(INFO, "Disconnect received: %s", pmd->remote_disc_string);
381
382 memset(pmd->local_disc_string, 0, 96);
383 memif_disconnect(dev);
384 return 0;
385}
386
387static int
388memif_msg_enq_ack(struct rte_eth_dev *dev)

Callers 1

memif_msg_receiveFunction · 0.85

Calls 3

memsetFunction · 0.85
memif_disconnectFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected