]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
fm10k: disable receive queue when configuring ring
authorNgai-Mint Kwan <ngai-mint.kwan@intel.com>
Thu, 12 Jan 2017 23:59:42 +0000 (15:59 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 6 Apr 2017 05:47:31 +0000 (22:47 -0700)
Write to RXQCTL register to disable the receive queue when configuring
the RX ring.

Signed-off-by: Ngai-Mint Kwan <ngai-mint.kwan@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c

index c62d1884f75be488530c3a791706248baaef2c69..3e26d27ad213362bcc473262435740ccf8d2c697 100644 (file)
@@ -754,6 +754,7 @@ static void fm10k_configure_rx_ring(struct fm10k_intfc *interface,
        /* disable queue to avoid issues while updating state */
        rxqctl = fm10k_read_reg(hw, FM10K_RXQCTL(reg_idx));
        rxqctl &= ~FM10K_RXQCTL_ENABLE;
+       fm10k_write_reg(hw, FM10K_RXQCTL(reg_idx), rxqctl);
        fm10k_write_flush(hw);
 
        /* possible poll here to verify ring resources have been cleaned */