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

Function ixgbe_add_rar

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

Source from the content-addressed store, hash-verified

5268}
5269
5270static int
5271ixgbe_add_rar(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
5272 uint32_t index, uint32_t pool)
5273{
5274 struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
5275 uint32_t enable_addr = 1;
5276
5277 /*
5278 * This function calls into the base driver, which in turn will use
5279 * function pointers, which are not guaranteed to be valid in secondary
5280 * processes, so avoid using this function in secondary processes.
5281 */
5282 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
5283 return -E_RTE_SECONDARY;
5284
5285 return ixgbe_set_rar(hw, index, mac_addr->addr_bytes,
5286 pool, enable_addr);
5287}
5288
5289static void
5290ixgbe_remove_rar(struct rte_eth_dev *dev, uint32_t index)

Callers 1

Calls 2

rte_eal_process_typeFunction · 0.85
ixgbe_set_rarFunction · 0.85

Tested by

no test coverage detected