| 611 | } |
| 612 | |
| 613 | static int |
| 614 | ixgbe_negotiate_vf_api(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) |
| 615 | { |
| 616 | uint32_t api_version = msgbuf[1]; |
| 617 | struct ixgbe_vf_info *vfinfo = |
| 618 | *IXGBE_DEV_PRIVATE_TO_P_VFDATA(dev->data->dev_private); |
| 619 | |
| 620 | switch (api_version) { |
| 621 | case ixgbe_mbox_api_10: |
| 622 | case ixgbe_mbox_api_11: |
| 623 | case ixgbe_mbox_api_12: |
| 624 | case ixgbe_mbox_api_13: |
| 625 | vfinfo[vf].api_version = (uint8_t)api_version; |
| 626 | return 0; |
| 627 | default: |
| 628 | break; |
| 629 | } |
| 630 | |
| 631 | PMD_DRV_LOG(ERR, "Negotiate invalid api version %u from VF %d", |
| 632 | api_version, vf); |
| 633 | |
| 634 | return -1; |
| 635 | } |
| 636 | |
| 637 | static int |
| 638 | ixgbe_get_vf_queues(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) |
no outgoing calls
no test coverage detected