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

Function ixgbe_disable_intr

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

* This function is based on ixgbe_disable_intr() in base/ixgbe.h. */

Source from the content-addressed store, hash-verified

845 * This function is based on ixgbe_disable_intr() in base/ixgbe.h.
846 */
847static void
848ixgbe_disable_intr(struct ixgbe_hw *hw)
849{
850 PMD_INIT_FUNC_TRACE();
851
852 if (hw->mac.type == ixgbe_mac_82598EB) {
853 IXGBE_WRITE_REG(hw, IXGBE_EIMC, ~0);
854 } else {
855 IXGBE_WRITE_REG(hw, IXGBE_EIMC, 0xFFFF0000);
856 IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(0), ~0);
857 IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(1), ~0);
858 }
859 IXGBE_WRITE_FLUSH(hw);
860}
861
862/*
863 * This function resets queue statistics mapping registers.

Calls

no outgoing calls

Tested by

no test coverage detected