| 54 | }; |
| 55 | |
| 56 | static int |
| 57 | ssovf_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 | |
| 76 | struct ssovf_mbox_grp_pri { |
| 77 | uint8_t vhgrp_id; |
no test coverage detected