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

Function ixgbevf_negotiate_api

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:1510–1528  ·  view source on GitHub ↗

* Negotiate mailbox API version with the PF. * After reset API version is always set to the basic one (ixgbe_mbox_api_10). * Then we try to negotiate starting with the most recent one. * If all negotiation attempts fail, then we will proceed with * the default one (ixgbe_mbox_api_10). */

Source from the content-addressed store, hash-verified

1508 * the default one (ixgbe_mbox_api_10).
1509 */
1510static void
1511ixgbevf_negotiate_api(struct ixgbe_hw *hw)
1512{
1513 int32_t i;
1514
1515 /* start with highest supported, proceed down */
1516 static const enum ixgbe_pfvf_api_rev sup_ver[] = {
1517 ixgbe_mbox_api_13,
1518 ixgbe_mbox_api_12,
1519 ixgbe_mbox_api_11,
1520 ixgbe_mbox_api_10,
1521 };
1522
1523 for (i = 0;
1524 i != RTE_DIM(sup_ver) &&
1525 ixgbevf_negotiate_api_version(hw, sup_ver[i]) != 0;
1526 i++)
1527 ;
1528}
1529
1530static void
1531generate_random_mac_addr(struct rte_ether_addr *mac_addr)

Callers 2

eth_ixgbevf_dev_initFunction · 0.85
ixgbevf_dev_startFunction · 0.85

Calls 1

Tested by

no test coverage detected