* 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). */
| 1508 | * the default one (ixgbe_mbox_api_10). |
| 1509 | */ |
| 1510 | static void |
| 1511 | ixgbevf_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 | |
| 1530 | static void |
| 1531 | generate_random_mac_addr(struct rte_ether_addr *mac_addr) |
no test coverage detected