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

Function ixgbe_setup_loopback_link_82599

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

* Set up link for 82599 loopback mode Tx->Rx. */

Source from the content-addressed store, hash-verified

5370 * Set up link for 82599 loopback mode Tx->Rx.
5371 */
5372static inline void __rte_cold
5373ixgbe_setup_loopback_link_82599(struct ixgbe_hw *hw)
5374{
5375 PMD_INIT_FUNC_TRACE();
5376
5377 if (ixgbe_verify_lesm_fw_enabled_82599(hw)) {
5378 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM) !=
5379 IXGBE_SUCCESS) {
5380 PMD_INIT_LOG(ERR, "Could not enable loopback mode");
5381 /* ignore error */
5382 return;
5383 }
5384 }
5385
5386 /* Restart link */
5387 IXGBE_WRITE_REG(hw,
5388 IXGBE_AUTOC,
5389 IXGBE_AUTOC_LMS_10G_LINK_NO_AN | IXGBE_AUTOC_FLU);
5390 ixgbe_reset_pipeline_82599(hw);
5391
5392 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
5393 msec_delay(50);
5394}
5395
5396
5397/*

Callers 1

ixgbe_dev_rxtx_startFunction · 0.85

Tested by

no test coverage detected