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

Function ngbe_negotiate_vf_api

dpdk/drivers/net/ngbe/ngbe_pf.c:467–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467static int
468ngbe_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
491static int
492ngbe_get_vf_queues(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf)

Callers 1

ngbe_rcv_msg_from_vfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected