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

Function ixgbe_check_supported_loopback_mode

dpdk/drivers/net/ixgbe/ixgbe_rxtx.c:5353–5367  ·  view source on GitHub ↗

* Check if requested loopback mode is supported */

Source from the content-addressed store, hash-verified

5351 * Check if requested loopback mode is supported
5352 */
5353int
5354ixgbe_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.

Callers 2

ixgbe_dev_startFunction · 0.85
ixgbe_dev_rx_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected