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

Function ixgbe_negotiate_vf_api

dpdk/drivers/net/ixgbe/ixgbe_pf.c:613–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static int
614ixgbe_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
637static int
638ixgbe_get_vf_queues(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf)

Callers 1

ixgbe_rcv_msg_from_vfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected