| 5268 | } |
| 5269 | |
| 5270 | static int |
| 5271 | ixgbe_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 | |
| 5289 | static void |
| 5290 | ixgbe_remove_rar(struct rte_eth_dev *dev, uint32_t index) |
no test coverage detected