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

Function ixgbe_pf_reset_hw

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

Source from the content-addressed store, hash-verified

811}
812
813static inline int32_t
814ixgbe_pf_reset_hw(struct ixgbe_hw *hw)
815{
816 uint32_t ctrl_ext;
817 int32_t status;
818
819 status = ixgbe_reset_hw(hw);
820
821 ctrl_ext = IXGBE_READ_REG(hw, IXGBE_CTRL_EXT);
822 /* Set PF Reset Done bit so PF/VF Mail Ops can work */
823 ctrl_ext |= IXGBE_CTRL_EXT_PFRSTD;
824 IXGBE_WRITE_REG(hw, IXGBE_CTRL_EXT, ctrl_ext);
825 IXGBE_WRITE_FLUSH(hw);
826
827 if (status == IXGBE_ERR_SFP_NOT_PRESENT)
828 status = IXGBE_SUCCESS;
829 return status;
830}
831
832static inline void
833ixgbe_enable_intr(struct rte_eth_dev *dev)

Callers 3

ixgbe_dev_startFunction · 0.85
ixgbe_dev_stopFunction · 0.85
ixgbe_dev_closeFunction · 0.85

Calls 1

ixgbe_reset_hwFunction · 0.85

Tested by

no test coverage detected