| 465 | } |
| 466 | |
| 467 | static int |
| 468 | ngbe_negotiate_vf_api(struct rte_eth_dev *eth_dev, |
| 469 | uint32_t vf, uint32_t *msgbuf) |
| 470 | { |
| 471 | uint32_t api_version = msgbuf[1]; |
| 472 | struct ngbe_vf_info *vfinfo = *NGBE_DEV_VFDATA(eth_dev); |
| 473 | |
| 474 | switch (api_version) { |
| 475 | case ngbe_mbox_api_10: |
| 476 | case ngbe_mbox_api_11: |
| 477 | case ngbe_mbox_api_12: |
| 478 | case ngbe_mbox_api_13: |
| 479 | vfinfo[vf].api_version = (uint8_t)api_version; |
| 480 | return 0; |
| 481 | default: |
| 482 | break; |
| 483 | } |
| 484 | |
| 485 | PMD_DRV_LOG(ERR, "Negotiate invalid api version %u from VF %d", |
| 486 | api_version, vf); |
| 487 | |
| 488 | return -1; |
| 489 | } |
| 490 | |
| 491 | static int |
| 492 | ngbe_get_vf_queues(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf) |
no outgoing calls
no test coverage detected