| 251 | } |
| 252 | |
| 253 | static void |
| 254 | nfp_net_beat_timer(void *arg) |
| 255 | { |
| 256 | uint64_t cur_sec; |
| 257 | struct nfp_multi_pf *multi_pf = arg; |
| 258 | |
| 259 | cur_sec = rte_rdtsc(); |
| 260 | nn_writeq(cur_sec, multi_pf->beat_addr + NFP_BEAT_OFFSET(multi_pf->function_id)); |
| 261 | |
| 262 | /* Beat once per second. */ |
| 263 | if (rte_eal_alarm_set(1000 * 1000, nfp_net_beat_timer, |
| 264 | (void *)multi_pf) < 0) { |
| 265 | PMD_DRV_LOG(ERR, "Error setting alarm"); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | static int |
| 270 | nfp_net_keepalive_init(struct nfp_cpp *cpp, |
nothing calls this directly
no test coverage detected