* Check if requested loopback mode is supported */
| 5351 | * Check if requested loopback mode is supported |
| 5352 | */ |
| 5353 | int |
| 5354 | ixgbe_check_supported_loopback_mode(struct rte_eth_dev *dev) |
| 5355 | { |
| 5356 | struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 5357 | |
| 5358 | if (dev->data->dev_conf.lpbk_mode == IXGBE_LPBK_TX_RX) |
| 5359 | if (hw->mac.type == ixgbe_mac_82599EB || |
| 5360 | hw->mac.type == ixgbe_mac_X540 || |
| 5361 | hw->mac.type == ixgbe_mac_X550 || |
| 5362 | hw->mac.type == ixgbe_mac_X550EM_x || |
| 5363 | hw->mac.type == ixgbe_mac_X550EM_a) |
| 5364 | return 0; |
| 5365 | |
| 5366 | return -ENOTSUP; |
| 5367 | } |
| 5368 | |
| 5369 | /* |
| 5370 | * Set up link for 82599 loopback mode Tx->Rx. |
no outgoing calls
no test coverage detected