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

Function ssovf_mbox_getwork_tmo_set

dpdk/drivers/event/octeontx/ssovf_evdev.c:56–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56static int
57ssovf_mbox_getwork_tmo_set(uint32_t timeout_ns)
58{
59 struct octeontx_mbox_hdr hdr = {0};
60 struct ssovf_mbox_getwork_wait tmo_set;
61 uint16_t len = sizeof(struct ssovf_mbox_getwork_wait);
62 int ret;
63
64 hdr.coproc = SSO_COPROC;
65 hdr.msg = SSO_SET_GETWORK_WAIT;
66 hdr.vfid = 0;
67
68 tmo_set.wait_ns = timeout_ns;
69 ret = octeontx_mbox_send(&hdr, &tmo_set, len, NULL, 0);
70 if (ret)
71 ssovf_log_err("Failed to set getwork timeout(%d)", ret);
72
73 return ret;
74}
75
76struct ssovf_mbox_grp_pri {
77 uint8_t vhgrp_id;

Callers 1

ssovf_configureFunction · 0.85

Calls 1

octeontx_mbox_sendFunction · 0.85

Tested by

no test coverage detected